The Collatz conjecture is deceptively simple to state β take any positive whole number, halve it if it's even, triple it and add one if it's odd, and repeat β yet it has resisted proof for nearly a century. This calculator generates the sequence for any starting number, reporting the number of steps to reach 1, the peak value along the way, and the full step-by-step chain.
How the sequence is generated
Starting from a chosen whole number, the calculator applies the same two rules over and over: an even number is divided by 2, and an odd number is tripled and has 1 added to it. The process repeats until the value hits 1, at which point the sequence stops. Every rule application is one iteration, and the total number of iterations needed is called the stopping time. This calculator's Steps tab reports that count directly, while the Sequence tab lists every intermediate value.
Why the sequence is unpredictable
Even though the rule is fixed, the resulting sequence can behave wildly β climbing far above the starting number before eventually collapsing. That's why the values are nicknamed hailstone numbers: like hail bouncing up and down inside a storm cloud before finally falling, a Collatz sequence can rise for many steps before it starts its final descent. The starting number 27, for example, climbs all the way to 9,232 β over 340 times its starting value β before it settles down to 1 after 111 steps. This calculator's Peak Value tab pinpoints exactly which step produced that maximum.
What's proven and what isn't
Every starting number ever tested β computationally verified into the trillions β eventually reaches 1. But the Collatz conjecture itself, first posed by German mathematician Lothar Collatz in 1937, claims this holds for every positive whole number, and nobody has proven it. It remains one of the most famous open problems in mathematics: easy enough to explain to a child, yet unsolved by professional mathematicians for over 85 years. Related tools like the Modulo Calculator and Sequences Calculator are useful for exploring other number patterns in the same spirit.