Skip to content

§16 ★ Decimal Expansions of Real Numbers

We begin by recalling the brief discussion of decimals in Discussion 10.3. There we considered a decimal expansion K.d1d2d3⋯K.d_1 d_2 d_3 \cdots, where KK is a nonnegative integer and each digit djd_j belongs to {0,1,2,…,9}\{0, 1, 2, \dots, 9\}. This expansion represents the real number

K+∑j=1∞dj10j=K+∑j=1∞dj⋅10−j,K + \sum_{j=1}^\infty \frac{d_j}{10^j} = K + \sum_{j=1}^\infty d_j \cdot 10^{-j},

which we can also write as lim⁡n→∞sn\lim_{n\to\infty} s_n, where sn=K+∑j=1ndj⋅10−js_n = K + \sum_{j=1}^n d_j \cdot 10^{-j}.

So every decimal expansion represents a nonnegative real number. We prove the converse after formalizing long division. The development here is based on suggestions by Karl Stromberg.

Why this matters

Decimals are how most of us picture real numbers, so it is worth checking that the picture is accurate: every nonnegative real has a decimal expansion, almost every real has exactly one, and the rationals are exactly the ones whose digits eventually repeat. Each of these facts is a short argument built on limits and geometric series.

16.1 Long Division.

Consider a/ba/b with a,ba, b positive integers. The KK term causes no difficulty, so assume a<ba < b. Take a=3a = 3, b=7b = 7. Name the digits d1,d2,…d_1, d_2, \dots and the remainders r1,r2,…r_1, r_2, \dots; the first steps give d1=4d_1 = 4, d2=2d_2 = 2 and r1=2r_1 = 2, r2=6r_2 = 6. Next we divide 77 into 60=10⋅r260 = 10 \cdot r_2 and get 60=7⋅8+460 = 7 \cdot 8 + 4. The quotient 88 is the third digit d3d_3, and 4=r34 = r_3 is the new remainder. Then we multiply r3r_3 by 1010 and repeat.

In general, set r0=ar_0 = a. At each stage

dn∈{0,1,2,…,9},(1)rn=10⋅rn−1−b⋅dn,(2)0≤rn<b.(3)\begin{aligned} & d_n \in \{0, 1, 2, \dots, 9\}, && (1) \\ & r_n = 10 \cdot r_{n-1} - b \cdot d_n, && (2) \\ & 0 \le r_n < b. && (3) \end{aligned}

This construction yields

ab=d110+110r1b(4)\frac{a}{b} = \frac{d_1}{10} + \frac1{10} \frac{r_1}{b} \tag{4}

and, for n≥2n \ge 2,

ab=d110+⋯+dn10n+110nrnb.(5)\frac{a}{b} = \frac{d_1}{10} + \cdots + \frac{d_n}{10^n} + \frac1{10^n} \frac{r_n}{b}. \tag{5}

Since each rn<br_n < b, lim⁡n110nrnb=0\lim_n \frac1{10^n} \frac{r_n}{b} = 0, so (5) gives ab=∑j=1∞dj10j\frac{a}{b} = \sum_{j=1}^\infty \frac{d_j}{10^j}: thus .d1d2d3⋯.d_1 d_2 d_3 \cdots is a decimal expansion for ab\frac{a}{b}.

Equation (4) follows from r1=10a−bd1r_1 = 10a - bd_1. For (5) we use induction. From (2), rn+1=10rn−bdn+1r_{n+1} = 10 r_n - b d_{n+1}, so

rnb=110dn+1+110rn+1b.\frac{r_n}{b} = \frac1{10} d_{n+1} + \frac1{10} \frac{r_{n+1}}{b}.

Substituting this into (5) gives

ab=d110+⋯+dn10n+dn+110n+1+110n+1rn+1b,(6)\frac{a}{b} = \frac{d_1}{10} + \cdots + \frac{d_n}{10^n} + \frac{d_{n+1}}{10^{n+1}} + \frac1{10^{n+1}} \frac{r_{n+1}}{b}, \tag{6}

which is (5) with nn replaced by n+1n+1.

Each column shows the digit dnd_n and remainder rnr_n. The first remainder that repeats is highlighted: from there the whole computation cycles, which is the heart of Theorem 16.5.

3/7 = 0.428571428571…

n0123456
dₙ428571
rₙ3264513

Remainder r6 = r0 = 3, so from then on every step repeats: period 6. There are only 7 possible remainders, so a repeat must occur within 8 steps.

16.2 Theorem.

Every nonnegative real number xx has at least one decimal expansion.

Proof

It suffices to consider x∈[0,1)x \in [0, 1). We use the floor function: ⌊y⌋\lfloor y \rfloor is the largest integer less than or equal to yy. Since 10x<1010x < 10, we can write

10x=d1+x1,where d1=⌊10x⌋ and x1∈[0,1).(1)10x = d_1 + x_1, \qquad\text{where } d_1 = \lfloor 10x \rfloor \text{ and } x_1 \in [0, 1). \tag{1}

Note d1∈{0,1,…,9}d_1 \in \{0, 1, \dots, 9\} since 10x<1010x < 10. Therefore

