In mathematics, Knuth's up-arrow notation is a method of notation for very large integers, introduced by Donald Knuth in 1976.[1]
In his 1947 paper,[2] R. L. Goodstein introduced the specific sequence of operations that are now called hyperoperations. Goodstein also suggested the Greek names tetration, pentation, etc., for the extended operations beyond exponentiation. The sequence starts with a unary operation (the successor function with n = 0), and continues with the binary operations of addition (n = 1), multiplication (n = 2), exponentiation (n = 3), tetration (n = 4), pentation (n = 5), etc.
Various notations have been used to represent hyperoperations. One such notation is  .
Knuth's up-arrow notation
.
Knuth's up-arrow notation  is another. 
For example:
 is another. 
For example:
- the single arrow  represents exponentiation (iterated multiplication) represents exponentiation (iterated multiplication) 
- the double arrow  represents tetration (iterated exponentiation) represents tetration (iterated exponentiation) 
- the triple arrow  represents pentation (iterated tetration) represents pentation (iterated tetration) 
The general definition of the up-arrow notation is as follows (for  ):
):
![{\displaystyle a\uparrow ^{n}b=H_{n+2}(a,b)=a[n+2]b.}](./_assets_/85c46ffdf75f03948d485eeffeea3486354eb211.svg) Here,
Here,  stands for n arrows, so for example
 stands for n arrows, so for example
 The square brackets are another notation  for hyperoperations.
The square brackets are another notation  for hyperoperations.
Introduction
The hyperoperations naturally extend the arithmetic operations of addition and multiplication as follows.
Addition by a natural number is defined as iterated incrementation:
 
Multiplication by a natural number is defined as iterated addition:
 
For example,
 
Exponentiation for a natural power  is defined as iterated multiplication, which Knuth denoted by a single up-arrow:
 is defined as iterated multiplication, which Knuth denoted by a single up-arrow:
 
For example,
 
Tetration is defined as iterated exponentiation, which Knuth denoted by a “double arrow”:
 
For example,
 
Expressions are evaluated from right to left, as the operators are defined to be right-associative.
According to this definition,
 
 
 
 
- etc.
This already leads to some fairly large numbers, but the hyperoperator sequence does not stop here.
Pentation, defined as iterated tetration, is represented by the “triple arrow”:
 
Hexation, defined as iterated pentation, is represented by the “quadruple arrow”:
 
and so on. The general rule is that an  -arrow operator expands into a right-associative series of (
-arrow operator expands into a right-associative series of ( )-arrow operators. Symbolically,
)-arrow operators. Symbolically,
 
Examples:
 
 
Notation
In expressions such as  , the notation for exponentiation is usually to write the exponent
, the notation for exponentiation is usually to write the exponent  as a superscript to the base number
 as a superscript to the base number  . But many environments — such as programming languages and plain-text e-mail — do not support superscript typesetting. People have adopted the linear notation
. But many environments — such as programming languages and plain-text e-mail — do not support superscript typesetting. People have adopted the linear notation  for such environments; the up-arrow suggests 'raising to the power of'. If the character set does not contain an up arrow, the caret (^) is used instead.
 for such environments; the up-arrow suggests 'raising to the power of'. If the character set does not contain an up arrow, the caret (^) is used instead.
The superscript notation  doesn't lend itself well to generalization, which explains why Knuth chose to work from the inline notation
 doesn't lend itself well to generalization, which explains why Knuth chose to work from the inline notation  instead.
 instead.
 is a shorter alternative notation for n uparrows. Thus
 is a shorter alternative notation for n uparrows. Thus  .
.
Writing out up-arrow notation in terms of powers
Attempting to write  using the familiar superscript notation gives a power tower.
 using the familiar superscript notation gives a power tower.
- For example:  
If  is a variable (or is too large), the power tower might be written using dots and a note indicating the height of the tower.
 is a variable (or is too large), the power tower might be written using dots and a note indicating the height of the tower.
 
Continuing with this notation,  could be written with a stack of such power towers, each describing the size of the one above it.
 could be written with a stack of such power towers, each describing the size of the one above it.
 
Again, if  is a variable or is too large, the stack might be written using dots and a note indicating its height.
 is a variable or is too large, the stack might be written using dots and a note indicating its height.
 
Furthermore,  might be written using several columns of such stacks of power towers, each column describing the number of power towers in the stack to its left:
 might be written using several columns of such stacks of power towers, each column describing the number of power towers in the stack to its left:
 
And more generally:
 
This might be carried out indefinitely to represent  as iterated exponentiation of iterated exponentiation for any
 as iterated exponentiation of iterated exponentiation for any  ,
,  , and
, and  (although it clearly becomes rather cumbersome).
 (although it clearly becomes rather cumbersome).
