The busy beaver

Take every machine with n states that starts on an empty tape. Some run forever. Of the ones that stop, which runs the longest? Tibor Radó asked this in 1962 and called the winners busy beavers.1 The number of steps the winner takes is usually written BB(n).

The classic version uses two symbols, the blank and one mark. Below, the mark is B, as in Turing Daily, and the step count includes the last step, the one into ✓, as Turing Daily counts it.

Two states

With two states, the champion runs for six steps:

This is the two-state busy beaver. It starts in state 1 on an empty tape.
StepStateReadsWritesMovesNextTape after
11blankBright2B
22blankBleft1BB
31BBleft2BB
42blankBleft1BBB
51blankBright2BBBB
62BBright✓BBBB

It ends with four B cells on the tape. There are 20,736 tables of this size, counting ✓ as a possible next state, and none of the ones that stop runs longer. That is small enough to check by computer in an instant, and with patience, mostly by hand.

Three and four states

With three states, the longest run is 21 steps, and this is the machine that makes it:

This three-state machine stops after 21 steps, longer than any other three-state machine that stops.

It leaves five B cells. Some other three-state machines leave six, the most of any three-state machine that stops, but they all stop within 14 steps. The longest run and the most marks are separate records, and for three states different machines hold them.

With four states, one machine holds both. It stops after 107 steps and leaves 13 B cells, with one blank cell among them.

This is the four-state busy beaver. It stops after 107 steps and leaves 13 B cells.

The numbers

For each number of states, this table gives how many tables there are of that size, again counting ✓ as a next state, the longest run of any that stops, the most B cells any of them leaves, and when the answer was settled.

StatesTablesLongest runMost B cellsSettled
164111962, Tibor Radó1
220,736641962, Tibor Radó1
316,777,2162161965, Shen Lin and Tibor Radó2
425,600,000,000107131983, Allen Brady3
563,403,380,965,37647,176,8704,0982024, Busy Beaver Challenge4
6232,218,265,089,212,416UnknownUnknownOpen

The number of tables grows quickly, but the longest run grows far faster. Up to four states, the machines could all be sorted out, from three states on with computer searches, plus proofs written for the few machines a search could not settle. Five states is where it stops being easy. Around 1990, Heiner Marxen and Jürgen Buntrock found a five-state machine that stops after 47,176,870 steps.5 Whether any other five-state machine ran longer and still stopped stayed open for more than thirty years.

In July 2024 an online collaboration, the Busy Beaver Challenge, announced a proof that their machine is the champion: BB(5) = 47,176,870.6 A proof like that has to account for every other five-state machine, showing that each one either stops sooner or never stops. After removing machines that are copies of each other, about 181 million were left. Almost all were settled by programs that each recognise one kind of behaviour, and a handful of stubborn machines needed proofs of their own. The whole argument was checked in Coq, a program that accepts a proof only if every step of it is valid, since no person could read a proof that size in full.4

Why it grows so fast

Radó showed that no program can compute BB(n) for every n.1 The reason is short. If one could, it would also settle the halting problem for machines that start on an empty tape: to find out whether an n-state machine stops, run it for BB(n) steps. If it has not stopped by then, it never will. Machines that never stop explains why no program can do that. In fact BB(n) eventually grows faster than every function a program can compute.

Six states are far out of reach. In 2022 Pavel Kropitz found a six-state machine that stops after more than 10↑↑15 steps, a tower of fifteen 10s, each the exponent of the one below.7 It has since been beaten.8 In 2024 the Busy Beaver Challenge found a six-state machine nicknamed Antihydra whose behaviour comes down to an open question about a sequence of numbers much like the Collatz problem.9 Nobody knows whether it stops, so BB(6) cannot be settled without first solving that question.

In Turing Daily

Turing Daily puzzles use three symbols, A, B and the blank, and the machine starts on an input rather than an empty tape, so the busy beaver numbers do not apply as they are. The same thing happens, though: a table with a few states can run for a very long time and still stop, which is why Turing Daily stops counting at 1,000 steps instead of waiting to find out.

Sources

  1. Tibor Radó, On Non-Computable Functions, Bell System Technical Journal 41 (1962), 877–884.
  2. Shen Lin and Tibor Radó, Computer Studies of Turing Machine Problems, Journal of the ACM 12 (1965), 196–212.
  3. Allen H. Brady, The determination of the value of Radó's noncomputable function Σ(k) for four-state Turing machines, Mathematics of Computation 40 (1983), 647–665.
  4. The bbchallenge Collaboration, Determination of the fifth Busy Beaver value, arXiv:2509.12337, 2025.
  5. Heiner Marxen and Jürgen Buntrock, Attacking the Busy Beaver 5, Bulletin of the EATCS 40 (1990), 247–251.
  6. Busy Beaver Challenge, We have proved "BB(5) = 47,176,870", 2024.
  7. Scott Aaronson, Busy Beaver Updates: Now Even Busier, Shtetl-Optimized, 2022.
  8. BB(6), bbchallenge wiki.
  9. Antihydra, bbchallenge wiki.