Sequences

From BusyBeaverWiki
Revision as of 00:39, 24 November 2026 by GregoryMorse (talk | contribs) (Link 76 jOEIS implementations and shared verification notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page lists sequences related to the Busy Beaver functions.

These tables are incomplete, you can help by adding missing items. If you add a value, please add a reference to a paper or code with which it was computed/proved if possible.

If the "canonical" values of a sequence are maintained on another Wiki page, please link to that, instead of replicating them here.

jOEIS links provide Java implementations; see the verification notes for supporting checks.

Computable Sequences

Sequence Name Description Values OEIS sequence
2-symbol TM count (halting move included) Number of n-state, two-symbol transition tables, with left/right movement specified even on halting transitions. (4n+4)2n A052200 (jOEIS)
2-symbol TM count (no move on halt) Number of n-state, two-symbol transition tables whose halting transitions do not move the head. (4n+2)2n A141475 (jOEIS)
Bátfai's Turing-machine count Number of n-state machines under Bátfai's convention. (6n+1)2n−1 A164278 (jOEIS)
Canonical two-symbol state graphs Next-state graphs reaching all n states in canonical order, before choosing writes and movements. A107668 (jOEIS)
Scaled canonical state-graph sequence A107668(n)/(n+1)2. A107669 (jOEIS)
Number of n-state 2-symbol halt-free TMs A Turing machine is halt-free if none of its instructions lead to the halt state. A337025 (jOEIS)
Closed binary lambda terms Closed lambda terms of encoded size n, including terms without a normal form. A114852 (jOEIS)
Closed binary lambda normal forms Closed lambda terms already in beta normal form, using the same size convention. A195691 (jOEIS)
Lazy Beaver The smallest positive number of steps a(n) such that no n-state, m-symbol Turing machine halts in exactly a(n) steps on an initially blank tape. see Lazy Beaver#Computed Values A337805 (for m=2) (jOEIS)
Minimum states for n steps Minimum states of a two-symbol Turing machine halting after exactly n steps from a blank tape. A125269 (jOEIS)
Configs A(a, b) reached in Antihydra see Antihydra#Trajectory A386792 (for a) (jOEIS), A385902 (for b) (jOEIS)
Antihydra first-halting minima Smallest initial x meeting the Antihydra halting condition for the first time at term 3n+1. see Antihydra A385150 (jOEIS)
Minimum Wang tile types stopping at n Least number of tile types that tile an n × n square but not an (n+1) × (n+1) square; no rotations or reflections. A402127 (jOEIS)
Hydra/Antihydra step The update x↦⌊3x/2⌋. A032766 (jOEIS)
Hydra-map orbit from 2 Iterates of x↦⌊3x/2⌋, starting at 2. A061418 (jOEIS)
Antihydra first-halting parity patterns Number of parity patterns first triggering Antihydra halting at term 3n+1. A001764 (jOEIS)
Binary lambda terms, allowing free variables Number of terms of encoded size n, using the binary size convention. A114851 (jOEIS)
Closed lambda normal forms with zero-size variables Number of closed normal forms of size n in the alternative convention assigning size 0 to variables. A224345 (jOEIS)
PCP word-pair encodings Index of the concatenated binary string in the stated enumeration of binary PCP word-pair lists. A309250 (jOEIS)
Finite-board Snake Number Problem Maximum cyclically numbered path length on an n × n board, without repeated labels in a row or column. A353259 (orthogonal moves) (jOEIS); A353060 (knight moves) (jOEIS)
Circular-tape runtime maximum Maximum halting runtime on an n-cell circular tape, over all two-state/two-symbol machines and initial configurations. A394183 (jOEIS)
Wolfram 2,3 trace count Number of length-n (state, scanned symbol) traces over arbitrary tapes and starting states of the specified machine. A401762 (jOEIS)
Collatz map n/2 for even n; 3n+1 for odd n. A006370 (jOEIS)
Drozd-map increments A353327(n) = A353314(n)-n = A102899(n+3). A353327 (increments) (jOEIS); A102899 (shifted) (jOEIS)

Noncomputable Sequences

The following sequences depend on the specific behavior of programs and are grouped by their position in the arithmetical hierarchy.

Note that when the bbchallenge community refers to BB(n, m), we mean the Max Shift function S(n, m) defined below (if m is omitted, it is set to 2 by default). Some literature may refer to the Max Score function Σ(n, m) by BB(n, m) instead.

Π1

Sequence Name Symbol Description Values OEIS sequence
Max Shift Function S(n, m) The maximal number of steps that an n-state, m-symbol Turing machine can make on an initially blank tape before eventually halting. see the Main Page A060843 (m=2) (jOEIS); A398770 (n=2) (jOEIS); A400605 (array by antidiagonals) (jOEIS)
Max Score Function Σ(n, m) Maximum number of nonblank symbols left by a halting n-state, m-symbol machine, starting from a blank tape. A028444 (m=2) (jOEIS); A399567 (n=2) (jOEIS)
Maximum Space Function BB_SPACE(n,m) Maximum number of memory cells visited by a halting Turing machine with n states and m symbols starting from all-0 memory tape see Maximum Space Function#Champions -
Placid Platypus PP(n) The minimal number of states of 2-symbol Turing machines that print exactly n ones when halt. see Placid Platypus#Values A399346 (jOEIS)
Halting-machine count Number of n-state, two-symbol Turing machines that halt from a blank tape. A004147 (jOEIS)
Sum of halting runtimes Sum of runtimes of all halting n-state, two-symbol Turing machines on a blank tape. A386859 (jOEIS)
Blanking Busy Beaver BLB(n,m) The maximum number of steps that an n-state m-symbol Turing machine can make on an initially blank tape until it is blank again (halting or not) see Blanking Beaver#Champions -
BB_clean The maximum number of steps that an n-state 2-symbol Turing machine can make on an initially blank tape until it halts on a blank tape see Busy Cleaner A119683 (jOEIS)
BB_ones The maximum number of 1's that an n-state 2-symbol Turing machine can make in a row, before halting on a 0 next to it
Maximum Consecutive Ones Function num(n) The maximum amount of consecutive 1's that an n-state 2-symbol Turing machine can print before eventually halting see Maximum Consecutive Ones Function
Size of the Runtime Spectrum R(n) The number of distinct runtimes for the set of n-state machines see "The Spectrum of Runtimes" in "The Busy Beaver Frontier"
Instruction-Limited Busy Beaver BBi(n) Maximum number of steps that an n-instruction Turing machine (allowing any number of states and symbols) can take on an initially blank tape before eventually halting. see Instruction-Limited Busy Beaver#Champions A384629 (jOEIS)
Instruction-Limited Symbol Busy Beaver Σi(n) Maximum number of non-blank symbols that an n-instruction Turing machine (allowing any number of states and symbols) can leave on an initially blank tape before eventually halting. see Instruction-Limited Busy Beaver#Champions A384766 (jOEIS)
Instruction-Limited Greedy Busy Beaver gBBi(n) Maximum number of steps that an n-instruction Turing machine can take from a blank tape before halting, where the Turing machines first n-1 instructions are a machine which runs for gBBi(n-1) steps. see Instruction-Limited Busy Beaver#Instruction-Limited Busy Beaver Variants -
Instruction-Limited Blanking Busy Beaver BLBi(n) Maximum number of steps that an n-instruction Turing machine (allowing any number of states and symbols) can take on an initially blank tape before blanking the tape again. see Blanking Beaver#Instruction-limited Blanking Busy Beaver (BLBi(n)) -
Busy Beaver for lambda calculus BBλ(n) Maximum beta-normal-form size of a closed lambda term of encoded size n; 0 if none exists. see Lambda Calculus#Champions A333479 (jOEIS)
Busy Beaver for Binary Lambda Calculus BBλ2(n) Maximum output size of an n-bit self-delimiting BLC program; 0 if none exists. see Lambda Calculus#Optimal Busy Beaver A361211 (jOEIS)
Normalizing closed binary lambda terms Number of closed lambda terms of encoded size n that have a beta normal form. A333958 (jOEIS)
Number of BBλ2 terms that reads all input A BBλ2 term reads all input iff it has a normal form, but removing the last bit makes it no longer have one
Fractran BBf(n) The maximal number of steps that a Fractran program of size n can make on the integer 2 before eventually halting. see Fractran#Champions A395424 (jOEIS)
Post correspondence Busy Beaver Maximum shortest-solution length for solvable binary PCP instances with at most n dominoes of nonempty words and maximum word length n. A399884 (jOEIS)
Register Busy Beaver MBB(n) Maximum runtime from zeroed registers, with n non-halting instructions; Halt is not counted in n. see Register Busy Beaver A401603(n+1) (jOEIS)
Register Sigma MΣ(n) Maximum register value at halting, with n non-halting instructions and initially zero registers. see Register Busy Beaver A081419(n+1) (jOEIS)
Halting compressed register-program count Number of properly halting programs of total length 7n bits in the specified register-machine encoding; runtime errors excluded. A400878

Π2

Sequence Name Symbol Description Values OEIS sequence
Beeping Busy Beaver BBB(n) Latest final beep of a quasihalting n-state, two-symbol machine under the stated observer convention. see Beeping Busy Beaver#Champions
Busy Beaver for lambda calculus with a BBλ oracle BBλ1 Maximum beta/oracle normal-form size of a 1-closed lambda term of size n; 0 if none exists. see Lambda Calculus#Oracle Busy Beaver A385712 (jOEIS)
Machines visiting infinitely many cells Number of n-state machines whose runs from a blank tape visit infinitely many cells.

Π3

Sequence Name Symbol Description Values OEIS sequence
Beeping Booping busy beaver BBBB(n) see Beeping Busy Beaver#Beeping Booping Busy Beavers

Yet ungrouped

Sequence Name Symbol Description Values OEIS sequence
#S(n, m) The number of programs that halt after exactly S(n,m) steps (Max Shift) for each n of a given m (including all equivalent transformations) #S(1,2)=32, #S(2,2)=40, #S(3,2)=16 -
#Σ(n, m) The number of programs that halt with Σ(n, m) 1's on the tape (Max Score) for each n of a given m (including all equivalent transformations) #Σ(1,2)=16, #Σ(2,2)=4, #Σ(3,2)=40
Maximum space #BB_SPACE(n,m) The number of programs that visited the most number of tape cells for a given (n,m) (including all equivalent transformations) #BB_SPACE(1,2)=32, #BB_SPACE(2,2)=24, #BB_SPACE(3,2)=48 -
The average number of states that are reached infinitely many times, among all non-halting turing machines with n states -
Diagonal halting sequence a(n) fn(n)+1 when defined, otherwise 0, using Cutland's Gödel numbering. A118874

Other related OEIS sequences

Sequence Name Description Values OEIS sequence
Binary-input runtime variant Maximum halting runtime of two-state, two-symbol machines starting on binary n, with the head at its rightmost bit. A131956 (jOEIS)
Binary-input score variant Maximum final number of ones under the same binary-input convention. A131957 (jOEIS)
Halting-output distributions Flattened, frequency-ordered output strings of halting n-state, two-symbol machines, concatenated over n. A141474 (jOEIS)
Reciprocal Busy Beaver constant Decimal digits of ∑n≥11/S(n,2). A362199 (jOEIS)
Rayo's function (OEIS variant) Least natural number above all numbers uniquely defined by an exactly n-symbol set-theory formula. A368006 (jOEIS)
Schult machine pattern lengths Finite pattern-length trace from Uwe Schult's former five-state Busy Beaver candidate. A016071 (jOEIS)
BB(5) macro-iteration Finite orbit of the Marxen–Buntrock BB(5) champion under its two-branch recurrence. A386909 (jOEIS)
Drozd map f(3k)=k,f(3k+1)=5k+4,f(3k+2)=5k+5. A353313 (jOEIS)
Drozd map with fixed multiples of three g(3k)=3k,g(3k+1)=5k+4,g(3k+2)=5k+5. A353314 (jOEIS)
First multiple of three reached First multiple of three reached by iterating A353314 from n; -1 if none is reached. A349876 (jOEIS)
Snake Number Problem Maximum visited-square count for finite square-grid snakes following n periodic moves, skipping moves to visited squares (n ≥ 5). A353176 (jOEIS)
Even Antihydra halting starts (conjectural) Even initial values observed to halt; completeness of the increasing list is conjectural. A398746 (jOEIS)
Finite-snake instruction-list count Number of n-periodic instruction lists producing a finite snake, identifying lists under square-grid rotations and reflections. A352388
Multiple-snake length maxima Maximum finite lengths for the variants with two, three or four snakes using n-periodic instructions. A353234 (two snakes) (jOEIS); A354915 (three snakes) (jOEIS); A354916 (four snakes) (jOEIS)
Drozd-map stopping time Iterations of A353314 required to reach a multiple of 3; -1 if none is reached. A349877 (jOEIS)
Drozd-map terminal records Record values of A349876. A349896 (jOEIS)
Drozd-map minimum visited value Least value reached after the starting term under A353313; -1 if no finite cycle is reached. A353305 (jOEIS)
Drozd-map starts reaching 1 Starting values whose A353313 orbit reaches 1; the positions of ones in A353305. A353306 (jOEIS)
Drozd-map maximum ternary digit sum Largest base-3 digit sum along the A353313 orbit after its starting term; -1 if no finite cycle is reached. A353309 (jOEIS)
Drozd-map preperiod Number of terms before first entering a finite cycle under A353313; -1 if no cycle is reached. A353310 (jOEIS)
Drozd-map distinct-orbit count Number of distinct terms in the A353313 orbit; -1 if no finite cycle is reached. A353311 (jOEIS)
Drozd-map cycle length Length of the finite cycle eventually reached under A353313; -1 if none is reached. A353312 (jOEIS)
Calude–Dinneen–Shu halting probability Binary and decimal expansions of the specified nonrandom halting probability. A079365 (binary); A100264 (decimal)
Halting probability Ω_L Binary expansion of the halting probability for the specified programming language L. A160753 (jOEIS)
Wolfram two-state maxima Two-state/two-symbol model: runtime over all n-bit inputs; output and space for input n, using the source's stopping convention. A393317 (runtime) (jOEIS); A391977 (output) (jOEIS); A393376 (space) (jOEIS)
Wolfram three-state runtime maximum Three-state/two-symbol model on input n; reported terms use finite simulation cutoffs and are lower bounds. A390016
Wolfram 2,3 bounded-input runtime maximum Maximum boundary-halting runtime of the specified machine, starting in state 1, over tapes supported on their first n cells. A208229 (jOEIS)
Collatz total stopping time Number of A006370 steps from n to 1; -1 if 1 is never reached. A006577 (jOEIS)
Collatz-orbit maximum binary weight Largest binary digit sum in the orbit after its starting term, following the OEIS convention; -1 if 1 is never reached. A352895 (jOEIS)

More possibilities

  • The number of distinct final tape states of halting machines with n states and m symbols, for some definition of "distinct"
  • Any of the above for machines with more than one tape, or tapes with more dimensions (2d grid, 3d, n-d...)
  • Machines with a finite tape, or a circular one of a certain length
  • Any of the above functions bounded by the number of instructions rather than states and symbols.

Further information

For more information on sequences, see the OEIS Wiki: Busy Beaver Numbers, OEIS search: "busy beaver" and OEIS Wiki: "related to busy beaver"