# Hyperoperation

Template:Mergefrom {{#invoke:Hatnote|hatnote}} In mathematics, the hyperoperation sequence[nb 1] is an infinite sequence of arithmetic operations (called hyperoperations)[1][11][13] that starts with the unary operation of successor (n = 0), then continues with the binary operations of addition (n = 1), multiplication (n = 2), and exponentiation (n = 3), after which the sequence proceeds with further binary operations extending beyond exponentiation, using right-associativity. For the operations beyond exponentiation, the nth member of this sequence is named by Reuben Goodstein after the Greek prefix of n suffixed with -ation (such as tetration (n = 4), pentation (n = 5), hexation (n = 6), etc.)[5] and can be written as using n - 2 arrows in Knuth's up-arrow notation (when n ≥ 3). Each hyperoperation may be understood recursively in terms of the previous one by:

${\displaystyle {\begin{matrix}a\uparrow ^{m}b&=&\underbrace {a\uparrow ^{m-1}(a\uparrow ^{m-1}(a\uparrow ^{m-1}(...(a\uparrow ^{m-1}(a\uparrow ^{m-1}a))...)))} \\&&b{\mbox{ copies of }}a\end{matrix}}}$ (m ≥ 0)

It may also be defined according to the recursion rule part of the definition, as in Knuth's up-arrow version of the Ackermann function:

${\displaystyle a\uparrow ^{m}b=a\uparrow ^{m-1}(a\uparrow ^{m}(b-1))}$ (m ≥ -1)

This can be used to easily show numbers much larger than those which scientific notation can, such as Skewes' number and googolplexplex, but there are some numbers which even they cannot easily show, such as Graham's number and TREE(3).

This recursion rule is common to many variants of hyperoperations (see below).

## Definition

The hyperoperation sequence is the sequence of binary operations ${\displaystyle H_{n}(a,b)(\mathbb {N} _{0})^{3}\rightarrow \mathbb {N} _{0}\,\!}$, defined recursively as follows:

${\displaystyle H_{n}(a,b)={\begin{cases}b+1&{\text{if }}n=0\\a&{\text{if }}n=1,b=0\\0&{\text{if }}n=2,b=0\\1&{\text{if }}n\geq 3,b=0\\H_{n-1}(a,H_{n}(a,b-1))&{\text{otherwise}}\end{cases}}\,\!}$

(Note that for n = 0, the binary operation essentially reduces to a unary operation (successor function) by ignoring the first argument.)

For n = 0, 1, 2, 3, this definition reproduces the basic arithmetic operations of successor (which is a unary operation), addition, multiplication, and exponentiation, respectively, as

${\displaystyle H_{0}(a,b)=b+1\,\!,}$
${\displaystyle H_{1}(a,b)=a+b\,\!,}$
${\displaystyle H_{2}(a,b)=a\cdot b\,\!,}$
${\displaystyle H_{3}(a,b)=a^{b}\,\!,}$

and for n ≥ 4 it extends these basic operations beyond exponentiation to what can be written in Knuth's up-arrow notation as

${\displaystyle H_{4}(a,b)=a\uparrow \uparrow {b}\,\!,}$
${\displaystyle H_{5}(a,b)=a\uparrow \uparrow \uparrow {b}\,\!,}$
...
${\displaystyle H_{n}(a,b)=a\uparrow ^{n-2}b{\text{ for }}n\geq 3\,\!,}$
...

Knuth's notation could be extended to negative indices ≥ -2 in such a way as to agree with the entire hyperoperation sequence, except for the lag in the indexing:

${\displaystyle H_{n}(a,b)=a\uparrow ^{n-2}b{\text{ for }}n\geq 0.\,\!}$

The hyperoperations can thus be seen as an answer to the question "what's next" in the sequence: successor, addition, multiplication, exponentiation, and so on. Noting that

the relationship between basic arithmetic operations is illustrated, allowing the higher operations to be defined naturally as above. The parameters of the hyperoperation hierarchy are sometimes referred to by their analogous exponentiation term;[14] so a is the base, b is the exponent (or hyperexponent),[12] and n is the rank (or grade).[6]

In common terms, the hyperoperations are ways of compounding numbers that increase in growth based on the iteration of the previous hyperoperation. The concepts of successor, addition, multiplication and exponentiation are all hyperoperations; the successor operation (producing x+1 from x) is the most primitive, the addition operator specifies the number of times 1 is to be added to itself to produce a final value, multiplication specifies the number of times a number is to be added to itself, and exponentiation refers to the number of times a number is to be multiplied by itself.

## Examples

This is a list of the first seven (0th to 6th) hyperoperations. (Notice that in this article, we define 00 as 1)

n Operation
(Hn(a, b))
Definition Names Domain
0 ${\displaystyle b+1}$ ${\displaystyle {1+{\underbrace {1+1+1+\cdots +1} \atop {b{\mbox{ copies of 1}}}}}}$ hyper0, increment, successor, zeration b arbitrary
1 ${\displaystyle a+b}$ ${\displaystyle {a+{\underbrace {1+1+1+\cdots +1} \atop {b{\mbox{ copies of 1}}}}}}$ hyper1, addition arbitrary
2 ${\displaystyle a\cdot b}$ ${\displaystyle {{\underbrace {a+a+a+\cdots +a} } \atop {b{\mbox{ copies of }}a}}}$ hyper2, multiplication arbitrary
3 ${\displaystyle a^{b}}$ or ${\displaystyle a\uparrow b}$ ${\displaystyle {{\underbrace {a\cdot a\cdot a\cdot a\cdot \ldots \cdot a} } \atop {b{\mbox{ copies of }}a}}}$ hyper3, exponentiation a > 0, b real, or a ≥ 0, b nonnegative, or a non-zero, b an integer, with some multivalued extensions to complex numbers
4 ${\displaystyle a\uparrow \uparrow b}$ ${\displaystyle {{\underbrace {a\uparrow (a\uparrow (a\uparrow \cdots \uparrow a))...)} } \atop {b{\mbox{ copies of }}a}}}$ hyper4, tetration a ≥ 0 or an integer, b an integer ≥ -1[nb 2] (with some proposed extensions)
5 ${\displaystyle a\uparrow \uparrow \uparrow b}$ or ${\displaystyle a\uparrow ^{3}b}$ ${\displaystyle {{\underbrace {a\uparrow \uparrow (a\uparrow \uparrow (a\uparrow \uparrow \cdots \uparrow \uparrow a))...)} } \atop {b{\mbox{ copies of }}a}}}$ hyper5, pentation a, b integers ≥ -1[nb 2]
6 ${\displaystyle a\uparrow \uparrow \uparrow \uparrow b}$ or ${\displaystyle a\uparrow ^{4}b}$ ${\displaystyle {{\underbrace {a\uparrow ^{3}(a\uparrow ^{3}(a\uparrow ^{3}\cdots \uparrow ^{3}a))...)} } \atop {b{\mbox{ copies of }}a}}}$ hyper6, hexation a, b integers ≥ -1[nb 2]

