Knuth's up-arrow notation

From HandWiki
Short description: 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.[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 Hn(a,b). Knuth's up-arrow notation is another. For example:

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

The general definition of the up-arrow notation is as follows (for a0,n1,b0): anb=Hn+2(a,b)=a[n+2]b. Here, n stands for n arrows, so for example 23=243. The square brackets are another notation for hyperoperations.

Introduction

The hyperoperations naturally extend the arithmetical 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++1b copies of 1

Multiplication by a natural number is defined as iterated addition:

H2(a,b)=a×b=a+a++ab 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:

ab=H3(a,b)=ab=a×a××ab copies of a

For example,

43=43=4×4×4=643 copies of 4

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

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

For example,

43=444=4(44)=42561.34078079×101543 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,

32=33=27
33=333=327=7,625,597,484,987
34=3333=3327=376255974849871.2580143×103638334640024
35=33333=33327=33762559748498731.2580143×103638334640024
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”:

ab=H5(a,b)=a(a(a))b copies of a

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

ab=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 (n1)-arrow operators. Symbolically,

a n b=a n1 (a n1 ( n1 a))b copies of a

Examples:

32=33=333=327=7,625,597,484,987
33=3(33)=3(333)=333333 copies of 3=3337,625,597,484,987 copies of 3=333337,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 ab 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 ab instead.

anb is a shorter alternative notation for n uparrows. Thus a4b=ab.

Writing out up-arrow notation in terms of powers

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

For example: a4=a(a(aa))=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.

ab=aa...ab

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

a4=a(a(aa))=aa...aaa...aaa...aa

Again, if b is a variable or is too large, the stack might be written using dots and a note indicating its height.

ab=aa...aaa...aa}b

Furthermore, ab 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:

a4=a(a(aa))=aa...aaa...aa}aa...aaa...aa}aa...aaa...aa}a

And more generally:

ab=aa...aaa...aa}aa...aaa...aa}}ab

This might be carried out indefinitely to represent anb 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).

ab=ba
ab=a...aab
ab=a...aaa...aaa}b

Finally, as an example, the fourth Ackermann number 444 could be represented as:

4...444...444...444=4...444...444444

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, 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.

anb=a[n+2]b=abn(Knuth)(hyperoperation)(Conway)

64 = 66...64, Since 64 = 6666 = 6646,656, Thus the result comes out with 66...64

10(3×10(3×1015)+3) = 100000...000300000...003300000...00015 or 103×103×1015+3 (Petillion)

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, may occur in certain combinatorical and proof-theoretic contexts. There exists 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

anb={ab,if n=1;1,if n>1 and b=0;an1(an(b1)),otherwise 

for all integers a,b,n with a0,n1,b0[nb 1].

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

anb={a×b,if n=0;1,if n>0 and b=0;an1(an(b1)),otherwise 

for all integers a,b,n with a0,n0,b0.

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=an2b for n0.

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

Tables of values

Computing 0↑n b

Computing 0nb=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 2nb 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 2nb = Hn+2(2,b) = 2[n+2]b = 2 → b → n
b
1 2 3 4 5 6 formula
1 2 4 8 16 32 64 2b
2 2 4 16 65536 265,5362.0×1019,728 2265,536106.0×1019,727 2b
3 2 4 65536 22...265,536 copies of 2 22...222...265,536 copies of 2 22...222...222...265,536 copies of 2 2b
4 2 4 22...265,536 copies of 2 2...2222...265,536 copies of 2 2...222...2222...265,536 copies of 2 2...222...222...2222...265,536 copies of 2 2b

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 3nb = Hn+2(3,b) = 3[n+2]b = 3 → b → n
b
1 2 3 4 5 formula
1 3 9 27 81 243 3b
2 3 27 7,625,597,484,987 37,625,597,484,9871.3×103,638,334,640,024 337,625,597,484,987 3b
3 3 7,625,597,484,987 33...37,625,597,484,987 copies of 3 33...333...37,625,597,484,987 copies of 3 33...333...333...37,625,597,484,987 copies of 3 3b
4 3 33...37,625,597,484,987 copies of 3 3...3333...37,625,597,484,987 copies of 3 3...333...3333...37,625,597,484,987 copies of 3 3...333...333...3333...37,625,597,484,987 copies of 3 3b

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 4nb = Hn+2(4,b) = 4[n+2]b = 4 → b → n
b
1 2 3 4 5 formula
1 4 16 64 256 1024 4b
2 4 256 42561.34×10154 44256108.0×10153 444256 4b
3 4 44256108.0×10153 44...444256 copies of 4 44...444...444256 copies of 4 44...444...444...444256 copies of 4 4b
4 4 44...444...444256 copies of 4 4...4444...444...444256 copies of 4 4...444...4444...444...444256 copies of 4 4...444...444...4444...444...444256 copies of 4 4b

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 10nb = Hn+2(10,b) = 10[n+2]b = 10 → b → n
b
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 10b
3 10 1010...1010 copies of 10 1010...101010...1010 copies of 10 1010...101010...101010...1010 copies of 10 1010...101010...101010...101010...1010 copies of 10 10b
4 10 10...101010 copies of 10 10...101010...101010 copies of 10 10...101010...101010...101010 copies of 10 10...101010...101010...101010...101010 copies of 10 10b

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

  1. Knuth, Donald E. (1976). "Mathematics and Computer Science: Coping with Finiteness". Science 194 (4271): 1235–1242. doi:10.1126/science.194.4271.1235. PMID 17797067. Bibcode1976Sci...194.1235K. 
  2. R. L. Goodstein (Dec 1947). "Transfinite Ordinals in Recursive Number Theory". Journal of Symbolic Logic 12 (4): 123–129. doi:10.2307/2266486.