Skip to content

Loading lab…

One rule, no exceptions found, no proof either.

Take any positive integer. If it is even, halve it. If it is odd, triple it and add one. Repeat. Lothar Collatz asked in 1937 whether this always reaches 1, and the answer is still unknown — despite the sequence being simple enough to explain to a child and despite every one of the first 268 integers having been checked by machine. Paul Erdős said of it: “Mathematics is not yet ripe for such problems.”

There are exactly two ways the conjecture could be false, and this lab can show you both — not for 3n+1, where nobody has found either, but in its neighbours. Change the multiplier to 5 and orbits climb out of the window instead of coming down: that is what a divergent trajectory looks like. Change the addend to 5 and orbits fall into loops that do not contain 1: that is what a rogue cycle looks like. A proof of the Collatz conjecture has to rule out both, for every integer, forever, and the fact that the same rule shape produces both a few clicks away is the reason the problem is hard.

Every number here is an exact integer and every operation is addition, multiplication, halving or a comparison. There is no seed, no step size and no floating-point model, so two runs of the same configuration are identical everywhere, which is what lets the server re-derive your score from your parameters alone. The lab stops following any orbit past 248 and reports that as leaving the window rather than as divergence — it cannot tell an orbit that would come back at 260 from one that never will, and neither can anybody else.