taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.2-2

Exercise 1.2.2-2

proved in Lean solution written

Rating00
KindK2, decide: say whether a claim holds from the written solution
SectionSection 1.2.2 of Volume 1. Companion chapter: Numbers, powers and logarithms

The task

Decide whether 1+0.2399999…1 + 0.2399999\ldots, with nines forever after the digit 3, counts as a decimal expansion in the sense of Eq. (1) of the section.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Read again what Eq. (1) forbids about the digits.

Hint 2

Find the real number that the string stands for, using Eq. (2).

Solution

Show the solution

No. A decimal expansion must not end in an infinite run of nines. The string 1+0.23999…1 + 0.23999\ldots has this form, so it is not an expansion. It names the real number 1.241.24, because the nines after the digit 33 add up to 9⋅10−3(1+1/10+1/100+⋯ )=9⋅10−3⋅10/9=10−29 \cdot 10^{-3}(1 + 1/10 + 1/100 + \cdots) = 9 \cdot 10^{-3} \cdot 10/9 = 10^{-2}, and 1.23+0.01=1.241.23 + 0.01 = 1.24. The legal expansion of this number is 1+0.24000…1 + 0.24000\ldots. Eq. (2) also decides it: for each kk the number 1.241.24 is at least 1.2400…01.2400\ldots0 and is less than the same string plus 10−k10^{-k}, which matches the digits 2,4,0,0,…2, 4, 0, 0, \ldots and never the digits 2,3,9,9,…2, 3, 9, 9, \ldots. □\square

Check

For k=3k = 3 the digits 2,3,92, 3, 9 give the bounds 1.239≤x<1.2401.239 \le x < 1.240. The number 1.241.24 is not below 1.2401.240, so it fails this test. The digits 2,4,02, 4, 0 give 1.240≤x<1.2411.240 \le x < 1.241 and 1.241.24 passes.

Remarks

The rule on nines makes the expansion of each real number unique. It is the reason why Exercise 1.2.2-6 can compare numbers digit by digit.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.