cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-6 of 6 results.

A028444 Busy Beaver sequence, or Rado's sigma function: maximal number of 1's that an n-state Turing machine can print on an initially blank tape before halting.

Original entry on oeis.org

0, 1, 4, 6, 13, 4098
Offset: 0

Views

Author

Scott Aaronson (sja8(AT)cornell.edu)

Keywords

Comments

Expanded definition from Daniel Forgues: Busy Beaver sequence, or Rado's Sigma function: maximum number of 1s that an n-state, 2-symbol, d+ in {LEFT, RIGHT}, 5-tuple (q, s, q+, s+, d+) halting Turing machine can print on an initially blank tape (all 0's) before halting.
States q and q+ in set Q_n of n distinct states (plus the Halt state), tape symbols s and s+ in set S = {0, 1}, shift direction d+ in {LEFT, RIGHT} (NONE is excluded here), + suffix meaning next and q+ = f(q, s), s+ = g(q, s), d+ = h(q, s).
The function Sigma(n) = Sigma(n, 2) (A028444) denotes the maximal number of tape marks (1's) which a halting Turing Machine H with n internal states, 2 symbols, and a two-way infinite tape can produce onto an initially blank tape (all 0's) and then halt. The function S(n) = S(n, 2) (A060843) denotes the maximal number of steps (thus shifts, since direction NONE is excluded) which a halting machine H can take (not necessarily the same Turing machine producing a maximum number of 1's and need not even produce many tape marks). For all n, S(n) >= Sigma(n).
Given that 5-state 2-symbol halting Turing machines can compute Collatz-like congruential functions (see references under A060843), it may be very hard to find the next term.
Rado's Sigma function grows faster than any computable function and is thus noncomputable.
From Daniel Forgues, Jun 05-06 2011: (Start)
H in H_(n, k) is a halting* Turing machine with n states and k symbols;
* (on a blank tape (all 0's) as input)
States q, q+ in set Q_n of n distinct states (plus the Halt state);
Symbols s, s+ in set S_k of k distinct symbols (0 as the blank symbol);
Shift direction d+ in {LEFT, RIGHT} (NONE is excluded here);
sigma(H) is the number of non-blank symbols left on the tape by H;
s(H) is the number of steps (or shifts in our case) taken by H;
Sigma(n, k) = max {sigma(H) : H is a halting Turing machine with n states and k symbols}
S(n, k) = max {s(H) : H is a halting Turing machine with n states and k symbols}
a(n) is Sigma(n) = Sigma(n, 2) since a 2-symbol BB-class Turing machine is assumed.
For all n, S(n, k) >= Sigma(n, k), k >= 2. (End)
From Jianing Song, Nov 12 2023: (Start)
We have a(2*n) > H_n(3,3) = 3 "up-arrow"(n-2) 3, where H_n is the n-th hyperoperator, and "up-arrow" is Knuth up-arrow notation (see the Wikipedia link). This means that a(12) > 3^^^^3 = g(1), where g(1) is the starting value in the sequence that defines Graham's number = g(64).
Note that there is an (n_0)-state binary Turing machine (and hence an n-state one for every n >= n_0) which halts if and only if ZFC is inconsistent, so a(n_0) (and hence a(n) for every n >= n_0) is independent of ZFC, which means that a(n_0) evaluates differently in different models of ZFC; see the section "Non-computability" of the Wikipedia link and the Math Stack Exchange. The minimum such n_0 is not exceeding 745. (End)
a(6) >= 2^^(2^^(2^^10)). - Brian Galebach, Jul 10 2025

References

  • John Hopcroft, Turing Machines, Sci. Amer. vol. 250, #5, 86-98, May 1984, table on page 92 gives old lower bounds.
  • Jeffrey Shallit, A second course in formal languages and automata theory, Cambridge University Press, 2008. See Fig. 6.2, p. 185.

Crossrefs

Extensions

Edited by Daniel Forgues, Mar 25 2010, Jun 05 2011
Edited by N. J. A. Sloane, Aug 30 2011
a(5) added by Brian Galebach, Jun 10 2025

A052200 Number of n-state, 2-symbol, d+ in {LEFT, RIGHT}, 5-tuple (q, s, q+, s+, d+) (halting or not) Turing machines.

Original entry on oeis.org

1, 64, 20736, 16777216, 25600000000, 63403380965376, 232218265089212416, 1180591620717411303424, 7958661109946400884391936, 68719476736000000000000000000, 739696442014594807059393047166976, 9711967541295580042210555933809967104, 152784834199652075368661148843397208866816
Offset: 0

Views

Author

Michael Somos, Jan 28 2000

Keywords

Comments

T in T_(n, k) is a Turing machine with n states and k symbols;
States q, q+ in set Q_n of n distinct states (plus the Halt state;)
Symbols s, s+ in set S_k of k distinct symbols (0 as the blank symbol;)
Shift direction d+ in {LEFT, RIGHT} (NONE is excluded here;)
+ suffix meaning next and q+ = f(q, s), s+ = g(q, s), d+ = h(q, s).
This sequence is computable. On the other hand, the busy beaver numbers are noncomputable, found only by examining each of the many n-state Turing machine programs' halting. - Michael Joseph Halm, Apr 29 2003
From Daniel Forgues, Jun 06 2011: (Start)
RE: Busy beaver halting Turing machines:
H in H_(n, k) is a halting* Turing machine with n states and k symbols;
* (on a blank tape, all 0's, as input)
sigma(H) is the number of non-blank symbols left on the tape by H;
s(H) is the number of steps (or shifts in our case) taken by H;
Sigma(n, k) = max {sigma(H) : H is a halting Turing machine with n states and k symbols}
S(n, k) = max {s(H) : H is a halting Turing machine with n states and k symbols}
Cf. A028444 for Sigma(n, 2), A060843 for S(n, 2). (End)
This sequence also counts machines with unreachable states, and all (up to (n-1)!) permutations of non-start states, which don't affect behavior. In contrast, A107668 only counts state graphs reaching all n states in canonical order. - John Tromp, Oct 17 2024

Examples

			a(1) = 64 = (4*1+4)^(2*1) = 8^2.
		

Crossrefs

Programs

Formula

a(n) = (4*(n+1))^(2*n).

Extensions

Entry revised by N. J. A. Sloane, Feb 08 2007
Edited by Daniel Forgues, Mar 25 2010

A352388 Number of solutions to Snake Number Problem for snakes with n-periodic instructions in an infinite square grid (see Comments).

Original entry on oeis.org

0, 0, 0, 0, 5, 21, 127, 618, 2934, 13542, 61803, 276650, 1219508, 5309179, 22868295, 97663066, 414156142, 1746438478
Offset: 1

Views

Author

Rodolfo Kurchan, Apr 29 2022

Keywords

Comments

Given a list of n move instructions (up, right, down, left), the snake starts at the origin and moves according to the instructions, in order. If an instruction tells it to move to a square that has already been visited, the snake skips that instruction. After it has followed (or skipped) the last instruction in the list, it starts again with the first one. a(n) is the number of lists of n instructions that results in the snake getting stuck at some point. Lists of instructions that are equivalent under rotations and reflections are counted only once, so we can for example assume that the first instruction is "up", and that the first "right" comes before the first "left". But how does one know when to interrupt a snake and deem it infinite? - Pontus von Brömssen, May 05 2022
Computer solutions a(5) to a(13) found by Giorgio Vecchi.
Computer solution a(14) to a(18) found by Ariel Futoransky.

Examples

			These are the 5 different solutions with 5 instructions:
UURDL: 19
  17 18  3  4 --
  16 19  2  5  6
  15 14  1  8  7
  -- 13 10  9 --
  -- 12 11 -- --
URDLL: 21
  -- 19 20 -- -- --
  17 18 21  2  3 --
  16 15 14  1  4  5
  -- 12 13  8  7  6
  -- 11 10  9 -- --
URRDL: 24
  -- -- 20 21 22
  17 18 19 24 23
  16 15  2  3  4
  13 14  1  6  5
  12 11  8  7 --
  -- 10  9 -- --
URDLU: 26
  -- -- 21 22 --
  16 17 20 23 24
  15 18 19 26 25
  14 13  2  3 --
  -- 12  1  4  5
  -- 11 10  7  6
  -- --  9  8 --
URDDL: 30
  -- -- 20 21 -- --
  -- 18 19 22 23 --
  16 17  2  3 24 --
  15 14  1  4 25 26
  12 13  6  5 30 27
  11 10  7 -- 29 28
  --  9  8 -- -- --
		

Crossrefs

A333958 The number of closed lambda calculus terms of size n that have a normal form, where size(lambda M)=2+size(M), size(M N)=2+size(M)+size(N), and size(V)=1+i for a variable V bound by the i-th enclosing lambda.

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 1, 2, 1, 6, 5, 13, 14, 37, 44, 101, 134, 297, 431, 882, 1361, 2729, 4405, 8549, 14311, 27400, 47101, 89022, 156080, 293014, 521730
Offset: 1

Views

Author

John Tromp, Apr 22 2020

Keywords

Comments

This sequence is uncomputable, like the corresponding Busy Beaver sequence A333479, which takes the maximum normal form size of the a(n) terms that have one.

Examples

			This sequence first differs from A114852 at n=18 where it excludes the shortest term without a normal form (lambda x. x x)(lambda x. x x), hence a(18) = 298-1 = 297.
		

Crossrefs

Extensions

Terms > 2729 corrected by John Tromp, Mar 29 2025

A118874 A halting sequence: let f_n be the n-th recursive function, relative to the Godel numbering given in Cutland, then a(n) is f_n(n)+1 if the corresponding program halts on input n, 0 otherwise.

Original entry on oeis.org

1, 3, 1, 4, 2, 1, 1, 0, 1, 12, 2, 1, 1, 1, 1, 16, 0, 19, 1, 21, 3, 2, 2, 0, 1, 1, 1, 1, 1, 1, 1, 32, 1, 0, 0, 36, 2, 1, 1, 0, 2, 45, 3, 2, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 64, 1, 67, 1, 0, 0, 0, 0, 0, 1, 76, 2, 1, 1, 1, 1, 81, 0, 84, 2, 86, 4, 3, 3, 0, 2, 2, 2, 2, 2, 2, 2, 1, 1, 0, 0
Offset: 0

Views

Author

Sam Alexander, May 24 2006

Keywords

Comments

The prototypical example of a noncomputable sequence.

Examples

			Using Cutland's Godel numbering, 80 corresponds to the URM program "Z(1) J(1,1,1) S(1)", which clearly loops forever on any input, so a(80)=0. On the other hand, 17 corresponds to the URM program "S(1) T(1,1)", which, on input 17, produces 18. So a(17)=18+1=19.
		

References

  • Nigel Cutland, "Computability: An introduction to recursive function theory". Cambridge University Press, 1980. p. 78.

Crossrefs

A337805 Lazy Beaver Problem: a(n) is the smallest positive number of steps a(n) such that no n-state Turing machine halts in exactly a(n) steps on an initially blank tape.

Original entry on oeis.org

2, 7, 22, 72, 427
Offset: 1

Views

Author

Zachary Vance, Sep 23 2020

Keywords

Comments

This sequence and the Busy Beaver (A060843) problem are closely related. Turing machines and the number of steps taken by a Turing machine on an initially blank tape are defined in A060843.
This sequence is computable, while the Busy Beaver problem is uncomputable.
a(n) - 1 <= BB(n), where BB(n) = A060843(n).
a(n) - 1 <= A107668 * 4^(2n), the number of uniquely behaving n-state Turing machines with 2 symbols, by the pigeonhole principle.

Examples

			For n = 2, there exist 2-state Turing machines which halt in exactly {1, 2, 3, 4, 5, 6} steps (and for no other number of steps) given an initially empty input tape. a(2) = 7 is defined as the lowest positive integer not present in that set of possible step lengths.
		

Crossrefs

Known upper bounds of a(n) - 1 are A028444, A004147, and A141475.
Showing 1-6 of 6 results.