x=d110+110x1.(2)x = \frac{d_1}{10} + \frac1{10} x_1. \tag{2}

Suppose for some n≥1n \ge 1 we have chosen d1,…,dnd_1, \dots, d_n in {0,…,9}\{0, \dots, 9\} and x1,…,xnx_1, \dots, x_n in [0,1)[0, 1) so that

x=d110+⋯+dn10n+110nxn.(3)x = \frac{d_1}{10} + \cdots + \frac{d_n}{10^n} + \frac1{10^n} x_n. \tag{3}

Since 10xn<1010x_n < 10, we can write

10xn=dn+1+xn+1,where dn+1=⌊10xn⌋, xn+1∈[0,1).(4)10 x_n = d_{n+1} + x_{n+1}, \qquad\text{where } d_{n+1} = \lfloor 10 x_n \rfloor,\ x_{n+1} \in [0, 1). \tag{4}

Solving (4) for xnx_n and substituting into (3) gives

x=d110+⋯+dn+110n+1+110n+1xn+1,x = \frac{d_1}{10} + \cdots + \frac{d_{n+1}}{10^{n+1}} + \frac1{10^{n+1}} x_{n+1},

completing the induction. Since lim⁡n110n+1xn+1=0\lim_n \frac1{10^{n+1}} x_{n+1} = 0,

x=lim⁡n∑j=1n+1dj10j=∑j=1∞dj10j,x = \lim_n \sum_{j=1}^{n+1} \frac{d_j}{10^j} = \sum_{j=1}^\infty \frac{d_j}{10^j},

so .d1d2d3⋯.d_1 d_2 d_3 \cdots is a decimal expansion for xx.

∎

Intuitiondigits as zooming in

The first digit says which of the ten intervals [0,0.1),[0.1,0.2),…,[0.9,1)[0, 0.1), [0.1, 0.2), \dots, [0.9, 1) contains xx. The second says which tenth of that interval contains it, and so on. The proof of Theorem 16.2 is this zooming-in procedure written out: each dn+1=⌊10xn⌋d_{n+1} = \lfloor 10x_n \rfloor picks the next tenth. After nn digits, xx is pinned to an interval of length 10−n10^{-n}, which is why the truncations converge to xx.

As noted in Discussion 10.3, 1.000⋯1.000\cdots and 0.999⋯0.999\cdots are decimal expansions of the same real number: the series 1+∑j=1∞0⋅10−j1 + \sum_{j=1}^\infty 0 \cdot 10^{-j} and ∑j=1∞9⋅10−j\sum_{j=1}^\infty 9 \cdot 10^{-j} both equal 11. Similarly 2.75000⋯2.75000\cdots and 2.74999⋯2.74999\cdots both represent 114\frac{11}4 (Exercise 16.1). The next theorem says this is essentially the only way a number can have two decimal expansions.

16.3 Theorem.

A real number xx has exactly one decimal expansion, or else xx has two decimal expansions, one ending in all 00’s and the other ending in all 99’s.

Used in Theorem 16.5, Exercise 16.2, Exercise 16.8

Proof

Assume x≥0x \ge 0. If xx has expansion K.000⋯K.000\cdots with K>0K > 0, then it has one other, (K−1).999⋯(K-1).999\cdots. If xx has expansion K.d1d2⋯dr000⋯K.d_1 d_2 \cdots d_r 000\cdots with dr≠0d_r \ne 0, then it has one other, K.d1d2⋯(dr−1)999⋯K.d_1 d_2 \cdots (d_r - 1) 999\cdots. The reader can check these claims (Exercise 16.2).

Now suppose xx has two distinct expansions K.d1d2d3⋯K.d_1 d_2 d_3 \cdots and L.e1e2e3⋯L.e_1 e_2 e_3 \cdots.

Case K<LK < L. If any dj<9d_j < 9, then by Exercise 16.3

x<K+∑j=1∞9⋅10−j=K+1≤L≤x,x < K + \sum_{j=1}^\infty 9 \cdot 10^{-j} = K + 1 \le L \le x,

a contradiction. So x=K+1=Lx = K + 1 = L and the expansions are K.999⋯K.999\cdots and (K+1).000⋯(K+1).000\cdots.

Case K=LK = L. Let m=min⁡{j:dj≠ej}m = \min\{j : d_j \ne e_j\}; we may assume dm<emd_m < e_m. If dj<9d_j < 9 for some j>mj > m, then by Exercise 16.3

x<K+∑j=1mdj⋅10−j+∑j=m+1∞9⋅10−j=K+∑j=1mdj⋅10−j+10−m=K+∑j=1m−1ej⋅10−j+dm⋅10−m+10−m≤K+∑j=1mej⋅10−j≤x,\begin{aligned} x &< K + \sum_{j=1}^m d_j \cdot 10^{-j} + \sum_{j=m+1}^\infty 9 \cdot 10^{-j} = K + \sum_{j=1}^m d_j \cdot 10^{-j} + 10^{-m} \\ &= K + \sum_{j=1}^{m-1} e_j \cdot 10^{-j} + d_m \cdot 10^{-m} + 10^{-m} \le K + \sum_{j=1}^m e_j \cdot 10^{-j} \le x, \end{aligned}

