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-10 of 15 results. Next

A016072 Obsolete sequence of lower bounds for A028444.

Original entry on oeis.org

1, 4, 6, 13, 501, 2075
Offset: 0

Views

Author

Keywords

References

  • Dewdney, "The Armchair Universe," p. 164.

A060843 Busy Beaver problem: a(n) is the maximal number of steps that an n-state Turing machine can make on an initially blank tape before eventually halting.

Original entry on oeis.org

1, 6, 21, 107, 47176870
Offset: 1

Views

Author

Jud McCranie and N. J. A. Sloane, May 02 2001

Keywords

Comments

"In 1965 Tibor Rado, together with Shen Lin, proved that a(3) is 21. (...) Next, in 1983, Allan Brady proved that a(4) is 107. (...) Then in 1989 Heiner Marxen and Jürgen Buntrock discovered that a(5) is at least 47176870. (...) As for a(6), Marxen and Buntrock set another record in 1997 by proving that it is at least 8690333381690951." [Based on Aaronson's web page.]
The function Sigma(n) = Sigma(n, 2) (A028444) denotes the maximal number of tape marks (1's) that a Turing Machine with n internal states (plus the Halt state), 2 symbols, and a two-way infinite tape can write on an initially blank tape (all 0's) and then halt. The function a(n) (the present sequence) denotes the maximal number of steps S(n) = S(n, 2) (thus shifts, since direction NONE is excluded) that such a machine can make (not necessarily the same Turing machine producing a maximum number of 1s and need not even produce many tape marks).
Given that 5-state 2-symbol halting Turing machines can compute Collatz-like congruential functions (see references), it may be very hard to find the next term.
The sequence grows faster than any computable function of n and so is noncomputable.
From Daniel Forgues, Jun 05-06 2011: (Start)
A more precise definition might be as follows:
Busy Beaver Problem: a(n) is the maximal number of steps that an n-state, 2-symbol, d+ in {LEFT, RIGHT}, 5-tuple (q, s, q+, s+, d+) Turing machine can make on an initially blank tape and then halt.
Further comments:
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 S(n) = S(n, 2) since a 2-symbol BB-class Turing machine is assumed.
For all n, S(n, k) >= Sigma(n, k), k >= 2. (End)
a(6) > 10^^15, a tower of 10's of height 15 [Pavel Kropitz] - see Shawn Ligocki's blog. - N. J. A. Sloane, Jun 22 2022
It is conjectured that a(5) = 47176870 (Conjecture 10 of the Scott Aaronson link "The busy beaver frontier"). - Jianing Song, Feb 21 2024
On July 02, 2024 cosmo (Tristan Stérin) on behalf of the Busy Beaver Challenge group announced: "We have proved 'BB(5) = 47,176,870'". - Peter Luschny, Jul 02 2024
The next term is much too large to include in the OEIS or even to conceive. The BBchallenge has found this month (cf. Scott Aaronson link from June 2025) that a(6) > 2^^^5 >> 10^^(10^7) where the repeated ^ stands for Knuth's arrow notation; 10^^(10^7) (tetration) means the power tower 10^(10^(...)) with 10^7 nested "^10" in the exponent, and ^^^ means pentation which is repeated tetration (cf. Wikipedia). - M. F. Hasler, Jun 30 2025

References

  • A. H. Brady, The busy beaver game and the meaning of life, in Herken, R. (Ed) The Universal Turing Machine: A Half-Century Survey, pp. 259-277, Oxford Univ Press 1988. Reprinted by Springer-Verlag, 1995 (see pages 237-254).
  • J. C. Lagarias, ed., The Ultimate Challenge: The 3x+1 Problem, Amer. Math. Soc., 2010; see p. 33.
  • Yu. V. Rogozhin, Seven universal Turing machines (Russian), abstract, Fifth All-Union Conference on Math. Logic, Akad. Nauk. SSSR Sibirsk. Otdel., Inst. Mat., Novosibirsk, 1979, p. 127.
  • Yu. V. Rogozhin, Seven universal Turing machines (Russian), Systems and Theoretical Programming, Mat. Issled. no. 69, Akademiya Nauk Moldavskoi SSSR, Kishinev, 1982, pp. 76-90.
  • Jeffrey Shallit, A second course in formal languages and automata theory. Cambridge University Press, 2008. See Fig. 6.2, p. 185.

Crossrefs

Extensions

Additional references from Bill Dubuque (wgd(AT)martigny.ai.mit.edu)
Edited by N. J. A. Sloane, Aug 30 2011
Additional links from Robert C. Lyons, Jun 22 2022
a(5) added by Charles R Greathouse IV, Jul 02 2024

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

A004147 Number of n-state Turing machines which halt.

Original entry on oeis.org

32, 9784, 7571840, 11140566368
Offset: 1

Views

Author

Keywords

Comments

This sequence is noncomputable, because it could be used to solve the halting problem. In fact, it is of the same degree of difficulty as the halting problem. - David Diamondstone (skeptical.scientist(AT)gmail.com), Dec 28 2007

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Extensions

More terms from David Diamondstone (skeptical.scientist(AT)gmail.com), Dec 28 2007
a(4) from Jonathan Lee, who enumerated all 25.6 billion 4-state machines up to 107 steps, Mar 05 2016

A333479 Busy Beaver for lambda calculus BBλ: the maximum beta normal form size of any closed lambda term of size n, or 0 if no closed term of size n exists.

Original entry on oeis.org

0, 0, 0, 4, 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 30, 42, 52, 44, 58, 223, 160, 267, 298, 1812, 327686, 38127987424941, 578960446186580977117854925043439539266349923328202820197287920039565648199686
Offset: 1

Views

Author

John Tromp, Mar 23 2020

Keywords

Comments

Sizes of terms are defined as in Binary Lambda Calculus (see Lambda encoding link) by 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.
a(34), a(35) and a(36) correspond to Church numerals 2^2^2^2, 3^3^3, and 2^2^2^3, where numeral n has size 5*n+6.
a(38) > 10^19729, corresponding to Church numeral 2^2^2^2^2.
Only a finite number of entries can be known, as the function is uncomputable.
Quoting from Chaitin's paper below: "to information theorists it is clear that the correct measure is bits, not states [...] to deal with Sigma(number of bits) one would need a model of a binary computer as simple and compelling as the Turing machine model, and no obvious natural choice is at hand."
a(49) > Graham's number, as shown in program melo.lam in the links. - John Tromp, Dec 04 2023
a(111) > f_{ε_0+1}(4), as shown in program E00.lam in the links. - John Tromp, Aug 24 2024
a(404) > f_{PTO(Z_2)+1}(4), as shown in 1st Stackexchange link. - John Tromp, Dec 17 2024
a(1850) > Loader's number, as shown in 2nd Stackexchange link. - John Tromp, Dec 17 2024
A universal form of this Busy Beaver, using the binary input feature of Binary Lambda Calculus, is given in sequence A361211. - John Tromp, May 24 2023
An oracle form of this Busy Beaver is given in sequence A385712. - John Tromp, Jul 23 2025

Examples

			The smallest closed lambda term is lambda x.x with encoding 0010 of size 4, giving a(4)=4, as it is in normal form. There is no closed term of size 5, so a(5)=0. a(21)=22 because of term lambda x. (lambda y. y y) (x (lambda y. x)).
		

References

  • Gregory Chaitin, Computing the Busy Beaver Function, in T. M. Cover and B. Gopinath, Open Problems in Communication and Computation, Springer, 1987, pages 108-112.
  • John Tromp, Binary Lambda Calculus and Combinatory Logic, in Randomness And Complexity, from Leibniz To Chaitin, ed. Cristian S. Calude, World Scientific Publishing Company, October 2008, pages 237-260.

Crossrefs

Extensions

a(33)-a(34) from John Tromp, Apr 10 2020
a(35) from John Tromp, Apr 18 2020
a(36) from John Tromp, Apr 19 2020

A353176 Maximum length of a finite snake in the Snake Number Problem with n-periodic instructions in an infinite square grid (see Comments).

Original entry on oeis.org

30, 79, 152, 450, 241, 257, 1098, 1448, 9520, 8804, 8338, 11348, 25316, 18823
Offset: 5

Views

Author

Rodolfo Kurchan, Apr 28 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. The snake is either finite (if it gets stuck at some point) or infinite (if it can go on forever). a(n) is the maximum number of squares visited by a finite snake. For n <= 4, all snakes are infinite. - Pontus von Brömssen, May 08 2022

Examples

			a(5) = 30
URDDL: 30
-- -- 20 21 -- --
-- 18 19 22 23 --
16 17 02 03 24 --
15 14 01 04 25 26
12 13 06 05 30 27
11 10 07 -- 29 28
-- 09 08 -- -- --
.
a(6) = 79
UURDLL: 79
-- -- -- -- -- -- -- 74 75 -- --
-- -- -- -- -- 69 70 73 76 77 --
-- -- -- 64 65 68 71 72 79 78 --
-- -- -- 63 66 67 -- 27 28 -- --
-- -- 61 62 -- 22 23 26 29 30 --
56 57 60 17 18 21 24 25 32 31 --
55 58 59 16 19 20 03 04 33 34 --
54 53 52 15 14 13 02 05 06 35 36
-- -- 51 -- -- 12 01 08 07 38 37
-- -- 50 49 48 11 10 09 40 39 --
-- -- -- -- 47 -- 43 42 41 -- --
-- -- -- -- 46 45 44 -- -- -- --
.
   n | Number of finite solutions | Maximum length | Instructions that give
     |         A352388(n)         |      a(n)      |   the maximum length
  -------------------------------------------------------------------------
   5                    5                  30         URDDL
   6                   21                  79         UURDLL
   7                  127                 152         URULLDD
   8                  618                 450         URURUULD
   9                 2934                 241         URRRRDLRR
  10                13542                 257         URRLDLRRUR
  11                61803                1098         URUURUUULLD
  12               276650                1448         URUULLDUDDDD
  13              1219508                9520         URRRLLDLRRULL
  14              5309179                8804         URRURRRLDLRULL
  15             22868295                8338         UDDRULUUUULLULD
  16             97663066               11348         URRURRRLDDLRUULL
  17            414156142               25316         URRRDLULUUUUULURL
  18           1746438478               18823         UDDDRULULLULLUULDU
Computer solutions a(5) to a(13) found by Giorgio Vecchi.
Computer solutions a(14) to a(18) found by Ariel Futoransky.
		

Crossrefs

A385902 Antihydra, a BB(6) Turing machine (values of b).

Original entry on oeis.org

0, 2, 4, 6, 5, 7, 9, 11, 10, 12, 11, 13, 12, 11, 10, 12, 14, 16, 15, 14, 16, 15, 17, 16, 18, 17, 19, 21, 20, 19, 21, 20, 19, 21, 23, 25, 24, 23, 22, 21, 20, 22, 21, 20, 19, 18, 17, 19, 21, 23, 25, 27, 29, 31, 30, 29, 31, 30, 32, 31, 33, 32, 31, 33, 35, 37, 36
Offset: 0

Views

Author

Peter Luschny, Aug 02 2025

Keywords

Comments

Let f(a, b) = (3*a / 2, b + 2) if a is even, otherwise ((3*a - 1)/2, b - 1). The Busy Beaver challenge is to find natural numbers n and v, such that after n iterations, starting with f(8, 0), the result is (v, -1). The sequence lists the values of b in the iteration, the values of a are in A386792.
It is strongly suspected that the iteration does not halt according to the random-walk heuristic. Since Antihydra is derived from the transition rules of a 6-state, 2-symbol Turing machine, proving its divergence is equivalent to proving that this machine does not halt. Demonstrating the divergence of Antihydra is likely a necessary step in establishing a lower bound for BB(6), as this Turing machine appears to outrun all known halting 6-state machines.

Crossrefs

Cf. A386792 (values of a), A028444, A060843.

Programs

  • Mathematica
    Module[{a = 8, b = 0}, NestWhileList[(If[OddQ[a], b--, b += 2]; a += Quotient[a, 2]; b) &, b, b != -1 &, 1, 100]] (* Paolo Xausa, Aug 04 2025 *)
  • Python
    def antihydra(start: int = 8, halt: int = 66) -> list[int]:
        seq = []
        a = start
        b = 0
        n = 0
        while b != -1:
            if n > halt: break
            seq.append(b) # print(f"[{n}] -> ({a}, {b})")
            if a % 2 == 0:
                b += 2
            else:
                b -= 1
            a += a // 2
            n += 1
        return seq
    print(antihydra())

A386792 Antihydra, a BB(6) Turing machine (values of a).

Original entry on oeis.org

8, 12, 18, 27, 40, 60, 90, 135, 202, 303, 454, 681, 1021, 1531, 2296, 3444, 5166, 7749, 11623, 17434, 26151, 39226, 58839, 88258, 132387, 198580, 297870, 446805, 670207, 1005310, 1507965, 2261947, 3392920, 5089380, 7634070, 11451105, 17176657, 25764985, 38647477
Offset: 0

Views

Author

Peter Luschny, Aug 02 2025

Keywords

Comments

Let f(a, b) = (3*a / 2, b + 2) if a is even, otherwise ((3*a - 1)/2, b - 1). The Busy Beaver challenge is to find natural numbers n and v, such that after n iterations, starting with f(8, 0), the result is (v, -1).
We consider the sequence to be defined for all values of n, regardless of whether 'b' ever takes the value -1 or not. The sequence records the values of 'a' in this iteration. See A385902 for the values of 'b'.

Crossrefs

Cf. A385902 (values of b), A028444, A060843.

Programs

  • Maple
    aList := proc(halt) a := 8; u := 0; H := 8;
    from 0 to halt do
        q, r := iquo(a, 2), irem(a, 2):
        a, u := a + q, u + r: H := H,a
    od: H end: aList(37);
  • Mathematica
    A386792List[n_] := Module[{next},
        next[{a_, u_}] := {a, u} + QuotientRemainder[a, 2];
        NestList[next, {8, 0}, n][[All, 1]]];
    A386792List[38] (* Peter Luschny, Aug 05 2025 *)
  • Python
    def A386792List(n) -> list[int]:
        (a, b), H = (8, 0), [8]
        for _ in range(n):
            a, b = map(sum, zip((a, b), divmod(a, 2)))
            H.append(a)
        return H

A081419 Largest value held in any register at the end of a halting computation by an n-instruction register Minski machine.

Original entry on oeis.org

0, 1, 2, 3, 4, 6, 9, 34, 520
Offset: 1

Views

Author

Rick J. Griffiths (rjg42(AT)cam.ac.uk), Apr 20 2003

Keywords

Comments

We start with initially empty registers and include exactly one Halt instruction. Analogous to the Busy Beaver function, Sigma, for Turing Machines.
n<=5 are proved. 5

Examples

			E.g. B(3) is of the form:
1: A+ -> 2
2: A+ -> 3
3: Halt
Halting with B(3)=2
		

References

  • Tibor Rado, On Noncomputable Functions, Bell System Technical Journal, vol. 41, # 3, 877-884, May 1963.

Crossrefs

Cf. A028444.

Formula

Noncomputable.

A164278 a(n) = (6*n + 1)^(2*n) - 1.

Original entry on oeis.org

0, 48, 28560, 47045880, 152587890624, 819628286980800, 6582952005840035280, 73885357344138503765448, 1104427674243920646305299200, 21209401372879911350250244140624, 508858109619679129936596364708525200
Offset: 0

Author

Jonathan Vos Post, Aug 11 2009

Keywords

Comments

In Bátfai's notation, a(n) gives the total number of Turing machines with n states.

Crossrefs

Cf. A028444.

Programs

Extensions

Edited and name clarified by Franck Maminirina Ramaharo, Jan 15 2019
Showing 1-10 of 15 results. Next