The Collatz Conjecture
Pick any positive integer, then follow two rules: if it is even, divide by 2; if it is odd, compute \(3n+1\). The Collatz Conjecture says every sequence eventually reaches 1 and loops 4 → 2 → 1. PictorX turns those hailstone numbers into a geometric tree and a Mandelbrot-style fractal you can tune, animate, and save.
How it works
- Open this page and watch the geometric tree grow from hailstone sequences.
- Choose a starting number, or switch to the complex fractal and drag to pan, scroll to zoom.
- Tune the turn angles or iterations, then save a PNG or open the image in the PictorX editor.
Rules simple enough for a child
Start with a positive integer n. If n is even, replace it with \(n/2\). If n is odd, replace it with \(3n+1\). Repeat. The conjecture claims that every starting value eventually reaches 1. Once you hit 1 you enter the infinite cycle 1 → 4 → 2 → 1. Sequences bounce up and down before they collapse, which is why they are also called hailstone numbers. Start at 6 and the path is 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1.
Why a proof is still missing
Computers have checked every integer far past \(2\times 10^{21}\), and each one reaches 1. A general proof does not exist. Paul Erdős said mathematics is not yet ready for this kind of problem. In 2019 Terence Tao proved the conjecture holds for almost all numbers, which is a major advance but not a complete solution.
A Japanese company has offered a prize of 120 million yen for a definitive proof.
Two ways to see the maths
The geometric tree treats each even or odd step as a turn on the plane, so a sequence becomes a path and many sequences become a coral. The complex fractal interpolates the same rule to every point \(z=x+yi\) with a trigonometric switch that is exactly \(n/2\) on even integers and exactly \(3n+1\) on odd integers. Colour records how many iterations it takes for \(|z|\) to escape.
Using the app
Pick a starting number, grow a geometric hailstone tree, or zoom the continuous Collatz fractal.
Frequently asked questions
What is the Collatz Conjecture?
It is the claim that every positive integer reaches 1 if you repeatedly replace an even n with \(n/2\) and an odd n with \(3n+1\). The rules are simple; a general proof is not.
What does this app show?
Three views of the same rule. The hailstone chart plots every value from a starting number until it reaches 1. The geometric tree turns those sequences into paths on the plane. The complex fractal iterates a smooth Collatz function on the complex plane and colors pixels by escape time.
Why are the sequences called hailstone numbers?
Values often rise and fall many times before they drop to 1, the way hailstones are lifted and dropped in a storm cloud. Start at 6 and you get 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1.
Has the conjecture been proved?
No. Every checked integer ends at 1, and Terence Tao showed that almost all numbers eventually get very small, but a proof for every starting value is still open.
Which number takes the most steps to reach 1?
Below 1,000 it is 871, with 178 steps; below 10,000 it is 6,171, with 261 steps; and below a million it is 837,799, with 524 steps. The famous small one is 27: 111 steps, climbing to 9,232. Type one as the Starting number, or pick Long hail 6171 or Long hail 837799, to see its steps and peak.
柯拉茲猜想: how do I record a video?
Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device.Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner.The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF.You can add one of three music tracks: calm, bright or beat.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
前往編輯器