ExplorationsFive states, a tape of zeros, and forty-seven million steps before it stops
The Busy Beaver Game
A machine reads one cell of an endless tape of zeros and follows a rule for what it sees: write a 0 or a 1, move one cell left or right, then switch to another state or stop. Each state has one rule for reading 0 and one for reading 1. With two states the longest run that still stops is 6 steps; with five it is 47,176,870, proved in 2024 by checking every five-state machine, and with six nobody knows.
Interactive laboratory
reading 0
reading 1
reading 0
reading 1
0steps
Ready
0% of the record of 6 for 2 states. Medals at half, nine tenths and all of it.
The head is in state A and reads 0; the cells around it are 0 0 0 0 0.
One row for every step.
The first steps as a table
| Step | State | Head at | Reads | Writes | Moves | Then | Ones |
|---|
- a lit thread
- a cell holding 1
- a dark gap
- a cell holding 0
- the head
- the ring on each row, filled with the colour of its state
- the shuttle path
- the line joining the head from one row to the next
- a row
- the tape at one step, the first at the top
The top row is the tape before the first step and each row below it is the tape one step later. A lit thread is a cell holding 1 and a dark gap is a cell holding 0; the brass mark on each row is the head, coloured for the state it is in. On a long run one row stands for many steps, and the note under the picture says how many. A run that stops ends in a row with no head on it.
Ready on a blank tape in state A. Press Run, or Step to take one step at a time.
- Steps
- 0
- Ones on the tape
- 0
- Record, 2 states
- 6
- Your best here
- none yet
Things to try
Speed
Fast-forward runs as fast as the page can go until the machine stops, the page finds it never will, or it reaches 1,000,000 steps.
The machine as text
Cases worth seeing
What is going on
Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.
- A [0]A reads 0, writes 1, moves right, goes to BB 1[0]The tape is all zeros, so the first rule used is always state A’s rule for reading 0.
- B 1[0]B reads 0, writes 1, moves left, goes to AA [1]1
- A [1]1A reads 1, writes 1, moves left, goes to BB [0]11The head is back on the first cell, and this time it reads the 1 it wrote there, so the other rule of state A fires.
- B [0]11B reads 0, writes 1, moves left, goes to AA [0]111
- A [0]111A reads 0, writes 1, moves right, goes to BB 1[1]11
- B 1[1]11B reads 1, writes 1, moves right, stopsstopped 11[1]1The stopping rule still writes and moves, and it counts as the sixth step. Four ones are left on the tape.
The laboratory runs the same rules. The cards are the four rules above, the strip is the tape with the head in the middle, and every row of the loom is one line of this working.
Six steps is the most any two-state machine can manage and still stop. Add one state and the record is 21; add two more and it is 47,176,870.
What you are seeing
A plain description of the machine
The machine has a tape divided into cells that goes on for ever in both directions, and at the start every cell holds 0. A head sits over one cell, and the machine is in one of a few states, named A, B, C and so on. It begins in state A.
At each step the machine reads the cell under the head and looks up the rule for its state and what it read. Each state has exactly two rules, one for reading 0 and one for reading 1. A rule says three things: which digit to write in the cell, whether to move the head one cell left or right, and which state to be in next. Instead of a next state, a rule can say stop. That rule still writes and moves, and it counts as a step.
So a machine with two states has four rules, and running it means following them until one says stop. The game, invented by Tibor Radó in 1962, is to choose the rules so that the machine runs for as long as possible and then stops. A machine that never stops scores nothing: the whole difficulty is in the words "and then stops".
On the page, each card is one rule. Tap a value to change it, then run the machine. The strip shows the tape around the head; the loom below it shows the whole tape at every step, one row per step, with ones as lit threads, so the run is woven into a picture you can read afterwards.
Why it starts to make sense
Why the numbers explode
The records for one to five states are 1, 6, 21, 107 and 47,176,870 steps. The first four look like a sequence that is merely growing fast. The fifth is something else, and it is worth seeing why.
More states means more machines, very much more. Each rule has two digits to write, two directions and one choice for every state plus stop, so with five states there are 24 choices for each of ten rules. That is a little over 63 million million machines, and the record is the longest-running of all of them that stops. The more machines there are, the stranger the most extreme one can be.
A machine can count. Five states are enough to build a machine that does arithmetic on the tape: it treats a block of ones as a number, works out a new number from it, and goes round again. The five-state champion does roughly this, applying a rule to a number that Scott Aaronson calls strongly reminiscent of the Collatz map, until the number happens to land where the rule says stop. Each round takes longer than the last, because the numbers grow, so the steps pile up.
A machine that counts can count for a very long time. With a few more states, the numbers can control how many times another loop runs, and that loop can control another. Records do not grow like a sequence anyone writes down; they grow like the most extreme program that fits in so few rules. That is the intuition behind the theorem in layer 4.
The key idea
Stopping is easy to see and impossible to rule out
Watching a machine stop proves that it stops. Watching it not stop proves nothing: perhaps it stops at the next step, or the next billion. This one-sided evidence is the whole difficulty of the game.
To find the record for five states, you must find the longest-running machine that stops. You can run every machine, but you cannot simply wait, because some never stop, and you cannot keep the longest one until every other machine is either seen to stop or shown never to. Each machine that never stops needs a reason.
Some reasons are easy, and this page looks for two of them. A machine whose whole configuration repeats (every cell, the head and the state) is in a loop it can never leave. A machine that keeps breaking new ground on blank tape, repeating the same stretch of steps each time, will do so for ever. But many machines never stop for reasons nobody has written a general check for: the counter and the bouncer among the cases are two that this page cannot catch, and some five-state machines needed a proof of their own.
In 1936 Alan Turing proved this is not a failure of effort. No program can take every machine and correctly say whether it stops: if one did, you could build a machine that asks it about itself and then does the opposite, and no answer would be right. So there is no shortcut. The questions can only be settled one machine at a time.
Formal statement
What is proved, what is computed and what is open
Write S(n) for the most steps a two-symbol machine with n states can take, starting in state A on a tape of zeros, before it stops, counting the stopping step.
- Proved. S(1) = 1, S(2) = 6, S(3) = 21 and S(4) = 107. The values for two and three states were settled by Shen Lin and Tibor Radó with a computer search, and four by Allen Brady in 1983.
- Proved, by computer-checked proof. S(5) = 47,176,870. The machine that reaches it was found by Heiner Marxen and Jürgen Buntrock in 1989; the proof that nothing beats it was announced by the bbchallenge collaboration on 2 July 2024.
- Proved. For any function f that a program can compute, S(n) is larger than f(n) for every large enough n. The busy beaver function outgrows every computable function.
- Open. The value of S(6).
- Computed on this page. Each champion, run here, stops at exactly its record, and the five-state champion leaves 4,098 ones. That checks the simulator against the published numbers and nothing more.
Conventions matter. With a rule that stops without writing or moving, or with the count of ones instead of steps, the numbers are different; the ledger below states which game each number is about.
Proof
Why no program keeps up, and how five states were settled
No program can keep up. Suppose a program could compute some f with f(n) at least S(n) for every n. Then it could decide whether any machine with n states stops: run the machine for f(n) steps, and if it has not stopped by then it never will, because stopping later would beat the record. Turing proved no program decides that, so no such f exists. This is also the reason this page can say "never stops" once a machine passes the record for its size: the record does the deciding, and it is only available because someone settled every machine first.
It eventually outgrows every program. That argument shows no computable f stays above S for every n. The stronger statement, that S(n) is eventually larger than f(n) for every computable f, needs one more idea: a machine can write a number and then run a program on it. Take any f a program computes, and assume it never decreases (replace f(n) by the largest of f(0) to f(n), which a program can also compute). With n states a machine can write n ones in a row. A fixed program, using some number C of further states, can then work out f(2n) from those ones and count down that many steps before it stops. That machine has n + C states and runs for more than f(2n) steps, so S(n + C) is larger than f(2n). Once n is at least C, the number of states m = n + C is at most 2n, so f(m) is at most f(2n), and S(m) is larger than f(m) for every m from 2C on.
Five states, one machine at a time. The bbchallenge collaboration is an open online group that Tristan Stérin started in 2022. Quanta Magazine counted more than twenty contributors, most of them without traditional academic credentials. They enumerated 181,385,789 five-state machines and decided each one. Most fell to general methods of the kind this page uses, made far stronger; the hardest needed arguments of their own.
The final step is the one that makes the result trustworthy. A contributor known only by the username mxdys assembled every part into a single proof in the Coq proof assistant, a program that accepts a proof only if each step follows from the ones before. The proof was announced in July 2024 and written up in 2025. The question of how far such a check can be trusted is the subject of Mathomaly No. 06, Who checks the checker?, and this result is one of the cleanest examples of a computer check standing in for a referee.
Limits and frontier
Where this page stops, and where everybody stops
What this laboratory computes. It runs the machine you build, step by step, in exact integer arithmetic, up to a million steps for one to four states and fifty million for five. The loop checks look only during the first million steps and only up to 512 cells behind the head. When the page says "never stops" it has a proof for that machine; when it says "still running" it knows nothing yet.
Six states is open. Machines with six states are known that run for unimaginably long and then stop, so the record is at least that big. But the collaboration has also found machines that cannot be settled without solving problems nobody can solve. The best known is called Antihydra. It stops only if a simple rule for whole numbers, n becomes ⌊3n/2⌋ + 2, ever produces more odd numbers than twice the number of even ones. Everyone expects it never does, which would mean Antihydra never stops, and nobody can prove it.
Read this next to the Collatz orbit atlas. Antihydra's rule is a cousin of halve-or-triple-plus-one, and it sits in exactly the same place: the evidence is overwhelming, and the question is open. The six-state record cannot be known until a question of that kind is answered.
And next to A Sentence About Its Own Number, which builds the self-reference behind Turing's argument by hand, and The Ant That Builds a Road, another tiny machine reading what it wrote that nobody can predict without running it.
What is actually established
Every statement on this page, with its status, its exact scope, and the date that status was last checked.
The most steps a two-symbol machine starting on a blank tape can take and then stop is 1 with one state, 6 with two, 21 with three and 107 with four.
- Scope
- Machines with two symbols, 0 and 1, and one to four states, started in state A on a tape of zeros, counting the step that stops. Other conventions (more symbols, a rule that stops without writing or moving, counting ones instead of steps) give different numbers.
- Why
- One state is an argument a reader can finish: the first rule used is A reading 0, and if it does not stop it moves the head onto another 0 still in state A, so it repeats for ever. Two and three states were settled by Shen Lin and Tibor Radó with a computer search in the 1960s, and four by Allen Brady in 1983. Each proof has the same shape as the five-state one: list every machine, run the ones that stop, and give a reason for each of the others.
- Status checked
No two-symbol machine with five states, started on a blank tape, runs more than 47,176,870 steps and then stops.
- Scope
- Two symbols, five states, a tape of zeros, counting the step that stops. The machine that reaches it was found by Heiner Marxen and Jürgen Buntrock in 1989; the proof that nothing beats it was announced on 2 July 2024 and written up in 2025.
- Why
- The bbchallenge collaboration, an open online group that Tristan Stérin started in 2022, enumerated 181,385,789 five-state machines and decided every one: it either stops, and then within the record, or there is a proof that it never stops. Most fell to a handful of general methods; a few needed arguments of their own. The contributor known as mxdys assembled the whole argument into a proof checked by the Coq proof assistant, so the final check is a computer verifying every step of the reasoning rather than a referee reading it. This page does not repeat that proof; it cites it.
- Status checked
Run on this page, the champion for one to five states stops after exactly 1, 6, 21, 107 and 47,176,870 steps, and the five-state champion leaves 4,098 ones.
- Scope
- Five machines, each run once from a blank tape to the step where it stops. This checks the machines and the simulator against the published counts; it proves nothing about other machines.
- Why
- The machines are those listed by the bbchallenge collaboration, written in the same notation the page uses for its links. A simulator that miscounted a single step would miss at least one of these numbers.
- Computation (exact)
- One complete run of each champion, step by step, with exact integer counts; the five-state run is 47,176,870 steps. The test suite repeats every run and checks the counts. Algorithm busy-beaver-kernel-1.
- Status checked
When this page says a machine will never stop, it has one of three reasons, and each is a proof for that machine: its whole configuration repeated, it repeated a stretch of steps while breaking new ground, or it ran past the proved record for its number of states.
- Scope
- The machine on the page. The two loop checks look only during the first million steps and at most 512 cells behind the head, so many machines that never stop are not caught by them; the counter and the bouncer among the cases are two.
- Why
- A repeated configuration (every cell, the head and the state) means the run is in a loop: the rules are fixed, so what happened since the first time happens again, for ever. For a run breaking new ground, the page waits for two moments when the head reaches a cell it has never visited, in the same state, with everything beyond it still blank. If the tape behind the head reads the same at both moments as far back as the head went in between, then the second stretch has exactly the inputs of the first, shifted along, so it does exactly the same, ends at another such moment, and so on for ever. The third reason borrows the records above: a machine with n states that has taken S(n) steps without stopping cannot stop later, or it would beat a record that is proved.
- Status checked
No program can take any machine and correctly say, every time, whether it eventually stops.
- Scope
- Every possible deciding program and machines of every size. Any one machine still either stops or not; what is impossible is a single method that always answers correctly.
- Why
- Alan Turing’s 1936 argument, in outline: if such a program existed, build a machine that asks it about itself and then does the opposite of the answer. Neither answer can be right, so no such program exists. This is why the five-state proof had to settle machines one at a time, and why a page like this one can only offer a few checks that sometimes work.
- Status checked
The record S(n) eventually exceeds any function a program can compute: for any such f, S(n) is larger than f(n) for all large enough n.
- Scope
- Every computable function and every sufficiently large number of states. It says nothing about any particular small n.
- Why
- Two steps. First, no computable function stays above S for every n: if a program could compute such a bound, it could solve the halting problem for machines with n states by running each for that many steps, and Turing showed that is impossible. Second, for eventual domination, take a computable f that never decreases. With n states a machine writes n ones; a fixed program of C more states then computes f(2n) from them and counts down that many steps before stopping. So S(n + C) exceeds f(2n), and for every m of at least 2C, writing m = n + C with n at least C gives S(m) larger than f(2n), which is at least f(m). Radó defined the game in 1962 to make this point; the argument is set out in Aaronson’s survey.
- Status checked
The record for six states is not known.
- Scope
- Two-symbol machines with six states on a blank tape. Machines are known that run for unimaginably many steps and then stop, so the record is at least that large; no one can say which machines beat them.
- Why
- At least one six-state machine cannot be settled without solving a problem of the same kind as Collatz. Antihydra stops only if a simple rule for numbers, n becomes ⌊3n/2⌋ + 2, ever produces more odd values than twice the number of even ones. Mathematicians expect it never does, which would mean Antihydra never stops, and nobody can prove it.
- Status checked
Sources
Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.
I’ve checked each citation below against the publication itself, unless it says otherwise. That checks the reference, not the proof.
- Alan M. Turing, On computable numbers, with an application to the Entscheidungsproblem, Proceedings of the London Mathematical Society s2-42(1), pp. 230–265, 1936. Link
The paper that defines the machines this page runs and proves that no program can decide, for every machine, whether it ever stops. Read to the Society in November 1936; the volume carries the date 1937.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Crossref record confirms author, title, volume s2-42 issue 1 and pages 230 to 265.
- Tibor Radó, On non-computable functions, Bell System Technical Journal 41(3), pp. 877–884, 1962. Link
Where the busy beaver game is defined, with the step count S(n) and the count of ones, and where it is shown that no program computes them.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Crossref record confirms author, title, volume 41 issue 3 and pages 877 to 884.
- Shen Lin, Tibor Radó, Computer studies of Turing machine problems, Journal of the ACM 12(2), pp. 196–212, 1965. Link
The computer-assisted determination of the values for two and three states, S(2) = 6 and S(3) = 21, which Lin first worked out in his 1963 thesis.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Crossref record confirms authors, title, volume and pages; the bbchallenge wiki gives the 1963 thesis.
- Allen H. Brady, The determination of the value of Rado’s noncomputable function Σ(k) for four-state Turing machines, Mathematics of Computation 40(162), pp. 647–665, 1983. Link
The value for four states, S(4) = 107. Brady’s argument was checked by hand and computer; a formal proof followed in 2024 from the bbchallenge collaboration.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
AMS journal page gives title, volume 40 number 162 and pages; the bbchallenge wiki confirms S(4) = 107.
- Heiner Marxen, Jürgen Buntrock, Attacking the Busy Beaver 5, Bulletin of the EATCS 40, pp. 247–251, 1990. Link
The search that found the five-state champion in 1989: 47,176,870 steps, leaving 4,098 ones. Listed first in the paper’s table of machines.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
The bbchallenge archive copy gives the citation (February 1990) and the 1989 discovery; the wiki champion page gives the machine and both counts.
A survey of what was known in July 2020: the table of values up to four states, the five-state champion as a conjecture, and the proof that the busy beaver function outgrows every computable function.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Full text read: the values table, Conjecture 10 (BB(5) = 47,176,870) and Proposition 2 on outgrowing computable functions.
- The bbchallenge Collaboration, Determination of the fifth Busy Beaver value, arXiv:2509.12337, 2025. Link
The proof that S(5) = 47,176,870: 181,385,789 five-state machines enumerated and each one decided, with the whole argument checked in the Coq proof assistant. The author list includes contributors known only by usernames, among them mxdys.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: author record.
arXiv record confirms title, the collaboration with nineteen named authors, the machine count and the use of Coq.
- The bbchallenge Collaboration, We have proved “BB(5) = 47,176,870”, bbchallenge discussion forum, 2 July 2024, 2024. Link
The announcement, after two years of collaboration, that the value was proved, with the proof written in Coq by the collaborator mxdys.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Forum post read: date, value and the Coq proof by mxdys.
- Ben Brubaker, With fifth busy beaver, researchers approach computation’s limits, Quanta Magazine, 2 July 2024, 2024. Link
An account of the online collaboration Tristan Stérin started in 2022, more than twenty contributors, most of them without traditional academic credentials, and of the contributor known only by the pseudonym mxdys, who combined the team’s results into one Coq proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Article read: byline, the 2022 start by Stérin, the pseudonymous contributor mxdys, the Coq proof, and the contributors described as mostly without traditional academic credentials.
- The bbchallenge Collaboration, Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6), wiki.bbchallenge.org. Link
The champion machine for each number of states in the standard text notation used on this page, with their step and ones counts, and the status of the six-state problem.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Each page read for its champion string and counts; the strings on this page are also run to their stated counts by the test suite.
- Review evidence 1 for Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6)
- Review evidence 2 for Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6)
- Review evidence 3 for Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6)
- Review evidence 4 for Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6)
- Review evidence 5 for Busy Beaver Wiki: BB(2), BB(3), BB(4), BB(5) and BB(6)
A six-state machine, 1RB1RA_0LC1LE_1LD1LC_1LA0LB_1LF1RE_---0RA, first reported by mxdys on 28 June 2024. It stops only if repeatedly applying n ↦ ⌊3n/2⌋ + 2 ever produces more odd values than twice the number of even ones, a question of the same kind as Collatz that nobody can answer.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Wiki page read for the machine, the first report and the Collatz-like condition.
Related explorations
(connected by how they work)