Collatz Sequence Visualizer

Enter any whole number to follow its Collatz sequence: halve it when it is even, or triple it and add 1 when it is odd, until it reaches 1. See the steps, the highest value reached and the full list of numbers.

1 Fill in the box

2 Your answer

Your answer shows here as you type.

How to use the Collatz Sequence Visualizer

  1. Type a whole number from 1 upwards into the starting number box.
  2. Read the number of steps needed to reach 1 and the highest value along the way.
  3. Copy the full sequence from the Sequence row if you want to check or reuse it.

Frequently asked questions

What is the Collatz conjecture?

It is the claim that starting from any positive whole number and repeatedly halving even numbers or replacing odd numbers n with 3n + 1 always reaches 1. It has been checked for all starting numbers far beyond 2^60, but no proof exists yet.

How many steps does 27 take to reach 1?

27 takes 111 steps to reach 1. Along the way it climbs to 9,232, which is its highest value, before falling back down.

Why does the sequence stop at 1?

Once a sequence reaches 1, the rule gives 4, then 2, then 1 again, so it loops forever. The count of steps is taken up to the first 1.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.