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.

Theorem 2.15

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=d0100 where d0=n and 0<d09.

Induction step: We take n10 and assume inductively that every integer from 1 to n1 has a decimal expansion.

By the Remainder Theorem there exist integers q,r such that n=10q+r and 0r<10 By 2.7 we can say r+110 so r9.

As n10 we must have q>0 so q1 by 2.6.

So 10q=(9+1)q=9q+q9+q>q by (Sc),(Sh) and using 0<1.

As 0r we have 10qn and we deduce that q<n.

Hence by the induction hypothesis q has a decimal expansion: q=dk10k++d1101+d0100 where each digit di is an integer such that 0di9 and dk0.

By (Dist),(Comm): 10q=dk10k+1++d1102+d0101 so n=dk10k+1++d1102+d0101+r.

Hence we have shown that there exists numbers d0,dk+1 defined by d0=r,di+1=di for i=0,,k such that n=dk+110k+1++d2102+d1101+d0100 where each digit di is an integer such that 0di9 and dk+10. (For i>0 this holds because we know this for di1 while for d0 we showed that 0r9.)

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.