Using tetration
The Rudy Rucker notation  for tetration allows us to make these diagrams slightly simpler while still employing a geometric representation (we could call these tetration towers).
 for tetration allows us to make these diagrams slightly simpler while still employing a geometric representation (we could call these tetration towers).
 
 
 
Finally, as an example, the fourth Ackermann number  could be represented as:
 could be represented as:
 
Generalizations
Some numbers are so large that multiple arrows of Knuth's up-arrow notation become too cumbersome; then an n-arrow operator   is useful (and also for descriptions with a variable number of arrows), or equivalently, hyper operators.
 is useful (and also for descriptions with a variable number of arrows), or equivalently, hyper operators.
Some numbers are so large that even that notation is not sufficient. The Conway chained arrow notation can then be used: a chain of three elements is equivalent with the other notations, but a chain of four or more is even more powerful.
![{\displaystyle {\begin{matrix}a\uparrow ^{n}b&=&a[n+2]b&=&a\to b\to n\\{\text{(Knuth)}}&&{\text{(hyperoperation)}}&&{\text{(Conway)}}\end{matrix}}}](./_assets_/2a66f541418af751ad278b277ed9a18964c4a96a.svg) 
 , Since , Since , Thus the result comes out with , Thus the result comes out with 
 or or 
Even faster-growing functions can be categorized using an ordinal analysis called the fast-growing hierarchy. The fast-growing hierarchy uses successive function iteration and diagonalization to systematically create faster-growing functions from some base function  . For the standard fast-growing hierarchy using
. For the standard fast-growing hierarchy using  ,
,  already exhibits exponential growth,
 already exhibits exponential growth,  is comparable to tetrational growth and is upper-bounded by a function involving the first four hyperoperators;. Then,
 is comparable to tetrational growth and is upper-bounded by a function involving the first four hyperoperators;. Then,  is comparable to the Ackermann function,
 is comparable to the Ackermann function,  is already beyond the reach of indexed arrows but can be used to approximate Graham's number, and
 is already beyond the reach of indexed arrows but can be used to approximate Graham's number, and  is comparable to arbitrarily-long Conway chained arrow notation.
 is comparable to arbitrarily-long Conway chained arrow notation.
These functions are all computable. Even faster computable functions, such as the Goodstein sequence and the TREE sequence require the usage of large ordinals, may occur in certain combinatorical and proof-theoretic contexts. There exist functions which grow uncomputably fast, such as the Busy Beaver, whose very nature will be completely out of reach from any up-arrow, or even any ordinal-based analysis.
Definition
Without reference to hyperoperation the up-arrow operators can be formally defined by
 
for all integers  with
 with  .[nb 1]
.[nb 1]
This definition uses exponentiation  as the base case, and tetration
 as the base case, and tetration  as repeated exponentiation.  This is equivalent to the hyperoperation sequence except it omits the three more basic operations of succession, addition and multiplication.
 as repeated exponentiation.  This is equivalent to the hyperoperation sequence except it omits the three more basic operations of succession, addition and multiplication.
One can alternatively choose multiplication  as the base case and iterate from there. Then exponentiation becomes repeated multiplication. The formal definition would be
 as the base case and iterate from there. Then exponentiation becomes repeated multiplication. The formal definition would be
 
for all integers  with
 with  .
.
Note, however, that Knuth did not define the "nil-arrow" ( ). One could extend the notation to negative indices (n ≥ -2) in such a way as to agree with the entire hyperoperation sequence, except for the lag in the indexing:
). One could extend the notation to negative indices (n ≥ -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[n]b=a\uparrow ^{n-2}b{\text{ for }}n\geq 0.}](./_assets_/013f5aded05b23ab8552efd77dca57c4694d8b1e.svg) 
The up-arrow operation is a right-associative operation, that is,  is understood to be
 is understood to be  , instead of
, instead of  . If ambiguity is not an issue parentheses are sometimes dropped.
. If ambiguity is not an issue parentheses are sometimes dropped.
Tables of values
Computing 0↑n b
Computing ![{\displaystyle 0\uparrow ^{n}b=H_{n+2}(0,b)=0[n+2]b}](./_assets_/c74b3c65305086a3ffe141df38df0ae9061806ef.svg) results in
 results in
- 0, when n = 0  [nb 2]
- 1, when n = 1 and b = 0   [nb 1][nb 3]
- 0, when n = 1 and b > 0   [nb 1][nb 3]
- 1, when n > 1 and b is even (including 0)
- 0, when n > 1 and b is odd
Computing 2↑n b
Computing  can be restated in terms of an infinite table. We place the numbers
 can be restated in terms of an infinite table. We place the numbers  in the top row, and fill the left column with values 2. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
 in the top row, and fill the left column with values 2. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
