142857 is a number that spins. Multiply it by 2, 3, 4, 5 or 6, and the same six digits come back out, in the same order, just starting from a different place.
Grab a calculator and try it. We'll wait.
Spin the Wheel
Here's the number again: 1 4 2 8 5 7. Now watch what happens when we multiply:
142857 × 1 = 142857
142857 × 2 = 285714
142857 × 3 = 428571
142857 × 4 = 571428
142857 × 5 = 714285
142857 × 6 = 857142
Look closely. It's always the same six digits, 1, 4, 2, 8, 5 and 7, in the same order. Only the starting point moves.
Here's a way to see it. Imagine the six digits written round the edge of a clock face, going round in a circle: 1, then 4, then 2, then 8, then 5, then 7, then back to 1. Each answer is just the same circle, read from a different spot. Multiplying by 2 starts you at the 2. Multiplying by 3 starts you at the 4. Multiplying by 6 starts you at the 8. The number is a merry-go-round!
And Then the Number Explodes
So what about × 7? You might guess the wheel keeps on spinning. It doesn't.
142857 × 7 = 999999
Every digit turns into a 9. It's like the wheel spun faster and faster and then went whoosh.
That also tells us something sneaky. If 142857 × 7 = 999999, then 142857 = 999999 ÷ 7. So 142857 is what you get when you share 999999 equally into seven groups.
Where Does It Come From?
This is the cool bit. Here's what happens if you type 1 ÷ 7 into a calculator:
1 ÷ 7 = 0.142857142857142857...
There it is! The digits 142857 just repeat, over and over, forever. The number is hiding inside the fraction 1/7.
Now try 2 ÷ 7, and 3 ÷ 7:
1 ÷ 7 = 0.142857 142857...
2 ÷ 7 = 0.285714 285714...
3 ÷ 7 = 0.428571 428571...
6 ÷ 7 = 0.857142 857142...
The same wheel again, starting from a different place each time.
Why Does It Spin?
Do 1 ÷ 7 by long division and watch the leftovers (the remainders). Each time you divide by 7, the leftover can only be 1, 2, 3, 4, 5 or 6. It can never be 7 or more, or you'd have fitted in another 7.
Here are the leftovers, step by step: 3, then 2, then 6, then 4, then 5, then 1. And then we're back to a leftover of 1, which is exactly where we started, so everything repeats.
All six possible leftovers show up exactly once before the pattern loops. And each leftover is a different spot on the same loop. That's why 2 ÷ 7, 3 ÷ 7 and the rest are all the same digits, just starting from a different place on the circle.
Try It Yourself
The chopping trick. What's 142857 × 8?
142857 × 8 = 1142856
That's seven digits, which breaks the wheel. But chop off the 1 at the front and add it to the end:
142856 + 1 = 142857
We're back at the start. The wheel catches itself!
The splitting trick. Break 142857 into pairs, then add them up:
14 + 28 + 57 = 99
Break it into two halves instead:
142 + 857 = 999
The nines keep coming back!
The prime hunt. Is 7 the only number that makes a spinning wheel? Nope. The prime 17 does it too, but its wheel is 16 digits long:
1 ÷ 17 = 0.0588235294117647 0588235294117647...
Multiply 0588235294117647 by any number from 1 to 16 and you'll get the same digits spun round. (We checked all 16. Every one of them worked.)
But not every number works. The primes 7, 17, 19, 23, 29, 47, 59, 61 and 97 are the ones under 100 that make a full spinning wheel. A prime like 13 doesn't make the grade, because 1 ÷ 13 repeats after just 6 digits, not 12. Can you find out why 3 doesn't work either?
The OddMaths Takeaway
142857 looks like any other six-digit number, but it's secretly a fraction in disguise. It's what 1 ÷ 7 looks like once you stop and write down one full repeat. Because dividing by 7 can only leave six different leftovers, and all six of them show up before the pattern loops, every multiple from 1 to 6 is the very same loop with a different starting point.
Mathematicians call numbers like this cyclic numbers, and 142857 is the best-known one. Seven isn't the only prime that works, but it's the smallest.