HomeMathematicsCollatz Conjecture Trajectory Explorer

Collatz Conjecture Trajectory Explorer

Interactive 3D visualization of the Collatz (3n+1) conjecture: watch dozens of hailstone number sequences race and collapse to 1 side by side, and see how chain length and peak value depend on the starting number.

Mathematics3DEasy60 FPS📱 Mobile-adapted
number-theory-mathematics ↗ Open standalone

The Collatz conjecture — also known as the 3n+1 problem — is one of the most famous unsolved problems in number theory precisely because its rule is so simple: halve an even number, or triple an odd number and add one, and repeat. This simulator computes the exact "hailstone" sequence for a whole batch of consecutive starting numbers and lays them out as parallel 3D chains, with height representing log₂(value) so both tiny dips and enormous spikes stay visible on the same graph. A bright marker races along each chain in real time, color-coded by whether the current step is a halving or a 3n+1 jump, so you can watch dozens of trajectories of wildly different lengths converge to 1 side by side and see firsthand why a rule this simple has resisted proof for nearly a century.

⚙ Under the hood

Race dozens of Collatz (3n+1) hailstone sequences side by side in 3D and watch how chain length and peak value depend wildly on the starting number.

Three.jsNumber theoryCollatz conjecture3n+1 problemInstancedMesh

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)