## Special cases

Hn(0, b) =

0, when n = 2, or n = 3, b ≥ 1, or n ≥ 4, b odd (≥ -1)
1, when n = 3, b = 0, or n ≥ 4, b even (≥ 0)
b, when n = 1
b + 1, when n = 0

Hn(a, 0) =

0, when n = 2
1, when n = 0, or n ≥ 3
a, when n = 1

Hn(a, -1) =[nb 2]

0, when n = 0, or n ≥ 4
a - 1, when n = 1
-a, when n = 2
${\displaystyle {\frac {1}{a}}}$, when n = 3

## History

One of the earliest discussions of hyperoperations was that of Albert Bennett[6] in 1914, who developed some of the theory of commutative hyperoperations (see below). About 12 years later, Wilhelm Ackermann defined the function ${\displaystyle \phi (a,b,n)\,\!}$[15] which somewhat resembles the hyperoperation sequence.

In his 1947 paper,[5] R. L. Goodstein introduced the specific sequence of operations that are now called hyperoperations, and also suggested the Greek names tetration, pentation, etc., for the extended operations beyond exponentiation (because they correspond to the indices 4, 5, etc.). As a three-argument function, e.g., ${\displaystyle G(n,a,b)=H_{n}(a,b)}$, the hyperoperation sequence as a whole is seen to be a version of the original Ackermann function ${\displaystyle \phi (a,b,n)\,\!}$recursive but not primitive recursive — as modified by Goodstein to incorporate the primitive successor function together with the other three basic operations of arithmetic (addition, multiplication, exponentiation), and to make a more seamless extension of these beyond exponentiation.

