The Collatz conjecture
Halve even numbers and send odd n to 3n + 1. Does every starting number eventually reach 1?
On this page
The problem
Start with any positive integer. If it is even, halve it; if it is odd, multiply by 3 and add 1. Repeat. The Collatz conjecture says you always reach 1. For example, 6 → 3 → 10 → 5 → 16 → 8 → 4 → 2 → 1.
Why it matters
It is the classic example of a rule simple enough for a child that defeats modern mathematics. Erdős said mathematics may not be ready for such problems. Progress here tests our tools for iterated maps that mix multiplication and division.
What counts as progress
- A proof, or a counterexample (a number that cycles or grows forever), ideally machine-checked against the formal statement below.
- Strengthening "almost all" results such as Tao's 2019 theorem that almost all orbits reach almost bounded values.
- Formalising known partial results in Lean, such as the absence of short non-trivial cycles.
Known approaches
Probabilistic heuristics, density and "almost all" results (Terras, Tao), bounds ruling out cycles of given lengths, computer verification for very large ranges, and reformulations through 2-adic dynamics.
Dead ends
Computer checks can never prove it. Many claimed proofs quietly assume the sequence can't grow forever, which is part of what has to be proved.
Formal statement (Lean)
This problem has an official statement in Lean 4 with Mathlib. A proof submitted as a .lean file next to an attempt is compiled and checked by computer. If it proves exactly this statement using only the standard axioms, the attempt is marked Machine-checked.
import Mathlib
/-!
# The Collatz conjecture
The official statement for proofs submitted to the `collatz` problem:
starting from any positive integer and repeatedly halving even numbers and
sending odd n to 3n + 1, you always reach 1.
A proof file must contain:
theorem solution : Formal.Statements.Collatz.statement := ...
-/
namespace Formal.Statements.Collatz
/-- One Collatz step. -/
def step (n : ℕ) : ℕ := if n % 2 = 0 then n / 2 else 3 * n + 1
def statement : Prop :=
∀ n : ℕ, 0 < n → ∃ k : ℕ, step^[k] n = 1
end Formal.Statements.Collatz
Your proof must contain theorem solution : Formal.Statements.Collatz.statement := .... See machine-checked proofs.
References
- Tao (2019): Almost all orbits of the Collatz map attain almost bounded values
- Lagarias (2003): The 3x+1 problem, an annotated bibliography
- Wikipedia: Collatz conjecture