a contradiction. Thus dj=9d_j = 9 for j>mj > m. Likewise, if ej>0e_j > 0 for some j>mj > m, then

x>K+∑j=1mej⋅10−j=K+∑j=1m−1dj⋅10−j+em⋅10−m≥K+∑j=1m−1dj⋅10−j+dm⋅10−m+10−m=K+∑j=1mdj⋅10−j+∑j=m+1∞9⋅10−j≥x,\begin{aligned} x &> K + \sum_{j=1}^m e_j \cdot 10^{-j} = K + \sum_{j=1}^{m-1} d_j \cdot 10^{-j} + e_m \cdot 10^{-m} \\ &\ge K + \sum_{j=1}^{m-1} d_j \cdot 10^{-j} + d_m \cdot 10^{-m} + 10^{-m} = K + \sum_{j=1}^m d_j \cdot 10^{-j} + \sum_{j=m+1}^\infty 9 \cdot 10^{-j} \ge x, \end{aligned}

a contradiction. So dj=9d_j = 9 for j>mj > m, em=dm+1e_m = d_m + 1, and ej=0e_j = 0 for j>mj > m.

∎

Pick a terminating decimal such as 11 or 34\frac34 and follow either expansion. Each digit selects one tenth of the previous interval, and the number stays inside every interval, so the expansion ending in 99’s and the one ending in 00’s both zoom in on the same point.

Expansion to follow

1/1 = 1.0000… = 0.9999…

0123456789I₀ zoomed in, split into tenths (red line: x)0123456789I₁ zoomed in, split into tenths (red line: x)0123456789I₂ zoomed in, split into tenths (red line: x)0123456789I₃ zoomed in, split into tenths (red line: x)
ntruncation tₙx − tₙ10⁻ⁿ
10.91.00e-11e-1
20.991.00e-21e-2
30.9991.00e-31e-3
40.99991.00e-41e-4

1/1 is a terminating decimal, so it has exactly two expansions (Theorem 16.3): 1.0000… and 0.9999…. Following the one that ends in 9’s, x − tₙ equals 10⁻ⁿ for large n, and tₙ → x either way.

Common pitfall0.999… is not “just below” 1

0.999⋯0.999\cdots is not an approximation to 11. It is the limit of 0.9,0.99,0.999,…0.9, 0.99, 0.999, \dots, and that limit equals 11. The two expansions are two names for one number. By Theorem 16.3 this ambiguity happens only for numbers with a terminating expansion, that is, numbers of the form m10k\frac{m}{10^k}.

16.4 Definition.

An expression K.d1d2⋯dℓdℓ+1⋯dℓ+r‾K.d_1 d_2 \cdots d_\ell \overline{d_{\ell+1} \cdots d_{\ell+r}} represents the decimal expansion in which the block dℓ+1⋯dℓ+rd_{\ell+1} \cdots d_{\ell+r} repeats forever:

K.d1d2⋯dℓ dℓ+1⋯dℓ+r dℓ+1⋯dℓ+r dℓ+1⋯dℓ+r⋯ .K.d_1 d_2 \cdots d_\ell\, d_{\ell+1} \cdots d_{\ell+r}\, d_{\ell+1} \cdots d_{\ell+r}\, d_{\ell+1} \cdots d_{\ell+r} \cdots.

Such an expansion is a repeating decimal.

Example 1.

Every integer is a repeating decimal, e.g. 17=17.0‾=17.000⋯17 = 17.\overline{0} = 17.000\cdots. Another simple example:

.8‾=.888⋯=∑j=1∞8⋅10−j=810∑j=0∞10−j=810⋅109=89..\overline{8} = .888\cdots = \sum_{j=1}^\infty 8 \cdot 10^{-j} = \frac8{10} \sum_{j=0}^\infty 10^{-j} = \frac8{10} \cdot \frac{10}9 = \frac89.
Example 2.

3.967‾3.9\overline{67} is the repeating decimal 3.9676767⋯3.9676767\cdots. We evaluate it:

3.967‾=3+9⋅10−1+6⋅10−2+7⋅10−3+6⋅10−4+7⋅10−5+⋯=3+9⋅10−1+67⋅10−3∑j=0∞(10−2)j=3+9⋅10−1+67⋅10−3(10099)=3+910+67990=3,928990=1,964495.\begin{aligned} 3.9\overline{67} &= 3 + 9 \cdot 10^{-1} + 6 \cdot 10^{-2} + 7 \cdot 10^{-3} + 6 \cdot 10^{-4} + 7 \cdot 10^{-5} + \cdots \\ &= 3 + 9 \cdot 10^{-1} + 67 \cdot 10^{-3} \sum_{j=0}^\infty (10^{-2})^j = 3 + 9 \cdot 10^{-1} + 67 \cdot 10^{-3} \left(\frac{100}{99}\right) \\ &= 3 + \frac9{10} + \frac{67}{990} = \frac{3{,}928}{990} = \frac{1{,}964}{495}. \end{aligned}

Any repeating decimal can be evaluated as a rational number this way, as the next theorem shows.

