The Collatz conjecture: the simplest unsolved maths problem
Take any whole number. If it is even, halve it. If it is odd, multiply by 3 and add 1. Keep going. The Collatz conjecture says you will always end up at 1. Nobody has been able to prove it.
The rule
The whole puzzle is one rule applied again and again:
- If the number is even, divide it by 2.
- If the number is odd, multiply it by 3 and add 1.
- Stop when you reach 1.
A first example
Start with 6. It is even, so halve it to get 3. Three is odd, so 3 x 3 + 1 = 10. Then 5, 16, 8, 4, 2 and finally 1.
- That took 8 steps. The sequence is sometimes called a hailstone sequence, because the numbers rise and fall like hail in a cloud before landing.
6, 3, 10, 5, 16, 8, 4, 2, 1Surprisingly wild paths
Small starting numbers can behave dramatically. Starting from 27, the sequence takes 111 steps and climbs as high as 9,232 before it finally falls to 1. Starting from 97 takes 118 steps, and 871 takes 178.
Among all starting numbers below one million, 837,799 takes the longest, with 524 steps.
The conjecture
A conjecture is a statement believed to be true but not yet proved. Computers have checked every starting number up to an astonishingly large size, beyond 10 to the power 20, and every one of them reaches 1. But checking numbers one by one can never prove that all numbers behave the same way.
There could be a number that loops forever without reaching 1, or climbs without end. Nobody has found one, and nobody has shown that none exists.
Why it is so hard
Halving and tripling pull in opposite directions, and the pattern of evens and odds in the sequence behaves almost randomly. There is no known structure to grab hold of. Mathematicians have proved partial results, for example that almost all numbers eventually come down below any given value in a certain statistical sense, but not the full statement.
Things to try
- Look for the starting number below 100 with the longest sequence. The answer is 97.
- Notice that powers of 2 fall straight to 1 by halving. 64 takes only 6 steps.
- Count how many halving steps and how many tripling steps a sequence has. For 27 there are 41 odd steps and 70 even steps.
Explore it
The Collatz sequence calculator shows the steps, the highest value reached and the full sequence for any starting number up to a quadrillion, using exact whole-number arithmetic. It is a good way to explore patterns for yourself.