The original three-argument Ackermann function ${\displaystyle \phi \,\!}$ uses the same recursion rule as does Goodstein's version of it (i.e., the hyperoperation sequence), but differs from it in two ways. First, ${\displaystyle \phi (a,b,n)\,\!}$ defines a sequence of operations starting from addition (n = 0) rather than the successor function, then multiplication (n = 1), exponentiation (n = 2), etc. Secondly, the initial conditions for ${\displaystyle \phi \,\!}$ result in ${\displaystyle \phi (a,b,3)=a\uparrow \uparrow (b+1)\,\!}$, thus differing from the hyperoperations beyond exponentiation.[7][16][17] The significance of the b + 1 in the previous expression is that ${\displaystyle \phi (a,b,3)\,\!}$ = ${\displaystyle a^{a^{\cdot ^{\cdot ^{\cdot ^{a}}}}}\,\!}$, where b counts the number of operators (exponentiations), rather than counting the number of operands ("a"s) as does the b in ${\displaystyle a\uparrow \uparrow b\,\!}$, and so on for the higher-level operations. (See the Ackermann function article for details.)

## Notations

This is a list of notations that have been used for hyperoperations.

Name Notation equivalent to ${\displaystyle H_{n}(a,b)}$ Comment
Knuth's up-arrow notation ${\displaystyle a\uparrow ^{n-2}b\,\!}$ Used by Knuth[18] (for n ≥ 3), and found in several reference books.[19][20]
Goodstein's notation ${\displaystyle G(n,a,b)\,\!}$ Used by Reuben Goodstein.[5]
Original Ackermann function ${\displaystyle {\begin{matrix}\phi (a,b,n-1)\ {\text{ for }}1\leq n\leq 3\\\phi (a,b-1,n-1)\ {\text{ for }}n\geq 4\end{matrix}}\,\!}$ Used by Wilhelm Ackermann (for n ≥ 1) [15]
Ackermann–Péter function ${\displaystyle A(n,b-3)+3\ {\text{for }}a=2\,\!}$ This corresponds to hyperoperations for base 2 (a = 2)
Nambiar's notation ${\displaystyle a\otimes ^{n-1}b\,\!}$ Used by Nambiar (for n ≥ 1) [21]
Box notation ${\displaystyle a{\,{\begin{array}{|c|}\hline {\!n\!}\\\hline \end{array}}\,}b\,\!}$ Used by Rubtsov and Romerio.[13][14]
Superscript notation ${\displaystyle a{}^{(n)}b\,\!}$ Used by Robert Munafo.[10]
Subscript notation (for lower hyperoperations) ${\displaystyle a{}_{(n)}b\,\!}$ Used for lower hyperoperations by Robert Munafo.[10]
Square bracket notation ${\displaystyle a[n]b\,\!}$ Used in many online forums; convenient for ASCII.
Conway chained arrow notation ${\displaystyle a\to b\to (n-2)}$ Used by John Horton Conway (for n ≥ 3)
Bowers' Exploding Array Function ${\displaystyle \{a,b,n-2\}}$ Used by Jonathan Bowers (for n ≥ 3)

### Variant starting from a

