Definition · Decimal expansionFor digits d₁, d₂, d₃, … each in 0 to 9, the notation 0.d₁d₂d₃… denotes the sum of the series d₁/10 + d₂/100 + d₃/1000 + … , that is, the number its partial sums approach. The expansion terminates if every digit from some point on is 0, and repeats if from some point on a fixed block of digits recurs for ever.
This is what place value has always meant. 0.25 is 2/10 + 5/100 = 1/4, a sum of two terms, and 0.333… is the same kind of sum with no last term. The only difference is that the second one needs the partial sums to settle before it denotes anything, and the infinite geometric series is exactly the tool that says when they do. Notation for the repeating block varies: a bar over the block, a dot over each end of it, or an ellipsis after two or three copies. All three are in use and the choice between them is arbitrary. This course writes the block out two or three times and then … , so 0.454545… means the 45 goes on for ever.
A repeating block is a geometric series
Take 0.454545… . The block 45 occupies the first two decimal places, then the next two, then the next two, so the series is 45/100 + 45/10000 + 45/1000000 + … . Each term is the one before divided by 100.
0.454545… = 45/100 + 45/100² + 45/100³ + …
a₁ = 45/100 r = 1/100 |r| < 1, so there is a sum
S∞ = (45/100)/(1 - 1/100) = (45/100)/(99/100) = 45/99 = 5/11
partial sums 0.45, 0.4545, 0.454545, … climbing toward 5/11
Theorem · Every repeating decimal is a rational numberSuppose the expansion repeats a block B of p digits, starting immediately after the decimal point. Then the number is B/(10ᵖ - 1): the series has a₁ = B/10ᵖ and r = 1/10ᵖ, and |r| < 1 holds for every p ≥ 1.
If a few fixed digits come first, the repeating tail is divided by a further power of ten and the fixed part is added back, which changes the arithmetic but not the conclusion.
With a₁ = B/10ᵖ and r = 1/10ᵖ, the sum formula gives S∞ = (B/10ᵖ)/(1 - 1/10ᵖ). Multiply numerator and denominator by 10ᵖ: the numerator becomes B and the denominator becomes 10ᵖ - 1, which is the string of p nines.
Both B and 10ᵖ - 1 are whole numbers and 10ᵖ - 1 is not zero, so the sum is a ratio of whole numbers. Adding the fixed head, itself a terminating decimal and so a fraction, keeps it one.
□
The school method — call the number x, multiply by a power of ten, subtract — is this proof compressed. Multiplying 0.454545… by 100 shifts the whole tail one block to the left, so 100x and x have identical tails and everything cancels except the block that falls out in front. It is the Sₙ - rSₙ manoeuvre with the shift run the other way: there the second line was r times the first, here it is 1/r times.
x = 0.BBBBB… B is a block of p digits
10ᵖx = B.BBBBB… the tail is unchanged, one block earlier
10ᵖx - x = B the two tails cancel exactly
(10ᵖ - 1)x = B
x = B/(10ᵖ - 1) p nines underneath
0.999… and the number it is
Example · 0.999… = 1, three ways of seeing the same factBy the formula: a₁ = 9/10, r = 1/10, so S∞ = (9/10)/(9/10) = 1. By the block rule: B = 9 and p = 1, so the value is 9/9 = 1. By thirds: 0.333… = 1/3 is uncontroversial, and multiplying both sides by 3 gives 0.999… = 1.
The objection people raise is that the partial sums 0.9, 0.99, 0.999, … are all less than 1, so the total must be too. Every one of those partial sums is indeed less than 1. The sum of the series is not one of them; it is the number they approach. The gap 1 - 0.99…9 with n nines is exactly 1/10ⁿ, and no positive number is smaller than every 1/10ⁿ, so a number differing from 1 by less than all of them differs from it by 0. A consequence is that decimal names are not quite unique: every terminating decimal has a second name ending in repeating nines, 0.25 = 0.24999… , since 24/100 + (9/1000)/(1 - 1/10) is 6/25 + 1/100 = 1/4. This is the only ambiguity there is — a number with no terminating expansion has exactly one decimal name.
The other direction: which fractions repeat
Dividing a whole number by q by hand produces a remainder at every step, and each remainder is one of 0, 1, …, q - 1. Either 0 turns up, and the expansion terminates, or within q steps some earlier remainder recurs — and once a remainder recurs the digits after it repeat exactly as they did before, because the same remainder produces the same next digit. So every fraction terminates or repeats, with a block shorter than q; there is no third behaviour.
Example · Three divisions1/7 = 0.142857142857… , a block of six, which is the longest a denominator of 7 allows. 1/13 = 0.076923076923… , also six. 3/40 = 0.075 exactly, because 40 = 2³·5 and a denominator built only from 2s and 5s can be turned into a power of ten: 3/40 = 75/1000.
Putting the two directions together: a number is rational exactly when its decimal expansion terminates or repeats. Foundations of Algebra sorted the reals into rational and irrational and asserted this; the geometric series is what turns the assertion into an argument. It also gives a way to write down an irrational number on demand — 0.101001000100001… , with one more zero in each gap, never repeats and so cannot be a fraction.