The Number That Rotates

  • Medium
  • Number puzzles
  • Tests: Seeing a repeating decimal as a whole number

The puzzle

142857 x 2 = 285714. x 3 = 428571. x 4 = 571428. x 5 = 714285. x 6 = 857142. Every answer is the same six digits in the same cyclic order, starting from a different place.

Why? And what happens when you multiply by 7?

Stuck?

One at a time, smallest first. Open only as many as you need — the whole point of the puzzle is the part you work out yourself.

Hint 1

Work out 1/7 as a decimal.

Hint 2

142857 x 7 is worth computing. The answer explains everything.

Show the answer Hide the answer

142857 is the repeating block of 1/7, and 142857 x 7 = 999999. Multiplying by 2 to 6 just picks a different starting point in the repeat.

How to get there

1/7 = 0.142857142857... The six digits repeat forever. And 2/7 = 0.285714..., 3/7 = 0.428571..., and so on - the same repeating block entered at a different point, because multiplying 1/7 by k shifts where in the cycle you begin.

Since 142857 is the repeating block, 142857 = 999999/7, so 142857 x 7 = 999999 - all nines, not a rotation. That is where the pattern stops, and it stops because 7/7 = 1 has no repeating part at all.

The same thing happens for any prime p whose reciprocal has a repeat of full length p-1: 1/17 gives a 16-digit cyclic number, and 1/19 an 18-digit one. 1/11 = 0.0909... does not, because its repeat is only 2 digits long rather than 10.

The technique worth keeping

A repeating decimal of length k is a fraction with 10^k - 1 on the bottom. Writing 0.142857... as 142857/999999 turns a curiosity about digits into an equation about integers.