{{#invoke:main|main}}

In 1928, Wilhelm Ackermann defined a 3-argument function ${\displaystyle \phi (a,b,n)}$ which gradually evolved into a 2-argument function known as the Ackermann function. The original Ackermann function ${\displaystyle \phi }$ was less similar to modern hyperoperations, because his initial conditions start with ${\displaystyle \phi (a,0,n)=a}$ for all n > 2. Also he assigned addition to n = 0, multiplication to n = 1 and exponentiation to n = 2, so the initial conditions produce very different operations for tetration and beyond.

n Operation Comment
0 ${\displaystyle F_{0}(a,b)=a+b}$
1 ${\displaystyle F_{1}(a,b)=a\cdot b}$
2 ${\displaystyle F_{2}(a,b)=a^{b}}$
3 ${\displaystyle F_{3}(a,b)=a\uparrow \uparrow (b+1)}$ An offset form of tetration. The iteration of this operation is much different than the iteration of tetration.
4 ${\displaystyle F_{4}(a,b)=(x\mapsto a\uparrow \uparrow (x+1))^{b}(a)}$ Not to be confused with pentation.

Another initial condition that has been used is ${\displaystyle A(0,b)=2b+1}$ (where the base is constant ${\displaystyle a=2}$), due to Rózsa Péter, which does not form a hyperoperation hierarchy.

### Variant starting from 0

In 1984, C. W. Clenshaw and F. W. J. Olver began the discussion of using hyperoperations to prevent computer floating-point overflows.[22] Since then, many other authors[23][24][25] have renewed interest in the application of hyperoperations to floating-point representation. (Since Hn(a, b) are all defined for b = -1) While discussing tetration, Clenshaw et al. assumed the initial condition ${\displaystyle F_{n}(a,0)=0}$, which makes yet another hyperoperation hierarchy. Just like in the previous variant, the fourth operation is very similar to tetration, but offset by one.

n Operation Comment
0 ${\displaystyle F_{0}(a,b)=b+1}$
1 ${\displaystyle F_{1}(a,b)=a+b}$
2 ${\displaystyle F_{2}(a,b)=a\cdot b=e^{\ln(a)+\ln(b)}}$
3 ${\displaystyle F_{3}(a,b)=a^{b}}$
4 ${\displaystyle F_{4}(a,b)=a\uparrow \uparrow (b-1)}$ An offset form of tetration. The iteration of this operation is much different than the iteration of tetration.
5 ${\displaystyle F_{5}(a,b)=(x\mapsto a\uparrow \uparrow (x-1))^{b}(0)=0{\text{ if }}a>0}$ Not to be confused with pentation.

### Commutative hyperoperations

Commutative hyperoperations were considered by Albert Bennett as early as 1914,[6] which is possibly the earliest remark about any hyperoperation sequence. Commutative hyperoperations are defined by the recursion rule

${\displaystyle F_{n+1}(a,b)=\exp(F_{n}(\ln(a),\ln(b)))}$

which is symmetric in a and b, meaning all hyperoperations are commutative. This sequence does not contain exponentiation, and so does not form a hyperoperation hierarchy.

## Notes

1. Sequences similar to the hyperoperation sequence have historically been referred to by many names, including: the Ackermann function[1] (3-argument), the Ackermann hierarchy,[2] the Grzegorczyk hierarchy[3][4] (which is more general), Goodstein's version of the Ackermann function,[5] operation of the nth grade,[6] z-fold iterated exponentiation of x with y,[7] arrow operations,[8] reihenalgebra[9] and hyper-n.[1][9][10][11][12]
2. a [n] (-1) = 0 for all real number a and all integer n ≥ 4, because if so, than a [n] 0 = a [n - 1] (a [n] (-1)) = a [n - 1] 0 = 1 (because of n ≥ 4), this is keeping with the define: a [n] 0 = 1 for all real number a.

## References

1. Template:Cite web
2. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
3. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
4. Template:Cite web
5. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
6. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
7. Template:Cite web
8. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
9. Template:Cite web
10. Template:Cite web
11. Template:Cite web
12. Template:Cite web
13. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
14. Template:Cite web
15. Template:Cite web
16. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
17. {{#invoke:citation/CS1|citation |CitationClass=book }}
18. {{#invoke:citation/CS1|citation |CitationClass=book }}
19. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
20. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
21. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
22. Template:Cite web
23. Template:Cite web

{{#invoke: Navbox | navbox }}