Collatz Conjecture (3n + 1) Visualizer

Generate the hailstone trajectory for any integer, find peak values, stopping time, and view an interactive SVG chart.

The Collatz Conjecture (3n + 1 Problem) Explained

Named after Lothar Collatz, the conjecture states that starting from any positive integer n, repeated application of the rule (n/2 if even, 3n+1 if odd) will always reach the number 1.

Hailstone Transformation Rule

f(n) = n / 2 (if n is even)

f(n) = 3n + 1 (if n is odd)

Step-by-Step Worked Examples

Example: Starting with 27

Despite its small starting value, 27 takes 111 steps to reach 1 and reaches a colossal maximum peak of 9,232 before descending.

Frequently Asked Questions

Has the Collatz conjecture been proven?

No. Despite extensive computational testing up to 2⁶⁸, the conjecture remains one of the most famous unsolved problems in mathematics.