Example 3.

We find the decimal expansion of 117\frac{11}7. Long division gives 117=1.571428571428571428⋯\frac{11}7 = 1.571428571428571428\cdots, i.e. 117=1.571428‾\frac{11}7 = 1.\overline{571428}. To check:

1.571428‾=1+571,428⋅10−6∑j=0∞(10−6)j=1+571,428999,999=1+47=117.1.\overline{571428} = 1 + 571{,}428 \cdot 10^{-6} \sum_{j=0}^\infty (10^{-6})^j = 1 + \frac{571{,}428}{999{,}999} = 1 + \frac47 = \frac{11}7.

Many books leave the next theorem as an exercise, probably to avoid its notation. If the details seem too complicated, move on to Examples 4–7.

16.5 Theorem.

A real number xx is rational if and only if its decimal expansion is repeating. (Theorem 16.3 shows that if xx has two decimal expansions, both are repeating.)

Proof

First assume x≥0x \ge 0 has a repeating expansion x=K.d1d2⋯dℓdℓ+1⋯dℓ+r‾x = K.d_1 d_2 \cdots d_\ell \overline{d_{\ell+1} \cdots d_{\ell+r}}. Then

x=K+∑j=1ℓdj⋅10−j+10−ℓy,y=.dℓ+1⋯dℓ+r‾,x = K + \sum_{j=1}^\ell d_j \cdot 10^{-j} + 10^{-\ell} y, \qquad y = .\overline{d_{\ell+1} \cdots d_{\ell+r}},

so it suffices to show yy is rational. Write y=.e1e2⋯er‾y = .\overline{e_1 e_2 \cdots e_r}. Then

y=[∑j=1rej⋅10−j][∑j=0∞(10−r)j]=[∑j=1rej⋅10−j]10r10r−1,y = \left[\sum_{j=1}^r e_j \cdot 10^{-j}\right] \left[\sum_{j=0}^\infty (10^{-r})^j\right] = \left[\sum_{j=1}^r e_j \cdot 10^{-j}\right] \frac{10^r}{10^r - 1},

which is rational. In fact, writing e1e2⋯ere_1 e_2 \cdots e_r for the integer ∑j=0r−1ej⋅10r−1−j\sum_{j=0}^{r-1} e_j \cdot 10^{r-1-j} (not the product), y=e1e2⋯er10r−1y = \frac{e_1 e_2 \cdots e_r}{10^r - 1}; see Example 3.

Next consider a positive rational ab\frac{a}{b} with a,b∈Na, b \in \mathbb{N}, and assume a<ba < b. As in 16.1, ab=.d1d2d3⋯\frac{a}{b} = .d_1 d_2 d_3 \cdots where r0=ar_0 = a and, for k≥1k \ge 1,

dk∈{0,1,…,9},rk=10⋅rk−1−dkb,0≤rk<b.(1–3)d_k \in \{0, 1, \dots, 9\}, \qquad r_k = 10 \cdot r_{k-1} - d_k b, \qquad 0 \le r_k < b. \tag{1–3}

Since a,ba, b are integers, each rkr_k is an integer, so

rk∈{0,1,2,…,b−1}for k≥0.(4)r_k \in \{0, 1, 2, \dots, b - 1\} \qquad\text{for } k \ge 0. \tag{4}

This set has bb elements, so the first b+1b + 1 remainders cannot all be distinct: there are integers m≥0m \ge 0 and p>0p > 0 with 0≤m<m+p≤b0 \le m < m + p \le b and rm=rm+pr_m = r_{m+p}.

Given rk−1r_{k-1}, the integers rkr_k and dkd_k are uniquely determined. Thus rj=rkr_j = r_k implies rj+1=rk+1r_{j+1} = r_{k+1} and dj+1=dk+1d_{j+1} = d_{k+1}. From rm=rm+pr_m = r_{m+p} we get rm+1=rm+1+pr_{m+1} = r_{m+1+p} and dm+1=dm+1+pd_{m+1} = d_{m+1+p}, and a simple induction shows “rk=rk+pr_k = r_{k+p} and dk=dk+pd_k = d_{k+p}” for all k≥m+1k \ge m + 1. So the expansion of ab\frac{a}{b} is periodic with period pp after the first mm digits:

ab=.d1d2⋯dmdm+1⋯dm+p‾.\frac{a}{b} = .d_1 d_2 \cdots d_m \overline{d_{m+1} \cdots d_{m+p}}.∎

Intuition

The proof is a counting argument. Long division has only bb possible remainders, so a remainder must eventually repeat, and from that moment on the computation repeats as well. If the remainder 00 ever appears, the expansion terminates. Otherwise only the b−1b - 1 remainders 1,…,b−11, \dots, b - 1 are available, so the repeating block has at most b−1b - 1 digits. For 17\frac17 it has exactly 66.

Remark.

Given rk−1r_{k-1}, the uniqueness of rkr_k and dkd_k follows from the so-called division algorithm, which is really a theorem showing that division never breaks down: if bb is a positive integer and m∈Zm \in \mathbb{Z}, there are unique integers qq and rr with m=bq+rm = bq + r and 0≤r<b0 \le r < b. Here qq is the quotient and rr the remainder. With m=10⋅rk−1m = 10 \cdot r_{k-1}, naming q=dkq = d_k and r=rkr = r_k gives formula (2) in the proof.