Values of  
  
 ![{\displaystyle 2[n+2]b={}}](./_assets_/bf3495c599bba92d3e9eebcdc301fee377b5e88d.svg) 2 → b → n
 2 → b → n
| b ⁿ | 1 | 2 | 3 | 4 | 5 | 6 | formula | 
| 1 | 2 | 4 | 8 | 16 | 32 | 64 |   | 
| 2 | 2 | 4 | 16 | 65,536 | 2,003,...,156,736 | 212,003,...,428,736 |   | 
| 3 | 2 | 4 | 65,536 | 24,636,...,948,736 | 1,300,...,948,736 | 320,146,...,948,736 |   | 
| 4 | 2 | 4 | 24,636,...,948,736 | 68,225,...,948,736 | 167,167,...,948,736 | 3,449,...,948,736 |   | 
The table is the same as that of the Ackermann function, except for a shift in  and
 and  , and an addition of 3 to all values.
, and an addition of 3 to all values.
Computing 3 ↑n b
We place the numbers  in the top row, and fill the left column with values 3. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
 in the top row, and fill the left column with values 3. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
Values of  
  
 ![{\displaystyle 3[n+2]b={}}](./_assets_/08394e1a60c724f5ea6cddbae1335bbfd3cd990b.svg) 3 → b → n
 3 → b → n
| b ⁿ | 1 | 2 | 3 | 4 | 5 | formula | 
| 1 | 3 | 9 | 27 | 81 | 243 |   | 
| 2 | 3 | 27 | 7,625,597,484,987 | 12,580,...,739,387 | 338,605,...,355,387 |   | 
| 3 | 3 | 7,625,597,484,987 | 1,945,...,195,387 | 93,652,...,195,387 | 4,854,...,195,387 |   | 
| 4 | 3 | 1,945,...,195,387 | 834,215,...,195,387 | 25,653,...,195,387 | 17,124,...,195,387 |   | 
Computing 4  ↑n b
We place the numbers  in the top row, and fill the left column with values 4. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
 in the top row, and fill the left column with values 4. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
Values of  
  
 ![{\displaystyle 4[n+2]b={}}](./_assets_/970000c453179f61f91e0856dc6ff81baa1cd171.svg) 4 → b → n
 4 → b → n
| b ⁿ | 1 | 2 | 3 | 4 | 5 | formula | 
| 1 | 1 | 1 | 1 | 1 | 1 |   | 
| 2 | 1 | 4 | 19,728 | 603,122,606,263,029,537,... << 19,692 >> ...,149,530,140,391,357,847 | 101019727 digits |   | 
| 3 | 1 | 12 | 3,638,334,640,024 | 600,225,356,799,454,734,... << 3,638,334,639,988 >> ...,581,273,077,839,447,635 | 10103638334640023 digits |   | 
| 4 | 2 | 155 | 807,230,472,602,822,537,... << 118 >> ...,481,244,990,261,351,117 | 1010153 digits | 101010153 digits |   | 
Computing 10 ↑n b
We place the numbers  in the top row, and fill the left column with values 10. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
 in the top row, and fill the left column with values 10. To determine a number in the table, take the number immediately to the left, then look up the required number in the previous row, at the position given by the number just taken.
Values of  
  
 ![{\displaystyle 10[n+2]b={}}](./_assets_/5a5269a50acca4e5ee9f39dbc78cacab87f4a1c6.svg) 10 → b → n
 10 → b → n
| b ⁿ | 1 | 2 | 3 | 4 | 5 | formula | 
| 1 | 10 | 100 | 1,000 | 10,000 | 100,000 |   | 
| 2 | 10 | 10,000,000,000 |  |  |  |   | 
| 3 | 10 |  |  |  |  |   | 
| 4 | 10 |  |  |  |   |   | 
For 2 ≤ b ≤ 9 the numerical order of the numbers  is the lexicographical order with n as the most significant number, so for the numbers of these 8 columns the numerical order is simply line-by-line. The same applies for the numbers in the 97 columns with 3 ≤ b ≤ 99, and if we start from n = 1 even for 3 ≤ b ≤ 9,999,999,999.
 is the lexicographical order with n as the most significant number, so for the numbers of these 8 columns the numerical order is simply line-by-line. The same applies for the numbers in the 97 columns with 3 ≤ b ≤ 99, and if we start from n = 1 even for 3 ≤ b ≤ 9,999,999,999.
See also
Notes
References
External links
|  | 
|---|
| Primary |  | 
|---|
| Inverse for left argument |  | 
|---|
| Inverse for right argument |  | 
|---|
| Related articles |  | 
|---|
|  | 
|---|
| Examples in
 numerical
 order
 |  | 
|---|
| Expression methods
 |  | 
|---|
| Related articles
 (alphabetical
 order)
 
 |  | 
|---|
|  |