Interactive Collatz Conjecture (3n + 1) Visualizer
Generate the hailstone trajectory for any integer, find peak values, stopping time, and view an interactive SVG chart.
The fascinating world of numbers
Generate the hailstone trajectory for any integer, find peak values, stopping time, and view an interactive SVG chart.
Generate the hailstone trajectory for any integer, find peak values, stopping time, and view an interactive SVG chart.
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.
f(n) = n / 2 (if n is even)
f(n) = 3n + 1 (if n is odd)
Despite its small starting value, 27 takes 111 steps to reach 1 and reaches a colossal maximum peak of 9,232 before descending.
No. Despite extensive computational testing up to 2⁶⁸, the conjecture remains one of the most famous unsolved problems in mathematics.