The idea in plain English: Pick any positive whole number. If it's even, cut it in half. If it's odd, multiply it by 3 and add 1. Then do the same thing to the result. Keep going. The conjecture says: you will always end up at 1, no matter what number you start with. Once you reach 1, a short loop kicks in: 1 → 4 → 2 → 1. From there you never leave.
Why this really exists: The Collatz Conjecture was posed by German mathematician Lothar Collatz in 1937. It looks like a simple arithmetic game — something a 10-year-old could understand — yet after over 85 years of effort by the world's best mathematicians, nobody has been able to prove it's true for all numbers. The famous mathematician Paul Erdős said about Collatz: "Mathematics is not yet ready for such problems." It's a gateway into the deep waters of dynamical systems, chaos theory, and the limits of what we can prove.
Let's walk through the sequence step by step:
The sequence is: 5 → 16 → 8 → 4 → 2 → 1. The puzzle counts the number of steps taken to reach 1 for the first time. In this case, the answer is 5.
A small number like 27 produces a surprisingly long and chaotic sequence. Watch what happens:
What's remarkable is that even after soaring to 9,232 — over 340× the starting value — the sequence eventually collapses back down to 1. This rise-and-collapse behavior is what makes the conjecture so mysterious. Even numbers that grow huge always seem to come back down.
1. Start with any positive integer n
2. If n is even, set n = n / 2
3. If n is odd, set n = 3n + 1
4. Count this as one step
5. Repeat until n reaches 1
6. The puzzle answer is the total number of steps taken
💡 The sequence can grow very large before shrinking. Python's big integers handle this effortlessly, but be aware: some numbers take thousands of steps and produce values exceeding 10⁶⁰⁰.
| Difficulty | What to Expect | Example Start | Steps |
|---|---|---|---|
| 1 | Small start (≤10), finishes in <10 steps | n = 6 | 8 |
| 2 | Moderate start, some zigzag | n = 19 | 20 |
| 3 | Larger start, peaks above 1,000 | n = 27 | 111 |
| 4 | Significant sequence, peaks above 100,000 | n = 97 | 118 |
| 5 | Long sequence, extreme peaks, many steps | n = 871 | 178 |