Kolton Ndoj

Collatz conjecture

Pick any number, halve it if even or triple-plus-one if odd, and nobody can prove you always reach 1.

n↦{n/2n even3n+1n oddn\mapsto\begin{cases} n/2 & n\text{ even}\\ 3n+1 & n\text{ odd}\end{cases}

What the symbols mean

nn
any positive whole number you choose
3n+13n+1
triples an odd number and adds one

Why it works — the picture

Start at 27 and the sequence soars up to 9232 before collapsing to 1 after 111 steps. It behaves like a hailstone, being tossed up and down. Every starting number ever tested falls into the loop 4, 2, 1. Yet no one has a proof that every number does. The rule is something a child can follow, and it has beaten the best mathematicians since the 1930s.

Try it yourself

Where it’s used in real life

It is not used for anything; it is a lesson in how simple rules can hide unsolved depth, and a standard test case for studying unpredictable computation.

The story behind it

Lothar Collatz posed it in 1937. It has been checked by computer for every start up to about 10 to the power 20, with no counterexample.

Related

Play with it live →

Math · Number theory · Intermediate