Knuth's up-arrow notation

From testwiki
Jump to navigation Jump to search

Template:Short description 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), etc. Various notations have been used to represent hyperoperations. One such notation is Hn(a,b). Knuth's up-arrow notation ↑ is another. For example:

  • the single arrow ↑ represents exponentiation (iterated multiplication) 2↑4=H3(2,4)=2×(2×(2×2))=24=16
  • the double arrow ↑↑ represents tetration (iterated exponentiation) 2↑↑4=H4(2,4)=2↑(2↑(2↑2))=2222=216=65,536
  • the triple arrow ↑↑↑ represents pentation (iterated tetration) 2↑↑↑4=H5(2,4)=2↑↑(2↑↑(2↑↑2))=2↑↑(2↑↑(2↑2))=2↑↑(2↑↑4)=2↑(2↑(2↑⋯))⏟=22⋯2⏟2↑↑4 copies of 265,536 2's

The general definition of the up-arrow notation is as follows (for a≥0,n≥1,b≥0): a↑nb=Hn+2(a,b)=a[n+2]b. Here, ↑n stands for n arrows, so for example 2↑↑↑↑3=2↑43, 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:

H1(a,b)=a+b=a+1+1+…+1⏟b copies of 1

Multiplication by a natural number is defined as iterated addition:

H2(a,b)=a×b=a+a+…+a⏟b copies of a

For example,

4×3=4+4+4⏟=123 copies of 4

Exponentiation for a natural power b is defined as iterated multiplication, which Knuth denoted by a single up-arrow:

a↑b=H3(a,b)=ab=a×a×…×a⏟b copies of a

For example,

4↑3=43=4×4×4⏟=643 copies of 4

Tetration is defined as iterated exponentiation, which Knuth denoted by a "double arrow":

a↑↑b=H4(a,b)=aa...a⏟=a↑(a↑(⋯↑a))⏟b copies of ab copies of a

For example,

4↑↑3=444⏟=4↑(4↑4)⏟=42563 copies of 43 copies of 4

Expressions are evaluated from right to left, as the operators are defined to be right-associative.

According to this definition,

3↑↑2=33=27
3↑↑3=333=327=7,625,597,484,987
3↑↑4=3333=3327=37625597484987
3↑↑5=33333=33327=337625597484987
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":

a↑↑↑b=H5(a,b)=a↑↑(a↑↑(⋯↑↑a))⏟b copies of a

Hexation, defined as iterated pentation, is represented by the "quadruple arrow":

a↑↑↑↑b=H6(a,b)=a↑↑↑(a↑↑↑(⋯↑↑↑a))⏟b copies of a

and so on. The general rule is that an n-arrow operator expands into a right-associative series of (n−1)-arrow operators. Symbolically,

a ↑↑⋯↑⏟n b=a ↑⋯↑⏟n−1 (a ↑⋯↑⏟n−1 (⋯ ↑⋯↑⏟n−1 a))⏟b copies of a

Examples:

3↑↑↑2=3↑↑3=333=327=7,625,597,484,987
3↑↑↑3=3↑↑(3↑↑3)=3↑↑(3↑3↑3)=3↑3↑⋯↑3⏟3↑3↑3 copies of 3=3↑3↑⋯↑3⏟7,625,597,484,987 copies of 3=3333⋅⋅⋅⋅3⏟7,625,597,484,987 copies of 3

Notation

In expressions such as ab, 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↑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 ab doesn't lend itself well to generalization, which explains why Knuth chose to work from the inline notation a↑b instead.

a↑nb is a shorter alternative notation for n up arrows. Thus a↑4b=a↑↑↑↑b.

Writing out up-arrow notation in terms of powers

Attempting to write a↑↑b using the familiar superscript notation gives a power tower.

For example: a↑↑4=a↑(a↑(a↑a))=aaaa

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↑↑b=aa...a⏟b

Continuing with this notation, a↑↑↑b could be written with a stack of such power towers, each describing the size of the one above it.

a↑↑↑4=a↑↑(a↑↑(a↑↑a))=aa...a⏟aa...a⏟aa...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↑↑↑b=aa...a⏟aa...a⏟⋮⏟a}b

Furthermore, a↑↑↑↑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↑↑↑↑4=a↑↑↑(a↑↑↑(a↑↑↑a))=aa...a⏟aa...a⏟⋮⏟a}aa...a⏟aa...a⏟⋮⏟a}aa...a⏟aa...a⏟⋮⏟a}a

And more generally:

a↑↑↑↑b=aa...a⏟aa...a⏟⋮⏟a}aa...a⏟aa...a⏟⋮⏟a}⋯}a⏟b

This might be carried out indefinitely to represent a↑nb as iterated exponentiation of iterated exponentiation for any a, n, and b (although it clearly becomes rather cumbersome).

Using tetration

The Rudy Rucker notation ba for tetration allows us to make these diagrams slightly simpler while still employing a geometric representation (we could call these tetration towers).

a↑↑b=ba
a↑↑↑b=a...aa⏟b
a↑↑↑↑b=a...aa⏟a...aa⏟⋮⏟a}b

Finally, as an example, the fourth Ackermann number 4↑44 could be represented as:

4...44⏟4...44⏟4...44⏟4=4...44⏟4...44⏟4444

Generalizations

Some numbers are so large that multiple arrows of Knuth's up-arrow notation become too cumbersome; then an n-arrow operator ↑n is useful (and also for descriptions with a variable number of arrows), or equivalently, hyperoperators.

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.

