On this page
In 1962 the mathematician Tibor Radó asked a question that sounds like a game: among all Turing machines with n states that eventually stop, which one keeps busy the longest? His paper, On Non-Computable Functions in the Bell System Technical Journal, turned that game into one of the simplest examples of a function no computer can compute. In 2024, an online collaboration pinned down its fifth value.
What is the busy beaver function?
The machines are tiny: a tape of 0s and 1s, a head that reads one cell, and n states plus a halt state. Each rule says: in this state, reading this symbol, write a symbol, move one cell, switch state.
The busy beaver S(n), often written BB(n), is the maximum number of steps an n-state, 2-symbol Turing machine can perform from the all-zero tape before halting, as defined in the bbchallenge collaboration's paper. Its sister function Σ(n) is the most 1s such a machine can leave on the tape when it halts (busy beaver article on Wikipedia).
Machines that run forever do not count, and that is where all the difficulty lives.
What are the known busy beaver numbers?
The step counts for one to four states are listed with their original proofs on the bbchallenge history page, and the counts of 1s are given in the Wikipedia busy beaver article:
1 state: 1 step, one 1
2 states: 6 steps, four 1s
3 states: 21 steps, six 1s
4 states: 107 steps, thirteen 1s
5 states: 47,176,870 steps, 4,098 1s
Lin and Radó published the 3-state values in 1965, and Brady's proof that S(4) = 107 was published in 1983 (Quanta Magazine). One extra state takes the record from 107 steps to over 47 million.
Worked example: trace the 2-state champion by hand
The 2-state champion (rules from the Wikipedia article) has four rules. Start in state A on a blank tape:
A reading 0: write 1, move right, go to B
A reading 1: write 1, move left, go to B
B reading 0: write 1, move left, go to A
B reading 1: write 1, move right, halt
Take a pencil and follow it:
A reads 0, writes 1, moves right. Tape: 1
B reads 0, writes 1, moves left. Tape: 11
A reads the 1, keeps it, moves left onto a blank cell.
B reads 0, writes 1, moves left. Tape: 111
A reads 0, writes 1, moves right. Tape: 1111
B reads 1, writes 1 and halts.
Six steps and four 1s: exactly S(2) = 6 and Σ(2) = 4. The diagram at the top of this post shows the same run, one row per step.
Now test yourself: change the rule for A reading 1 so it goes to A instead of B, and trace again. The machine now halts after 5 steps with three 1s.
How was BB(5) = 47,176,870 proved?
Marxen and Buntrock found a 5-state machine that runs for 47,176,870 steps in 1989 (Quanta Magazine). The hard part was showing that no other halting 5-state machine runs longer.
The bbchallenge paper's abstract says the proof enumerates 181,385,789 Turing machines with 5 states and decides, for each one, whether it halts. The search was completed on 2 July 2024 (bbchallenge). The result was checked in the Coq proof assistant, software that certifies a proof is free of errors, and the effort grew to more than 20 contributors from around the world (Quanta Magazine). The paper calls it the first new busy beaver value in over 40 years and the first ever to be formally verified.
Why does the busy beaver grow faster than any computable function?
Radó's 1962 paper proved that for any computable function f, Σ(n) > f(n) for all sufficiently large n, as the Wikipedia article summarises his result. Both S(n) and Σ(n) eventually overtake every computable function.
Here is the short argument for S(n). Suppose some program could compute S(n). Then you could decide whether any n-state machine halts on a blank tape: run it for S(n) steps, and if it has not stopped by then, it never will. That would solve the blank-tape halting problem, which no program can do. Our explainer on why the halting problem is undecidable walks through Turing's diagonal argument.
So the busy beaver outruns any formula or program you could write down. For another idea that goes past ordinary counting, read about ordinal numbers and counting past infinity.
How can you check you really understand it?
Without notes:
Trace the 2-state champion on paper until it halts, and count its steps and 1s.
Explain in two sentences why finding a long-running machine gives only a lower bound.
Write out the argument that a program computing S(n) would solve the halting problem.
If one step feels shaky, the Fermi Concept Library has every concept in mathematics and computing, each with its own lesson and its place in the map, so you can go back over the ideas behind it before moving on.