Example 4.

The expansion

.101001000100001000001000000100000001⋯.101001000100001000001000000100000001\cdots

represents an irrational number. It cannot be repeating, because we arranged arbitrarily long blocks of 00’s.

Example 5.

We do not know the complete decimal expansions of 2\sqrt2, 3\sqrt3 and many other familiar irrationals, but by the last theorem we know they cannot be repeating.

Example 6.

We have claimed π\pi and ee are irrational. These and many other facts are proved in a fascinating book by Ivan Niven.

  1. e=∑k=0∞1k!e = \sum_{k=0}^\infty \frac1{k!} is irrational. Assume e=abe = \frac{a}{b} with a,b∈Na, b \in \mathbb{N}. Then (b+1)!⋅e(b+1)! \cdot e and (b+1)!∑k=0b+11k!(b+1)! \sum_{k=0}^{b+1} \frac1{k!} are both integers, so the difference (b+1)!∑k=b+2∞1k!(b+1)! \sum_{k=b+2}^\infty \frac1{k!} is a positive integer. But this number is less than 1b+2+1(b+2)2+⋯=1b+21−1b+2=1b+1<1,\frac1{b+2} + \frac1{(b+2)^2} + \cdots = \frac{\frac1{b+2}}{1 - \frac1{b+2}} = \frac1{b+1} < 1, a contradiction.
  2. π2\pi^2 is irrational, from which the irrationality of π\pi follows (Exercise 16.10). The proof is sketched below.
  3. It is even harder to prove π\pi and ee are not algebraic numbers (Definition 2.1); see Niven’s book, Theorems 2.12 and 9.11.
Proof that π² is irrational

The key is the sequence of integrals

In=∫0πPn(x)sin⁡x dx,Pn(x)=(x(π−x))nn!.I_n = \int_0^\pi P_n(x) \sin x\,dx, \qquad P_n(x) = \frac{(x(\pi - x))^n}{n!}.

Claim 1. There are polynomials (Qn)n=0∞(Q_n)_{n=0}^\infty with integer coefficients, of degree at most nn, such that In=Qn(π2)I_n = Q_n(\pi^2) for all nn.

First we find a recursion for InI_n. Integrating by parts (Theorem 34.2) twice,

In=∫0πPn(x)sin⁡x dx=−∫0πPn′′(x)sin⁡x dxfor n≥1.(1)I_n = \int_0^\pi P_n(x) \sin x\,dx = -\int_0^\pi P_n''(x) \sin x\,dx \qquad\text{for } n \ge 1. \tag{1}

Indeed,

∫0πPn(x)sin⁡x dx=[−Pn(π)cos⁡π+Pn(0)cos⁡0]+∫0πPn′(x)cos⁡x dx=∫0πPn′(x)cos⁡x dx,\int_0^\pi P_n(x) \sin x\,dx = [-P_n(\pi)\cos\pi + P_n(0)\cos 0] + \int_0^\pi P_n'(x) \cos x\,dx = \int_0^\pi P_n'(x) \cos x\,dx,

since PnP_n has a factor x(π−x)x(\pi - x), which vanishes at 00 and π\pi. Therefore

In=[Pn′(π)sin⁡π−Pn′(0)sin⁡0]−∫0πPn′′(x)sin⁡x dx=−∫0πPn′′(x)sin⁡x dx,I_n = [P_n'(\pi) \sin\pi - P_n'(0) \sin 0] - \int_0^\pi P_n''(x) \sin x\,dx = -\int_0^\pi P_n''(x) \sin x\,dx,

which is (1). For n≥2n \ge 2,

Pn′(x)=(x(π−x))n−1(n−1)!(π−2x)=Pn−1(x)(π−2x),P_n'(x) = \frac{(x(\pi - x))^{n-1}}{(n-1)!} (\pi - 2x) = P_{n-1}(x)(\pi - 2x),

so, using this for n−1n - 1 and the product rule,

Pn′′(x)=Pn−2(x)(π−2x)2+Pn−1(x)(−2)=π2Pn−2(x)+Pn−2(x)(−4πx+4x2)−2Pn−1(x).P_n''(x) = P_{n-2}(x)(\pi - 2x)^2 + P_{n-1}(x)(-2) = \pi^2 P_{n-2}(x) + P_{n-2}(x)(-4\pi x + 4x^2) - 2P_{n-1}(x).

Since Pn−2(x)(−4πx+4x2)=−4⋅(x(π−x))n−1(n−2)!=−4(n−1)Pn−1(x)P_{n-2}(x)(-4\pi x + 4x^2) = -4 \cdot \frac{(x(\pi-x))^{n-1}}{(n-2)!} = -4(n-1) P_{n-1}(x), we conclude

Pn′′(x)=π2Pn−2(x)−(4n−2)Pn−1(x)for n≥2.(2)P_n''(x) = \pi^2 P_{n-2}(x) - (4n - 2) P_{n-1}(x) \qquad\text{for } n \ge 2. \tag{2}

