Section 3.5
The main result in this section is the Division Theorem:
For any \(a\in\mathbb{Z}\), \(b\in\mathbb{N}\), there are unique integers \(q\) and \(r\) such that \(0\leq r < b\) and:
\[a = qb + r\]
The intuitive idea is that we add together as many \(b\)'s as we can before we reach \(a\). Then whatever remains cannot have any more \(b\)'s in it, and it will serve as our \(r\).
Before we look at the proof, let us look at some consequences of the theorem:
Technical proof:
The proof has two distinct parts. First we prove that there are \(q\), \(r\) satisfying the requirements. Then we will prove that they are unique.
Proof that they exist:
Consider the set:
\[S = \{ a - xb \mid x\in\mathbb{Z}, a-xb \geq 0 \}\]
Essentially the well-ordering principle captures the idea to "use as many \(b\)'s as you can fit".
Proof that they are unique:
This is a simple contradiction proof. Suppose that we had two ways to write \(a\), so:
\[a = bq + r = bq' + r'\]
We can rewrite this as:
\[b(q-q') = r' - r\]
On the right side we have that \(r' < b\) and \(r \geq 0\), so their difference must be:
\[ r' - r < b\]
So the only way they can equal each other is if we in fact had \(q=q'\), and then we must also have \(r=r'\).
We call \(r\) the remainder, and \(q\) the quotient. Here is a simple consequence of the division theorem:
\(b\) divides \(a\) if and only if the remainder of dividing \(a\) by \(b\) is \(0\).
This is fairly straightforward to see (DO IT!).
Here is one nice consequence of the division theorem:
If \(a|x\) and \(b|x\), then their least common multiple \(lcm(a,b)\) also must divide \(x\).
To prove this:
Another important theorem relates to the greatest common divisor:
GCD as a linear combination
- \(\gcd(a,b)\) is an integer linear combination of \(a\) and \(b\).
- In fact it is the smallest positive number that is an integer linear combination of \(a\) and \(b\).
- If \(d|a\) and \(d|b\), then we also have that \(d|\gcd(a,b)\).
To see this:
We start with the set
\[S = \{ax+by \mid ax+by > 0, x,y\in\mathbb{Z} \}\]