Collatz Conjecture Explorer

Want to see the rest? Click here.
Enter a number and click “Run Collatz” to see step-by-step reasoning here. (Try spamming a large number)

What is happening?

This tool follows a simple mathematical rule called the Collatz Conjecture.

The rule is:

You repeat this process over and over with each new number.

Why this is interesting

Even though the rule is simple, the sequence behaves in a chaotic way:

Once it reaches 1, it enters a loop: 1 → 4 → 2 → 1 → ...

What this program shows you

This tool does 3 things:

  1. Shows every number in the sequence
  2. Explains each step as it happens
  3. Counts how many steps it takes to reach 1

Mathematicians still don’t know why this always works for every number — even though it has been tested for billions of cases.