Now I0=2I_0 = 2 is clear, and by (1) with P1′′=−2P_1'' = -2, I1=4I_1 = 4. From (1) and (2),

In=−π2In−2+(4n−2)In−1for n≥2.(3)I_n = -\pi^2 I_{n-2} + (4n - 2) I_{n-1} \qquad\text{for } n \ge 2. \tag{3}

Claim 1 follows by induction with Q0=2Q_0 = 2, Q1=4Q_1 = 4, and Qn(x)=−xQn−2(x)+(4n−2)Qn−1(x)Q_n(x) = -x Q_{n-2}(x) + (4n - 2) Q_{n-1}(x) for n≥2n \ge 2.

Claim 2. π2\pi^2 is irrational. Suppose π2=a/b\pi^2 = a/b. By Claim 1, each bnIn=bnQn(a/b)b^n I_n = b^n Q_n(a/b) is an integer. Since x(π−x)x(\pi - x) is largest at x=π/2x = \pi/2,

0<bnIn=bn∫0π(x(π−x))nn!sin⁡x dx<bn∫0π(π2⋅π2)nn! dx=(bπ24)nn! π.0 < b^n I_n = b^n \int_0^\pi \frac{(x(\pi - x))^n}{n!} \sin x\,dx < b^n \int_0^\pi \frac{(\frac\pi2 \cdot \frac\pi2)^n}{n!}\,dx = \frac{\left(\frac{b\pi^2}{4}\right)^n}{n!}\,\pi.

The right side tends to 00 (Exercise 9.15), so for large nn the integer bnInb^n I_n lies in (0,1)(0, 1), a contradiction.

This simplification of Niven’s famous short proof (1947) is due to Zhou and Markov, who use a similar technique to prove tan⁡r\tan r is irrational for nonzero rational rr, and cos⁡r\cos r is irrational if r2r^2 is a nonzero rational.

∎

Intuitionwhy the proof that e is irrational works

The partial sums ∑k=0b+11k!\sum_{k=0}^{b+1} \frac1{k!} approximate ee too well for ee to be a fraction with denominator bb. Multiplying by (b+1)!(b+1)! turns those partial sums into integers, while the remaining error becomes a positive number less than 11. A fraction ab\frac ab, multiplied by (b+1)!(b+1)!, would also be an integer, and two integers cannot differ by something strictly between 00 and 11.

Example 7.

Euler introduced a famous number, arising in the study of the gamma function, called Euler’s constant:

γ=lim⁡n→∞[(∑k=1n1k)−log⁡en].\gamma = \lim_{n\to\infty} \left[\left(\sum_{k=1}^n \frac1k\right) - \log_e n\right].

Even though lim⁡∑k=1n1k=+∞\lim \sum_{k=1}^n \frac1k = +\infty and lim⁡log⁡en=+∞\lim \log_e n = +\infty, the limit defining γ\gamma exists and is finite (Exercise 16.9); γ≈0.577216\gamma \approx 0.577216. The amazing fact is that no one knows whether γ\gamma is rational. Most mathematicians believe it is irrational, because it is “easier” for a number to be irrational: repeating expansions are very regular. The remark in Exercise 16.8 hints at another reason.

Reading alongside Abbott

Abbott uses decimal expansions in Section 1.6 for Cantor’s diagonal argument that (0,1)(0, 1) is uncountable. Here is the idea in brief. Given any list x1,x2,x3,…x_1, x_2, x_3, \dots of numbers in (0,1)(0, 1), build a new number whose nnth digit differs from the nnth digit of xnx_n, and never use the digits 00 or 99. The new number cannot equal any xnx_n. Theorem 16.3 is exactly what makes the last step safe: an expansion with no 00’s or 99’s is the only expansion of its number, so a different digit really does mean a different number. The uncountability of the Cantor set in §13 can be proved the same way, with base-33 digits 00 and 22.

A list of numbers in (0,1) with the diagonal digits highlighted
Number123456789
x1 = 0.500000000
x2 = 0.333333333
x3 = 0.250000000
x4 = 0.200000000
x5 = 0.166666666
x6 = 0.142857142
x7 = 0.125000000
y = 0.4555555··

The highlighted diagonal digits are changed to 5 (or to 4 when the digit is already 5), giving y = 0.4555555…. Digit n of y differs from digit n of xn, and y uses only the digits 4 and 5, so by Theorem 16.3 it has no second expansion: y ≠ xn for every n. No list can contain all of (0, 1).

Take the quiz (3 questions)

Which number has two different decimal expansions?

Which number is irrational?

What fraction is 0.36‾=0.363636…0.\overline{36} = 0.363636\ldots?

Exercise 16.1
  1. Show 2.749‾2.74\overline{9} and 2.750‾2.75\overline{0} are both decimal expansions for 114\frac{11}4.
  2. Which of these expansions arises from the long division process in 16.1?
Solution

(b) 2.750‾2.75\overline{0}: long division never produces an infinite tail of 99’s, since dn=9d_n = 9 forever would give rn−b=10(rn−1−b)r_n - b = 10(r_{n-1} - b), pushing rnr_n out of [0,b)[0, b).