a↑nb=a[n+2]b=a→b→n(Knuth)(hyperoperation)(Conway)
6↑↑4=66...6⏟4, Since 6↑↑4=6666=6646,656, Thus the result comes out with 66...6⏟4
10↑(3×10↑(3×10↑15)+3)=100000…000⏟300000…003⏟300000…000⏟15 or 103×103×1015+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 f0(x)=x+1, f2(x) already exhibits exponential growth, f3(x) is comparable to tetrational growth and is upper-bounded by a function involving the first four hyperoperators;. Then, fω(x) is comparable to the Ackermann function, fω+1(x) is already beyond the reach of indexed arrows but can be used to approximate Graham's number, and fω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 and 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↑nb={ab,if n=1;1,if n>1 and b=0;a↑n−1(a↑n(b−1)),otherwise 

for all integers a,b,n with a≥0,n≥1,b≥0.[nb 1]

This definition uses exponentiation (a↑1b=a↑b=ab) as the base case, and tetration (a↑2b=a↑↑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↑0b=a×b) as the base case and iterate from there. Then exponentiation becomes repeated multiplication. The formal definition would be

a↑nb={a×b,if n=0;1,if n>0 and b=0;a↑n−1(a↑n(b−1)),otherwise 

for all integers a,b,n with a≥0,n≥0,b≥0.

Note, however, that Knuth did not define the "nil-arrow" (↑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:

Hn(a,b)=a[n]b=a↑n−2b for n≥0.

The up-arrow operation is a right-associative operation, that is, a↑b↑c is understood to be a↑(b↑c), instead of (a↑b)↑c. If ambiguity is not an issue parentheses are sometimes dropped.

Tables of values

Computing 0↑n b

Computing 0↑nb=Hn+2(0,b)=0[n+2]b 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 2↑nb can be restated in terms of an infinite table. We place the numbers 2b 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 2↑nb= Hn+2(2,b)= 2[n+2]b= 2 → b → n
Template:Diagonal split header 1 2 3 4 5 6 formula
1 2 4 8 16 32 64 2b
2 2 4 16 65,536 265536≈2.00353×1019728 2265536≈106.03123×1019727 2↑↑b
3 2 4 65,536 655362 6553622 65536222 2↑↑↑b
4 2 4 655362 2↑↑↑(655362) 2↑↑↑(2↑↑↑(655362)) 2↑↑↑(2↑↑↑(2↑↑↑(655362))) 2↑↑↑↑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 3b 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 3↑nb= Hn+2(3,b)= 3[n+2]b= 3 → b → n
Template:Diagonal split header 1 2 3 4 5 formula
1 3 9 27 81 243 3b
2 3 27 7,625,597,484,987 37625597484987≈1.25801×103638334640024 337625597484987≈106.00225×103638334640023 3↑↑b
3 3 7,625,597,484,987 76255974849873 762559748498733 7625597484987333 3↑↑↑b
4 3 3↑↑↑76255974849873 3↑↑↑(3↑↑↑76255974849873) 3↑↑↑(3↑↑↑(3↑↑↑76255974849873)) 3↑↑↑(3↑↑↑(3↑↑↑(3↑↑↑76255974849873))) 3↑↑↑↑b

Computing 4  ↑n b

We place the numbers 4b 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 4↑nb= Hn+2(4,b)= 4[n+2]b= 4 → b → n
Template:Diagonal split header 1 2 3 4 5 formula
1 4 16 64 256 1024 4b
2 4 256 2512≈1.34078×10154 22513≈2.36102×108.07230×10153 222513+1≈10108.07230×10153 4↑↑b
3 4 22513≈2.36102×108.07230×10153 225134 2251344 22513444 4↑↑↑b
4 4 2251344 4↑↑↑(2251344) 4↑↑↑(4↑↑↑(2251344)) 4↑↑↑(4↑↑↑(4↑↑↑(2251344))) 4↑↑↑↑b

Computing 10 ↑n b

We place the numbers 10b 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 10↑nb= Hn+2(10,b)= 10[n+2]b= 10 → b → n
Template:Diagonal split header 1 2 3 4 5 formula
1 10 100 1,000 10,000 100,000 10b
2 10 10,000,000,000 1010,000,000,000 101010,000,000,000 10101010,000,000,000 10↑↑b
3 10 1010...10⏟10 copies of 10 1010...10⏟1010...10⏟10 copies of 10 1010...10⏟1010...10⏟1010...10⏟10 copies of 10 1010...10⏟1010...10⏟1010...10⏟1010...10⏟10 copies of 10 10↑↑↑b
4 10 10...1010⏟10 copies of 10 10...1010⏟10...1010⏟10 copies of 10 10...1010⏟10...1010⏟10...1010⏟10 copies of 10 10...1010⏟10...1010⏟10...1010⏟10...1010⏟10 copies of 10 10↑↑↑↑b

For 2 ≤ b ≤ 9 the numerical order of the numbers 10↑nb 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

  1. ↑ 1.0 1.1 1.2 For more details, see Powers of zero.
  2. ↑ Keep in mind that Knuth did not define the operator ↑0.
  3. ↑ 3.0 3.1 For more details, see Zero to the power of zero.

References

Template:Reflist

Template:Hyperoperations Template:Large numbers Template:Donald E. Knuth