From Surf Wiki (app.surf) — the open knowledge base
Knuth's up-arrow notation
Method of notation of very large integers
Method of notation of very large integers
In mathematics, Knuth's up-arrow notation is a method of notation for very large integers, introduced by Donald Knuth in 1976.
In his 1947 paper,{{cite journal Various notations have been used to represent hyperoperations. One such notation is H_n(a,b). Knuth's up-arrow notation \uparrow is another. For example:
- the single arrow \uparrow represents exponentiation (iterated multiplication) 2 \uparrow 4 = H_3(2,4) = 2\times(2\times(2\times 2)) = 2^4 = 16
- the double arrow \uparrow\uparrow represents tetration (iterated exponentiation) 2 \uparrow\uparrow 4 = H_4(2,4) = 2 \uparrow (2 \uparrow (2 \uparrow 2))= 2^{2^{2^{2}}} = 2^{16} = 65,536
- the triple arrow \uparrow\uparrow\uparrow represents pentation (iterated tetration) \begin{align} 2 \uparrow\uparrow\uparrow 4 &= H_5(2,4)\ &= 2 \uparrow\uparrow (2 \uparrow\uparrow (2 \uparrow\uparrow 2 ))\ &= 2 \uparrow\uparrow (2 \uparrow\uparrow (2 \uparrow 2 ))\ &= 2 \uparrow\uparrow (2 \uparrow\uparrow 4 )\ &= \underbrace{2 \uparrow (2 \uparrow (2 \uparrow\cdots ))} ; = ; \underbrace{ ; 2^{2^{\cdots^2}}}\ & ;;;;; 2 \uparrow\uparrow 4 \text{ copies of } 2 ;;;;; \text{65,536 2s}\ \end{align} The general definition of the up-arrow notation is as follows (for a \ge 0, n \ge 1, b \ge 0): a\uparrow^nb = H_{n+2}(a,b) = a[n+2]b. Here, \uparrow^n stands for n arrows, so for example 2 \uparrow\uparrow\uparrow\uparrow 3 = 2\uparrow^4 3, and the square brackets used in the far right hand side expression is 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: : \begin{matrix} H_1(a,b) = a+b = & a+\underbrace{1+1+\dots+1} \ & b\mbox{ copies of }1 \end{matrix}
Multiplication by a natural number is defined as iterated addition: : \begin{matrix} H_2(a,b) = a\times b = & \underbrace{a+a+\dots+a} \ & b\mbox{ copies of }a \end{matrix}
For example,
: \begin{matrix} 4\times 3 & = & \underbrace{4+4+4} & = & 12\ & & 3\mbox{ copies of }4 \end{matrix}
Exponentiation for a natural power b is defined as iterated multiplication, which Knuth denoted by a single up-arrow:
: \begin{matrix} a\uparrow b = H_3(a,b) = a^b = & \underbrace{a\times a\times\dots\times a}\ & b\mbox{ copies of }a \end{matrix}
For example,
: \begin{matrix} 4\uparrow 3= 4^3 = & \underbrace{4\times 4\times 4} & = & 64\ & 3\mbox{ copies of }4 \end{matrix}
Tetration is defined as iterated exponentiation, which Knuth denoted by a "double arrow": : \begin{matrix} a\uparrow\uparrow b = H_4(a,b) = & \underbrace{a^{a^}}}} & = & \underbrace{a\uparrow (a\uparrow(\cdots\uparrow a))} \ & b\mbox{ copies of }a & & b\mbox{ copies of }a \end{matrix}
For example,
: \begin{matrix} 4\uparrow\uparrow 3 = & \underbrace{4^{4^4}} & = & \underbrace{4\uparrow (4\uparrow 4)} & = & 4^{256} & & \ & 3\mbox{ copies of }4 & &3\mbox{ copies of }4 \end{matrix}
Expressions are evaluated from right to left, as the operators are defined to be right-associative.
According to this definition, :3\uparrow\uparrow 2=3^3=27 :3\uparrow\uparrow 3=3^{3^3}=3^{27}=7,625,597,484,987 :3\uparrow\uparrow 4=3^{3^{3^3}}=3^{3^{27}}=3^{7625597484987} :3\uparrow\uparrow 5=3^{3^{3^{3^3}}}=3^{3^{3^{27}}}=3^{3^{7625597484987}} :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": : \begin{matrix} a\uparrow\uparrow\uparrow b = H_5(a,b) = & \underbrace{a_{}\uparrow\uparrow (a\uparrow\uparrow(\cdots\uparrow\uparrow a))}\ & b\mbox{ copies of }a \end{matrix} Hexation, defined as iterated pentation, is represented by the "quadruple arrow": : \begin{matrix} a\uparrow\uparrow\uparrow\uparrow b = H_6(a,b) = & \underbrace{a_{}\uparrow\uparrow\uparrow (a\uparrow\uparrow\uparrow(\cdots\uparrow\uparrow\uparrow a))}\ & b\mbox{ copies of }a \end{matrix}
and so on. The general rule is that an n-arrow operator expands into a right-associative series of (n - 1)-arrow operators. Symbolically, : \begin{matrix} a\ \underbrace{\uparrow_{}\uparrow!!\cdots!!\uparrow}{n}\ b= \underbrace{a\ \underbrace{\uparrow!!\cdots!!\uparrow}{n-1} \ (a\ \underbrace{\uparrow_{}!!\cdots!!\uparrow}{n-1} \ (\cdots \ \underbrace{\uparrow{}!!\cdots!!\uparrow}{n-1} \ a))}{b\text{ copies of }a} \end{matrix}
Examples:
:3\uparrow\uparrow\uparrow2 = 3\uparrow\uparrow3 = 3^{3^3} = 3^{27}=7,625,597,484,987
: \begin{align} 3\uparrow\uparrow\uparrow3 &= 3\uparrow\uparrow(3\uparrow\uparrow3) \ &= 3\uparrow\uparrow(3\uparrow 3\uparrow3) \
&= \begin{matrix} \underbrace{3\uparrow 3\uparrow\cdots\uparrow 3} \ 3\uparrow3\uparrow3\mbox{ copies of } 3 \end{matrix}\
&= \begin{matrix} \underbrace{3\uparrow 3\uparrow\cdots\uparrow 3} \ \mbox{7,625,597,484,987 copies of 3} \end{matrix}\
&= \begin{matrix} \underbrace{3^{3^{3^{3^{\cdot^{\cdot^{\cdot^{\cdot^{3}}}}}}}}} \ \mbox{7,625,597,484,987 copies of 3} \end{matrix} \end{align}
Notation
In expressions such as a^b, the notation for exponentiation is usually to write the exponent b as a superscript to the base number a. But many environments — such as programming languages and plain-text e-mail — do not support superscript typesetting. People have adopted the linear notation a \uparrow b 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 a^b doesn't lend itself well to generalization, which explains why Knuth chose to work from the inline notation a \uparrow b instead.
a \uparrow^n b is a shorter alternative notation for n uparrows. Thus a \uparrow^4 b = a \uparrow \uparrow \uparrow \uparrow b.
Writing out up-arrow notation in terms of powers
Attempting to write a \uparrow \uparrow b using the familiar superscript notation gives a power tower.
:For example: a \uparrow \uparrow 4 = a \uparrow (a \uparrow (a \uparrow a)) = a^{a^{a^a}}
If b is a variable (or is too large), the power tower might be written using dots and a note indicating the height of the tower.
:a \uparrow \uparrow b = {} \underbrace{a^{a^{.^{.^{.{a}}}}}}_{b}
Continuing with this notation, a \uparrow \uparrow \uparrow b could be written with a stack of such power towers, each describing the size of the one above it.
:a \uparrow \uparrow \uparrow 4 = a \uparrow \uparrow (a \uparrow \uparrow (a \uparrow \uparrow a)) = \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}_{a} }}
Again, if b is a variable or is too large, the stack might be written using dots and a note indicating its height.
:a \uparrow \uparrow \uparrow b = \left. \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}_{a} }} \right} b
Furthermore, a \uparrow \uparrow \uparrow \uparrow b 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:
:a \uparrow \uparrow \uparrow \uparrow 4 = a \uparrow \uparrow \uparrow (a \uparrow \uparrow \uparrow (a \uparrow \uparrow \uparrow a)) = \left.\left.\left. \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}{a} }} \right} \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}{a} }} \right} \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}_{a} }} \right} a
And more generally:
:a \uparrow \uparrow \uparrow \uparrow b = \underbrace{ \left.\left.\left. \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}{a} }} \right} \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{a^{a^{.^{.^{.{a}}}}}}{ \underbrace{\vdots}{a} }} \right} \cdots \right} a }_{b}
This might be carried out indefinitely to represent a \uparrow^n b as iterated exponentiation of iterated exponentiation for any a, n, and b (although it clearly becomes rather cumbersome).
Using tetration
The Rudy Rucker notation ^{b}a for tetration allows us to make these diagrams slightly simpler while still employing a geometric representation (we could call these tetration towers).
: a \uparrow \uparrow b = { }^{b}a
: a \uparrow \uparrow \uparrow b = \underbrace{^{^{^{^{^{a}.}.}.}a}a}_{b}
: a \uparrow \uparrow \uparrow \uparrow b = \left. \underbrace{^{^{^{^{^{a}.}.}.}a}a}{ \underbrace{^{^{^{^{^{a}.}.}.}a}a}{ \underbrace{\vdots}_{a} }} \right} b
Finally, as an example, the fourth Ackermann number 4 \uparrow^4 4 could be represented as: : \underbrace{^{^{^{^{^{4}.}.}.}4}4}{ \underbrace{^{^{^{^{^{4}.}.}.}4}4}{ \underbrace{^{^{^{^{^{4}.}.}.}4}4}{4} }} = \underbrace{^{^{^{^{^{4}.}.}.}4}4}{ \underbrace{^{^{^{^{^{4}.}.}.}4}4}_{ ^{^{^{4}4}4}4 }}
Generalizations
Some numbers are so large that multiple arrows of Knuth's up-arrow notation become too cumbersome; then an n-arrow operator \uparrow^n 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.
: \begin{matrix} a\uparrow^n b & = & a [n+2] b & = & a\to b\to n \ \text{(Knuth)} & & \text{(hyperoperation)} & & \text{(Conway)} \end{matrix} : 6\uparrow\uparrow4 = \underbrace{6^{6^{.^{.^{.^{6}}}}}}_4, Since 6\uparrow\uparrow4 = 6^{6^{6^{6}}} = 6^{6^{46,656}}, Thus the result comes out with \underbrace{6^{6^{.^{.^{.^{6}}}}}}_4
: 10\uparrow(3\times10\uparrow(3\times10\uparrow15)+3) = \underbrace{100000\ldots000}{ \underbrace{300000\ldots003}{\underbrace{300000\ldots000}_{15} }} or 10^{3\times10^{3\times10^{15}}+3}
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 f(x). For the standard fast-growing hierarchy using f_0(x) = x+1, f_2(x) already exhibits exponential growth, f_3(x) is comparable to tetrational growth and is upper-bounded by a function involving the first four hyperoperators;. Then, f_\omega(x) is comparable to the Ackermann function, f_{\omega + 1}(x) is already beyond the reach of indexed arrows but can be used to approximate Graham's number, and f_{\omega^2}(x) 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, which by their 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
: a\uparrow^n b= \begin{cases} a^b, & \text{if }n=1; \ 1, & \text{if }n1\text{ and }b=0; \ a\uparrow^{n-1}(a\uparrow^{n}(b-1)), & \text{otherwise } \end{cases} for all integers a, b, n with a \ge 0, n \ge 1, b \ge 0.
This definition uses exponentiation (a\uparrow^1 b = a\uparrow b = a^b) as the base case, and tetration (a\uparrow^2 b = a\uparrow\uparrow b) 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 (a\uparrow^0 b = a \times b) as the base case and iterate from there. Then exponentiation becomes repeated multiplication. The formal definition would be : a\uparrow^n b= \begin{cases} a\times b, & \text{if }n=0; \ 1, & \text{if }n0\text{ and }b=0; \ a\uparrow^{n-1}(a\uparrow^{n}(b-1)), & \text{otherwise } \end{cases} for all integers a, b, n with a \ge 0, n \ge 0, b \ge 0.
Note, however, that Knuth did not define the "nil-arrow" (\uparrow^0). 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: :H_n(a, b) = a [n] b = a \uparrow^{n-2}b\text{ for } n \ge 0.
The up-arrow operation is a right-associative operation, that is, a \uparrow b \uparrow c is understood to be a \uparrow (b \uparrow c), instead of (a \uparrow b) \uparrow c. If ambiguity is not an issue parentheses are sometimes dropped.
Tables of values
Computing 0↑''n'' ''b''
Computing 0\uparrow^n b = H_{n+2}(0,b) = 0[n+2]b results in
:0, when n = 0 Keep in mind that Knuth did not define the operator \uparrow^0.
:1, when n = 1 and b = 0 For more details, see Powers of zero.For more details, see Zero to the power of zero.
:0, when n = 1 and b 0
:1, when n 1 and b is even (including 0)
:0, when n 1 and b is odd
Computing 2↑''n'' ''b''
Computing 2\uparrow^n b can be restated in terms of an infinite table. We place the numbers 2^b 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.
| 1 | 2 | 3 | 4 | 5 | 6 | formula | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 4 | 8 | 16 | 32 | 64 | 2^b | ||||
| 2 | 4 | 16 | 65,536 | 2^{65536}\approx2.00353\times10^{19728} | 2^{2^{65536}}\approx2.12004\times10^{6.03123\times10^{19727}} | 2\uparrow\uparrow b | ||||
| 2 | 4 | 65,536 | {}^{65536}2=24,636,...,948,736 | {}^{{}^{65536}2}2=1,300,...,948,736 | {}^{{}^{{}^{65536}2}2}2=320,146,...,948,736 | 2\uparrow\uparrow\uparrow b | ||||
| 2 | 4 | {}^{65536}2=24,636,...,948,736 | 2\uparrow\uparrow\uparrow({}^{65536}2)=68,225,...,948,736 | 167,167,...,948,736 | 3,449,...,948,736 | 2\uparrow\uparrow\uparrow\uparrow b |
The table is the same as that of the Ackermann function, except for a shift in n and b, and an addition of 3 to all values.
Computing 3 ↑''n'' ''b''
We place the numbers 3^b 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.
| 1 | 2 | 3 | 4 | 5 | formula | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|
| 3 | 9 | 27 | 81 | 243 | 3^b | ||||
| 3 | 27 | 7,625,597,484,987 | 3^{7625597484987}\approx1.25801\times10^{3638334640024} | 3^{3^{7625597484987}}=338,605,...,355,387 | 3\uparrow\uparrow b | ||||
| 3 | 7,625,597,484,987 | 1,945,...,195,387 | 93,652,...,195,387 | 4,854,...,195,387 | 3\uparrow\uparrow\uparrow b | ||||
| 3 | 1,945,...,195,387 | 834,215,...,195,387 | 25,653,...,195,387 | 17,124,...,195,387 | 3\uparrow\uparrow\uparrow\uparrow b |
Computing 4 ↑''n'' ''b''
We place the numbers 4^b 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.
| 1 | 2 | 3 | 4 | 5 | formula | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|
| 4 | 16 | 64 | 256 | 1024 | 4^b | ||||
| 4 | 256 | 2^{512}\approx1.34078\times10^{154} | 2^{2^{513}}\approx2.36102\times10^{8.07230\times10^{153}} | 2^{2^{2^{513}+1}}\approx10^{10^{8.07230\times10^{153}}} | 4\uparrow\uparrow b | ||||
| 4 | 2^{2^{513}}\approx2.36102\times10^{8.07230\times10^{153}} | {}^{2^{2^{513}}}4 | {}^}4}4 | 4\uparrow\uparrow\uparrow5 | 4\uparrow\uparrow\uparrow b | ||||
| 4 | {}^}4}4 | 807,230,472,602,822,537,... ...,481,244,990,261,351,117 | 1010153 digits | 101010153 digits | 4\uparrow\uparrow\uparrow\uparrow b |
Computing 10 ↑''n'' ''b''
We place the numbers 10^b 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.
| 1 | 2 | 3 | 4 | 5 | formula | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|---|---|---|
| 10 | 100 | 1,000 | 10,000 | 100,000 | 10^b | ||||
| 10 | 10,000,000,000 | 10^{10,000,000,000} | 10^{10^{10,000,000,000}} | 10^{10^{10^{10,000,000,000}}} | 10\uparrow\uparrow b | ||||
| 10 | |||||||||
| 10 | 10\uparrow\uparrow\uparrow\uparrow b |
For 2 ≤ b ≤ 9 the numerical order of the numbers 10\uparrow^n b 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.
Notes
References
References
- Knuth, Donald E.. (1976). "Mathematics and Computer Science: Coping with Finiteness". Science.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Knuth's up-arrow notation — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report