Tags: Warm-upComputation

Exercise 16.2

Verify the claims in the first paragraph of the proof of Theorem 16.3.

Solution

Recall ∑j=1∞9⋅10−j=1\sum_{j=1}^\infty 9\cdot10^{-j} = 1 and, more generally, ∑j>r9⋅10−j=10−r\sum_{j>r}9\cdot10^{-j} = 10^{-r} (geometric series).

Case K.000⋯K.000\cdots with K>0K > 0. The expansion (K−1).999⋯(K-1).999\cdots is a legitimate expansion (the digits 99 are allowed and K−1≥0K - 1 \ge 0) with value (K−1)+1=K(K-1) + 1 = K. It differs from K.000⋯K.000\cdots, so xx has two expansions.

Case K.d1⋯dr000⋯K.d_1\cdots d_r000\cdots with dr≠0d_r \ne 0. Then dr−1≥0d_r - 1 \ge 0 is a legitimate digit, and the expansion K.d1⋯dr−1(dr−1)999⋯K.d_1\cdots d_{r-1}(d_r - 1)999\cdots has value K+∑j<rdj10−j+(dr−1)10−r+10−r=K+∑j≤rdj10−j=x.K + \sum_{j<r}d_j10^{-j} + (d_r - 1)10^{-r} + 10^{-r} = K + \sum_{j \le r}d_j10^{-j} = x . It differs from the original in the rrth digit, so these are two distinct expansions.

Tags: StandardFrom the definitions

Used in Theorem 16.3

Exercise 16.3

Suppose ∑an\sum a_n and ∑bn\sum b_n are convergent series of nonnegative numbers. Show that if an≤bna_n \le b_n for all nn and an<bna_n < b_n for at least one nn, then ∑an<∑bn\sum a_n < \sum b_n.

Hint

Apply Exercise 14.5 to ∑(bn−an)\sum (b_n - a_n), a series of nonnegative terms with at least one positive term.

Solution

Since an≤bna_n \le b_n, the series ∑(bn−an)\sum(b_n - a_n) has nonnegative terms, and it converges with sum ∑bn−∑an\sum b_n - \sum a_n (Exercise 14.5). Pick NN with bN−aN>0b_N - a_N > 0. The partial sums of ∑(bn−an)\sum(b_n - a_n) are nondecreasing and are at least bN−aNb_N - a_N once n≥Nn \ge N, so the sum is ≥bN−aN>0\ge b_N - a_N > 0. Hence ∑bn−∑an>0\sum b_n - \sum a_n > 0, i.e. ∑an<∑bn\sum a_n < \sum b_n.

Tags: StandardSeries tests

Used in Theorem 16.3

Exercise 16.4

Write the following repeating decimals as rationals, i.e. as fractions of integers.

  1. .2‾.\overline{2}
  2. .02‾.\overline{02}
  3. .02‾.0\overline{2}
  4. 3.14‾3.\overline{14}
  5. .10‾.\overline{10}
  6. .1492‾.\overline{1492}
Solution

(a) 29\frac29 (b) 299\frac2{99} (c) 145\frac1{45} (d) 31199\frac{311}{99} (e) 1099\frac{10}{99} (f) 14929999\frac{1492}{9999}

Tags: Warm-upComputation

Exercise 16.5

Find the decimal expansions of the following rational numbers.

  1. 18\frac18
  2. 116\frac1{16}
  3. 23\frac23
  4. 79\frac79
  5. 611\frac6{11}
  6. 227\frac{22}7
Solution

(a) .125.125 (b) .0625.0625 (c) .6‾.\overline{6} (d) .7‾.\overline{7} (e) .54‾.\overline{54} (f) 3.142857‾3.\overline{142857}. Check them with the widget above.

Tags: Warm-upComputation

Exercise 16.6

Find the decimal expansions of 17,27,37,47,57\frac17, \frac27, \frac37, \frac47, \frac57 and 67\frac67. Note the interesting pattern.

Solution

They are .142857‾.\overline{142857}, .285714‾.\overline{285714}, .428571‾.\overline{428571}, .571428‾.\overline{571428}, .714285‾.\overline{714285}, .857142‾.\overline{857142}: all cyclic shifts of the same six digits. Try them in the widget and watch the remainders.

Tags: Warm-upComputation

Exercise 16.7

Is .1234567891011121314151617181920212223242526⋯.1234567891011121314151617181920212223242526\cdots rational?

Solution

No. The expansion contains arbitrarily long blocks of 00’s (from 10k10^k), so as in Example 4 it cannot be repeating.

Tags: StandardExplain why

Exercise 16.8

Let (sn)(s_n) be a sequence of numbers in (0,1)(0, 1). Each sns_n has a decimal expansion 0.d1(n)d2(n)d3(n)⋯0.d_1^{(n)} d_2^{(n)} d_3^{(n)} \cdots. For each nn, let en=6e_n = 6 if dn(n)≠6d_n^{(n)} \ne 6 and en=7e_n = 7 if dn(n)=6d_n^{(n)} = 6. Show .e1e2e3⋯.e_1 e_2 e_3 \cdots is the decimal expansion of some y∈(0,1)y \in (0, 1) and y≠sny \ne s_n for all nn.

