Why Is the Decimal Expansion of 1/7 Cyclical?
At a glance
- 1. Track the remainders
In long division, each next remainder is ten times the previous remainder modulo seven.
- 2. Follow the cycle
The remainders return to their starting value after six steps, producing the repeating digits 142857.
- 3. Start elsewhere
Dividing numerators two through six by seven starts at different points in the same remainder cycle.
- 4. Connect the rotations
Those different starting points explain why the first six multiples of 142857 are rotations of its digits.
The decimal expansion of is , with the six-digit block repeating forever. It is called cyclical because the same digits appear in a loop, and because the first six multiples of are rotations of that block.
The reason is visible in the steps of long division. At each step, the next decimal digit is determined by the current remainder. For division by 7, the remainders cycle through all six possible nonzero remainders and then return to the start.
How long division creates the cycle
Suppose the current remainder is . To find the next decimal digit, multiply by 10, divide by 7, and keep the new remainder. In modular notation, the next remainder is .
Starting with remainder 1, the calculation is:
| Current remainder | Multiply by 10 | Next digit | New remainder |
|---|---|---|---|
| 1 | 10 = 1 × 7 + 3 | 1 | 3 |
| 3 | 30 = 4 × 7 + 2 | 4 | 2 |
| 2 | 20 = 2 × 7 + 6 | 2 | 6 |
| 6 | 60 = 8 × 7 + 4 | 8 | 4 |
| 4 | 40 = 5 × 7 + 5 | 5 | 5 |
| 5 | 50 = 7 × 7 + 1 | 7 | 1 |
The digits in the third column give . The last remainder is 1 again, so the next long-division step repeats exactly: it produces another 1 and returns to remainder 3. That is why the digits repeat in the same order.
In modular arithmetic, the remainders are generated by repeatedly multiplying by 10 modulo 7. Since , the sequence is
It takes six steps to return to 1. In fact, , and no smaller positive power of 10 is congruent to 1 modulo 7. So the repeating block has length 6, not merely a length that divides 6.
Why the other fractions give rotations
For , where is one of , long division starts with remainder instead of 1. Those starting remainders are all in the same six-remainder loop. Starting at a different point in the loop gives the same repeating digits, shifted to a different starting position:
| Fraction | Decimal expansion |
|---|---|
For example, the remainder cycle for begins at 2. The digits therefore begin at the third digit of the cycle for : . This produces , a rotation of .
The corresponding six-digit integer has the same pattern in its multiples:
This is the familiar cyclic-number property. It also follows from the exact equality
which holds because . Multiplying the numerator by gives the rotations shown above.
Common mistakes
- Thinking the digits repeat because 7 is prime. Primality alone does not determine the length of a decimal repetend. The length depends on how quickly powers of 10 return to 1 modulo the denominator.
- Confusing a repeating decimal with an infinite nonrepeating one. A rational number such as must have a decimal expansion that terminates or eventually repeats. Here it repeats from the first digit because the long-division remainders return to 1 immediately after the cycle.
- Assuming every denominator gives rotations of this kind. The rotations occur here because the remainders for run through every nonzero residue modulo 7. Other denominators can produce shorter cycles or cycles that do not include every possible nonzero remainder.
The key mechanism is the remainder loop: multiplying by 10 modulo 7 visits all six nonzero remainders before returning to the start. The repeating digits record that loop, and the rotations come from entering it at different remainders.
References
- Elementary Number Theory
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.