2.6 More Decimal Expansions
We finish this chapter by using the Remainder Theorem to prove that every positive integer has a decimal expansion.
There is nothing special about the number 10 here, we could of course use any base b>1.
Every positive integer n has a decimal expansion.
Note that the decimal expansion is unique. We leave this as an exercise.
Proof. We will prove this using strong induction on n.
Base cases: If n<10 then n is its own decimal expansion: n=d0⋅100 where d0=n and 0<d0≤9.
Induction step: We take n≥10 and assume inductively that every integer from 1 to n−1 has a decimal expansion.
By the Remainder Theorem there exist integers q,r such that n=10q+r and 0≤r<10 By 2.7 we can say r+1≤10 so r≤9.
As n≥10 we must have q>0 so q≥1 by 2.6.
So 10q=(9+1)q=9q+q≥9+q>q by (Sc),(Sh) and using 0<1.
As 0≤r we have 10q≤n and we deduce that q<n.
Hence by the induction hypothesis q has a decimal expansion: q=dk⋅10k+⋯+d1⋅101+d0⋅100 where each digit di is an integer such that 0≤di≤9 and dk≠0.
By (Dist),(Comm): 10q=dk⋅10k+1+⋯+d1⋅102+d0⋅101 so n=dk⋅10k+1+⋯+d1⋅102+d0⋅101+r.
Hence we have shown that there exists numbers d′0,…d′k+1 defined by d′0=r,d′i+1=di for i=0,…,k such that n=d′k+1⋅10k+1+⋯+d′2⋅102+d′1⋅101+d0⋅100 where each digit d′i is an integer such that 0≤d′i≤9 and d′k+1≠0. (For i>0 this holds because we know this for di−1 while for d0 we showed that 0≤r≤9.)
Hence we have shown that if all positive integers less than n have decimal expansions then n also has a decimal expansion.
By induction it follows that all positive integers have decimal expansions.