Remark: this shows the elements of (0,1)(0, 1) cannot be listed as a sequence: (0,1)(0, 1) is uncountable. Since Q∩(0,1)\mathbb{Q} \cap (0, 1) can be listed as a sequence, there are a lot of irrational numbers in (0,1)(0, 1)!

Hint

yy has no 00’s or 99’s, so by Theorem 16.3 it has only one expansion, and it differs from that of sns_n in the nnth digit.

Solution

Each ene_n is 66 or 77, so ∑en10−n\sum e_n10^{-n} converges by comparison with ∑7⋅10−n\sum 7\cdot10^{-n}; call its sum yy. Then y≥∑6⋅10−n=23>0y \ge \sum 6\cdot10^{-n} = \frac23 > 0 and y≤∑7⋅10−n=79<1y \le \sum7\cdot10^{-n} = \frac79 < 1, so y∈(0,1)y \in (0,1) and .e1e2e3⋯.e_1e_2e_3\cdots is a decimal expansion of yy.

The expansion of yy contains no 00’s or 99’s, so it does not end in all 00’s or all 99’s; by Theorem 16.3 it is the only decimal expansion of yy. If y=sny = s_n for some nn, then .d1(n)d2(n)⋯.d^{(n)}_1d^{(n)}_2\cdots would be another expansion of yy, hence identical to .e1e2⋯.e_1e_2\cdots, so dn(n)=end^{(n)}_n = e_n. But en≠dn(n)e_n \ne d^{(n)}_n by construction. So y≠sny \ne s_n for every nn.

Tags: ChallengeContradiction

Exercise 16.9

Let γn=(∑k=1n1k)−log⁡en=∑k=1n1k−∫1n1t dt\gamma_n = \left(\sum_{k=1}^n \frac1k\right) - \log_e n = \sum_{k=1}^n \frac1k - \int_1^n \frac1t\,dt.

  1. Show (γn)(\gamma_n) is a decreasing sequence.
  2. Show 0<γn≤10 < \gamma_n \le 1 for all nn.
  3. Observe that γ=lim⁡nγn\gamma = \lim_n \gamma_n exists and is finite.
Hint

For (a), look at γn−γn+1=∫nn+11t dt−1n+1\gamma_n - \gamma_{n+1} = \int_n^{n+1} \frac1t\,dt - \frac1{n+1}. For (b), compare with the rectangles in Example 1 of §15.

Solution
  1. γn−γn+1=[∑k≤n1k−log⁡n]−[∑k≤n+11k−log⁡(n+1)]=∫nn+1dtt−1n+1\gamma_n - \gamma_{n+1} = \left[\sum_{k \le n}\frac1k - \log n\right] - \left[\sum_{k \le n+1}\frac1k - \log(n+1)\right] = \int_n^{n+1}\frac{dt}t - \frac1{n+1}. On [n,n+1][n, n+1] we have 1t≥1n+1\frac1t \ge \frac1{n+1}, so the integral is at least 1n+1\frac1{n+1}, and γn−γn+1≥0\gamma_n - \gamma_{n+1} \ge 0. So (γn)(\gamma_n) is decreasing.
  2. By Example 1 of §15, ∑k=1n1k≥log⁡(n+1)>log⁡n\sum_{k=1}^n\frac1k \ge \log(n+1) > \log n, so γn>0\gamma_n > 0. For the upper bound, on [k−1,k][k-1, k] we have 1k≤1t\frac1k \le \frac1t, so ∑k=2n1k≤∫1ndtt=log⁡n\sum_{k=2}^n\frac1k \le \int_1^n\frac{dt}t = \log n. Hence ∑k=1n1k≤1+log⁡n\sum_{k=1}^n\frac1k \le 1 + \log n and γn≤1\gamma_n \le 1.
  3. A decreasing sequence that is bounded below converges (Theorem 10.2), so γ=lim⁡γn\gamma = \lim\gamma_n exists, and 0≤γ≤10 \le \gamma \le 1.

Tags: ChallengeMonotone & CauchySeries tests

Exercise 16.10

In Example 6(b) we showed π2\pi^2 is irrational. Use this to show π\pi is irrational. What can you say about π\sqrt\pi and π3\sqrt[3]\pi? π4\pi^4?

Solution

If π\pi were rational so would be π2\pi^2. Likewise π\sqrt\pi and π3\sqrt[3]\pi are irrational (their squares or cubes are π\pi). Nothing follows about π4\pi^4 from these facts alone.

Tags: Warm-upContradiction

Keyboard shortcuts

Single-key shortcuts
KeyAction
nNext section
pPrevious section
jNext exercise
kPrevious exercise
hShow or hide all hints
sShow or hide all solutions
/Search
?Show this list
Ctrl K or ⌘ KSearch (built in)
EscClose a dialog

Shortcuts never fire while you type in a text field or hold Ctrl, Alt or ⌘. Screen reader users in browse mode can press the keys after switching to focus mode, or turn them off here.