Explore the mysterious 3n+1 problem and watch numbers journey to 1.
Last updated: 2026-05-24T22:58:31.873Z
Enter a positive integer starting value. Maximum steps limits computation.
Steps to 1
111
Max Value
9,232
Sequence (first 50 terms)
The Collatz conjecture, also known as the 3n+1 problem, is one of mathematics' most famous unsolved problems. It states that for any positive integer, if you repeatedly apply a simple rule, you will eventually reach the number 1. Despite its simplicity, no one has been able to prove this is true for all numbers.
The rule is: if the number is even, divide it by 2. If it's odd, multiply by 3 and add 1. For example, starting with 6: 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1. The conjecture has been verified for all numbers up to 2^68 (about 295 quintillion), but a general proof remains elusive.
If n is even:
n → n ÷ 2
If n is odd:
n → 3n + 1
Repeat until n = 1
Follow the sequence step by step:
Start: n = 6 (even)
Step 1: 6 ÷ 2 = 3 (now odd)
Step 2: 3 × 3 + 1 = 10 (now even)
Step 3: 10 ÷ 2 = 5 (now odd)
Step 4: 5 × 3 + 1 = 16 (now even)
Step 5: 16 ÷ 2 = 8 (now even)
Step 6: 8 ÷ 2 = 4 (now even)
Step 7: 4 ÷ 2 = 2 (now even)
Step 8: 2 ÷ 2 = 1 (reached goal!)
Reached 1 after 8 steps
No, despite being studied for decades, no proof exists. The Collatz conjecture remains an open problem in mathematics.
While simple, it reveals deep complexities about iteration and unpredictable behavior in simple systems. It has connections to chaos theory.
Not found yet. All numbers tested (up to 2^68) eventually reach 1, supporting but not proving the conjecture.
For starting numbers under 1 billion, 63728127 takes 949 steps to reach 1 with a maximum value
Yes. Some numbers reach 1 quickly (e.g., 5 takes 5 steps), while others take hundreds or thousands of steps.
Mathematicians have studied variants like 5n+1, which exhibits different behavior and often doesn't always reach 1.
Yes! The Collatz sequence has fractal-like properties and is studied in chaos theory research.
Negative integers and zero have different behaviors. The conjecture specifically applies to positive integers > 0.
Related Tools