According to the division algorithm, given some positive integer \(b\), any positive integer \(n\) can be represented as:
where \(a_0\) and \(q_0\) are unique integers and \(a_0\) is less than \(b\). Similarly, for \(q_0\):
We keep divding by \(b\) until we reach \(q_k\) where \(q_k = 0\):
Note that \(q_i > q_{i+1}\).
Now replace \(q_0\) in the first equation using the second equation:
Similarly, we replace \(q_1\):
If we repeat this process, we get:
This proves the Basis Representation Theorem. To further establish the uniqueness, assume there is another representation using the same base:
Subtracting the first representation from the second:
Let \(j\) be the smallest integer where \(a_j\) and \(c_j\) differ:
If \(j\) is the smallest integer where \(a_j\) and \(c_j\) differ, then \(a_i - c_i = 0\) for all \(i \lt j\):
Dividing both sides by \(b^j\):
Bring \(a_j-c_j\) to the other side:
This means \(c_j-a_j\) is a multiple of \(b\). Since \(0 \le c_j \lt b\) and \(0 \le a_j \lt b\), then:
If \(c_j-a_j\) is a multiple of \(b\) and \(-b \lt c_j - a_j \lt b\), then it's only possible that \(c_j - a_j=0\). This shows that \(c_j\) and \(a_j\) are equal.