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.

A143796 Ackermann function, defined recursively by A(0,n) = n+1, A(m+1,0) = A(m,1), A(m+1,n+1) = A(m,A(m+1,n)) for any nonnegative integers n, m. Table read by antidiagonals, the second term being A(0,1).

Original entry on oeis.org

1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 7, 13, 13, 6, 6, 9, 29, 65533, 65533, 7, 7, 11, 61
Offset: 0

Views

Author

Benoit Jubin, Sep 01 2008

Keywords

Comments

Also known as Ackermann-Peter function.
The next term is 2^65536-3.
This is a computable function that is not primitive recursive.

References

  • R. Peter, Rekursive Funktionen in der Komputer-Theorie. Budapest: Akad. Kiado, 1951.

Crossrefs

A046859(n)=A(n, n), A126333(n)=A(n, 0). Cf. A143797.

Formula

A(1,n) = 2+(n+3) - 3 = n + 2.
A(2,n) = 2*(n+3) - 3 = 2n + 3.
A(3,n) = 2^(n+3) - 3.
A(4,n) = 2^^(n+3)- 3 (a power tower of n+3 two's).