Proof
The proof consists of two parts:
Conversion to a-ary representation.
Uniqueness of the representation.
The number m has an a-ary representation. We prove this by
induction on m. For m = 0 it is trivial. Now suppose that
m > 0 and that the proposition is true for all integers less than
m. Let b0 be the remainder
if we divide m
by a. Then we have
0
b0 < a and a | m - b0.
Since (m - b0)/a < m there are
b1 , ..., bk satisfying
0
bi < a (i=1, ..., k) with
From this it follows that
Uniqueness of the representation:
Again induction on m and again for m = 1 the statement is trivial. For the induction step suppose
and
are two
a-ary representations for m. By the assumption on the most
significant digit we have
bk
0
and
cl
0.
On the one hand, the remainder when m is divided by a is
b0 and on the other hand it is c0.
Hence b0 = c0.
The number (m - b0)/a now also has two representations
in the a-ary number system:
The induction hypothesis implies k = l and b1 = c1 , ..., bk = ck.