Collatz Conjecture
The Simplest Impossible Problem
Pick any positive integer. If it's even, divide by 2. If it's odd, multiply by 3 and add 1. Repeat. It ALWAYS reaches 1... but nobody on Earth can prove why. Mathematicians have checked every number up to 2^68 — still no proof.
Collatz Conjecture
function collatz(n) {
let steps = [n];
while (n !== 1) {
n = n % 2 === 0 ? n / 2 : 3 * n + 1;
steps.push(n);
}
return steps;
} Paul Erdős said: 'Mathematics is not yet ready for such problems.' There's a $500 bounty on it — still unclaimed since 1937.