· computer-science · 4 min read
The Busy Beaver Function: The Uncomputable Numbers That Break Mathematics
Introduced in 1962 by Tibor Radó, the Busy Beaver game asks a deceptively simple question about tiny computer programs. The answer produces numbers that grow faster than any conceivable algorithm—and eventually outrun the axioms of modern mathematics itself.

In 1936, British mathematician Alan Turing invented an imaginary, minimalist computing device to define the absolute boundaries of mechanical calculation. Known today as a Turing Machine, it consists of an infinitely long paper tape divided into squares, a mechanical read-write head that can print or erase symbols (0 or 1), and a small list of internal rules—called states—dictating how the head moves left or right.
Despite its extreme simplicity, a Turing machine can simulate any algorithm ever written on the world’s fastest supercomputers.
In 1962, Hungarian mathematician Tibor Radó used Turing’s abstract machine to invent a seemingly innocent mathematical game. Radó asked: if you restrict a Turing machine to a tiny, fixed number of internal rules (states) and start it on a completely blank tape filled with zeros, what is the maximum amount of work it can accomplish before cleanly stopping?
Radó named this challenge the Busy Beaver Game.
What began as an abstract parlor puzzle for logicians quickly revealed one of the most staggering hierarchies of numbers in human knowledge—a sequence that explodes toward infinity faster than any computable formula, and whose values eventually become unprovable within standard mathematics.
Rules of the Busy Beaver Game
To play the Busy Beaver game for a given number of states ($n$), you examine every possible valid Turing machine that uses $n$ states and a binary alphabet (0 and 1):
- Every machine starts with its read-write head positioned on an infinite tape filled entirely with zeros.
- At each step, the machine reads the symbol under its head, writes a 0 or 1, shifts one square left or right, and transitions to another state—or enters a special HALT state.
- Because there are only finitely many ways to wire together $n$ states, the total number of possible $n$-state machines is strictly finite.
When you run all possible $n$-state machines, they split into two populations:
- Non-Halting Machines: Machines that get trapped in infinite loops, moving endlessly down the tape or oscillating back and forth forever. These machines are disqualified.
- Halting Machines: Machines that perform a finite sequence of operations and eventually trigger the HALT command.
Among all $n$-state machines that successfully halt, the Busy Beaver function—denoted as $BB(n)$—measures the champion: the maximum number of 1s left behind on the tape (or, in its sister formulation $S(n)$, the maximum number of steps taken before halting).
A Deceptively Gentle Beginning
For very small numbers of states, finding the Busy Beaver champion is straightforward:
- 1 State ($n = 1$): There are only 64 possible 1-state machines. The most productive halting machine prints a single
1and immediately stops. Thus, $BB(1) = 1$ (taking 1 step). - 2 States ($n = 2$): Out of 20,736 possible machines, the champion prints four
1s in 6 steps before halting. Thus, $BB(2) = 4$. - 3 States ($n = 3$): Out of nearly 17 million machines, the champion writes six
1s in 21 steps. Thus, $BB(3) = 6$. - 4 States ($n = 4$): Out of over 25 billion machines, the champion produces thirteen
1s in 107 steps. Thus, $BB(4) = 13$.
At four states, the numbers still look modest and tame. Then comes five.
The 35-Year Siege on BB(5)
When mathematicians moved to 5-state Turing machines, the search space ballooned to over 63 trillion distinct programs.
In 1989, German computer scientists Heiner Marxen and Jürgen Buntrock discovered a 5-state machine that ran for an astonishing 47,176,870 steps, leaving 4,098 ones on the tape before halting.
For more than three decades, researchers suspected that 4,098 was the true value of $BB(5)$, but proving it was an immense mathematical challenge. To prove $BB(5) = 4,098$, mathematicians had to inspect every single one of the remaining 63 trillion 5-state machines and rigorously prove that every machine running longer than 47.1 million steps was trapped in an infinite loop that would never halt.
In July 2024, an international open-source collaboration known as the Busy Beaver Challenge finally succeeded. Using the interactive theorem prover Coq, the team formally verified that no other 5-state machine ever halts later—officially locking in $BB(5) = 4,098$.
The Explosion at BB(6)
If $BB(5)$ required 35 years of human and computer effort to prove, $BB(6)$ shatters human comprehension entirely.
In



