Proof
Consider the following set
\(x\) | \(-1\) | \(0\) | \(1\) | \(2\) | \(3\) |
\(a-bx\) | \(17\) | \(12\) | \(7\) | \(2\) | \(-3\) |
Observe now that \(S\) is set of non-negative integers. Therefore, by the well ordering principle, if \(S\) is not empty, then \(S\) has a minimum element. Then, we claim that \(S\) is non-empty. So we have two cases
case \(a \geq 0\): Then if we take \(x = 0\), then \(a - b(0) = a \in S\). So \(S\) is non-empty and therefore has a minimum element by the well ordering principle.
case \(a < 0\): Then, take \(x = a\). Observe now that \(a - ba = a(1- b)\). Since \(b > 0\), then \(1 - b \leq 0\). Furthermore, since \(a < 0\), then \(a - ba \geq 0\). So \(a - ba \in S\). Therefore, \(S\) is non-empty and has a minimum element by the well ordering principle.
Now, let \(r\) be the minimum element of \(S\) and \(q\) be the corresponding \(x\) value. We want to show that \(0 \leq r < b\). Suppose for the sake of contradiction that \(r \geq b\). Then
Now subtract \(b\) from both sides to see that
But this shows that \(r - b\) can be written in terms of \(a\) and \(b\) and is also greater or equal to zero. So \(r - b\) is an element in \(S\). This is contradiction since \(r\) is the minimum element in \(S\) and \(r - b < r\). Therefore, \(r < b\) as required.
Next, we want to show that \(q\) and \(r\) are unique. So suppose for the sake of contradiction that they were not. Then, suppose
Re-arrange the terms to see that
Assume without the loss of generality that \(q' > q\). Then this implies that \(b(q'-q) \geq b\). Then
This is a contradiction since we know that \(0 \leq r, r' < b\). This means that \(r' - r < b\). Therefore, \(q = q'\) and \(r = r'\). \(\blacksquare\)