In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, Knuth's up-arrow notation is a method of notation for
very large integers
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
, introduced by
Donald Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist and mathematician. He is a professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of comp ...
in 1976.
In his 1947 paper,
R. L. Goodstein
Reuben Louis Goodstein (15 December 1912 – 8 March 1985) was an English mathematician with an interest in the philosophy and teaching of mathematics.
Education
Goodstein was educated at St Paul's School in London. He received his Master's deg ...
introduced the specific sequence of operations that are now called
''hyperoperations''. Goodstein also suggested the Greek names
tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
,
pentation
In mathematics, pentation (or hyper-5) is the fifth hyperoperation. Pentation is defined to be repeated tetration, similarly to how tetration is repeated exponentiation, exponentiation is repeated multiplication, and multiplication is repeated add ...
, etc., for the extended operations beyond
exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
. The sequence starts with a
unary operation
In mathematics, a unary operation is an operation with only one operand, i.e. a single input. This is in contrast to ''binary operations'', which use two operands. An example is any function , where is a set; the function is a unary operation ...
(the
successor function
In mathematics, the successor function or successor operation sends a natural number to the next one. The successor function is denoted by ''S'', so ''S''(''n'') = ''n'' +1. For example, ''S''(1) = 2 and ''S''(2) = 3. The successor functio ...
with ''n'' = 0), and continues with the
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
s of
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
(''n'' = 1),
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
(''n'' = 2),
exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
(''n'' = 3),
tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
(''n'' = 4),
pentation
In mathematics, pentation (or hyper-5) is the fifth hyperoperation. Pentation is defined to be repeated tetration, similarly to how tetration is repeated exponentiation, exponentiation is repeated multiplication, and multiplication is repeated add ...
(''n'' = 5), etc.
Various notations have been used to represent hyperoperations. One such notation is
.
Knuth's up-arrow notation
is another.
For example:
* the single arrow
represents
exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
(iterated multiplication)
* the double arrow
represents
tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
(iterated exponentiation)
* the triple arrow
represents
pentation
In mathematics, pentation (or hyper-5) is the fifth hyperoperation. Pentation is defined to be repeated tetration, similarly to how tetration is repeated exponentiation, exponentiation is repeated multiplication, and multiplication is repeated add ...
(iterated tetration)
The general definition of the up-arrow notation is as follows (for
):
Here,
stands for ''n'' arrows, so for example
The square brackets are another notation for hyperoperations.
Introduction
The
hyperoperations naturally extend the
arithmetic
Arithmetic is an elementary branch of mathematics that deals with numerical operations like addition, subtraction, multiplication, and division. In a wider sense, it also includes exponentiation, extraction of roots, and taking logarithms.
...
operations of
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
and
multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
as follows.
Addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
by a
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
is defined as iterated incrementation:
:
Multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
by a
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
is defined as iterated
addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
:
:
For example,
:
Exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
for a natural power
is defined as iterated multiplication, which Knuth denoted by a single up-arrow:
:
For example,
:
Tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
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
In programming language theory, the associativity of an operator is a property that determines how operators of the same precedence are grouped in the absence of parentheses. If an operand is both preceded and followed by operators (for examp ...
.
According to this definition,
:
:
:
:
:etc.
This already leads to some fairly large numbers, but the hyperoperator sequence does not stop here.
Pentation
In mathematics, pentation (or hyper-5) is the fifth hyperoperation. Pentation is defined to be repeated tetration, similarly to how tetration is repeated exponentiation, exponentiation is repeated multiplication, and multiplication is repeated add ...
, 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 operators. Symbolically,
:
Examples:
:
:
Notation
In expressions such as
, the notation for exponentiation is usually to write the exponent
as a superscript to the base number
. But many environments — such as
programming language
A programming language is a system of notation for writing computer programs.
Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
s and plain-text
e-mail
Electronic mail (usually shortened to email; alternatively hyphenated e-mail) is a method of transmitting and receiving Digital media, digital messages using electronics, electronic devices over a computer network. It was conceived in the ...
— do not support
superscript
A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, wh ...
typesetting. People have adopted the linear notation
for such environments; the up-arrow suggests 'raising to the power of'. If the
character set
Character encoding is the process of assigning numbers to graphical characters, especially the written characters of human language, allowing them to be stored, transmitted, and transformed using computers. The numerical values that make up a c ...
does not contain an up arrow, the
caret
Caret () is the name used familiarly for the character provided on most QWERTY keyboards by typing . The symbol has a variety of uses in programming and mathematics. The name "caret" arose from its visual similarity to the original proofre ...
(^) is used instead.
The superscript notation
doesn't lend itself well to generalization, which explains why Knuth chose to work from the inline notation
instead.
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.
: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.
:
Continuing with this notation,
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.
:
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:
:
And more generally:
:
This might be carried out indefinitely to represent
as iterated exponentiation of iterated exponentiation for any
,
, and
(although it clearly becomes rather cumbersome).
Using tetration
The Rudy Rucker notation
for
tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
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:
:
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.
Some numbers are so large that even that notation is not sufficient. The
Conway chained arrow notation
Conway chained arrow notation, created by mathematician John Horton Conway, is a means of expressing certain extremely large numbers. It is simply a finite sequence of positive integers separated by rightward arrows, e.g. 2\to3\to4\to5\to6.
As wi ...
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.
:
:
, Since
, Thus the result comes out with
:
or
Even faster-growing functions can be categorized using an
ordinal analysis called the
fast-growing hierarchy
In computability theory, computational complexity theory and proof theory, a fast-growing hierarchy (also called an extended Grzegorczyk hierarchy, or a Schwichtenberg-Wainer hierarchy) is an ordinal-indexed family of rapidly increasing functions ' ...
. 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
,
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 the
Ackermann function
In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total function, total computable function that is not Primitive recursive function, primitive recursive. ...
,
is already beyond the reach of indexed arrows but can be used to approximate
Graham's number
Graham's number is an Large numbers, immense number that arose as an upper bound on the answer of a problem in the mathematical field of Ramsey theory. It is much larger than many other large numbers such as Skewes's number and Moser's number, bot ...
, and
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
In theoretical computer science, the busy beaver game aims to find a terminating Computer program, program of a given size that (depending on definition) either produces the most output possible, or runs for the longest number of steps. Since an ...
, whose very nature will be completely out of reach from any up-arrow, or even any ordinal-based analysis.
Definition
Without reference to
hyperoperation
In mathematics, the hyperoperation sequence is an infinite sequence of arithmetic operations (called ''hyperoperations'' in this context) that starts with a unary operation (the successor function with ''n'' = 0). The sequence continues with th ...
the up-arrow operators can be formally defined by
:
for all integers
with
.
[
This definition uses ]exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
as the base case, and tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
as repeated exponentiation. This is equivalent to the hyperoperation sequence except it omits the three more basic operations of succession
Succession is the act or process of following in order or sequence.
Governance and politics
*Order of succession, in politics, the ascension to power by one ruler, official, or monarch after the death, resignation, or removal from office of ...
, addition
Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
and multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
.
One can alternatively choose multiplication
Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
as the base case and iterate from there. Then exponentiation
In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
becomes repeated multiplication. The formal definition would be
:
for all integers 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:
:
The up-arrow operation is a right-associative operation, that is, is understood to be , instead of . If ambiguity is not an issue parentheses are sometimes dropped.
Tables of values
Computing 0↑''n'' ''b''
Computing results in
:0, when ''n'' = 0 [Keep in mind that Knuth did not define the operator .]
:1, when ''n'' = 1 and ''b'' = 0 [For more details, see Powers of zero.][For more details, see ]Zero to the power of zero
Zero to the power of zero, denoted as , is a mathematical expression with different interpretations depending on the context. In certain areas of mathematics, such as combinatorics and algebra, is conventionally defined as 1 because this assignmen ...
.
: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 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.
The table is the same as that of the Ackermann function, except for a shift in and , 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.
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.
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.
For 2 ≤ ''b'' ≤ 9 the numerical order of the numbers is the lexicographical order
In mathematics, the lexicographic or lexicographical order (also known as lexical order, or dictionary order) is a generalization of the alphabetical order of the dictionaries to sequences of ordered symbols or, more generally, of elements of a ...
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
*Primitive recursion
In computability theory, a primitive recursive function is, roughly speaking, a function that can be computed by a computer program whose loops are all "for" loops (that is, an upper bound of the number of iterations of every loop is fixed befor ...
*Hyperoperation
In mathematics, the hyperoperation sequence is an infinite sequence of arithmetic operations (called ''hyperoperations'' in this context) that starts with a unary operation (the successor function with ''n'' = 0). The sequence continues with th ...
*Busy beaver
In theoretical computer science, the busy beaver game aims to find a terminating Computer program, program of a given size that (depending on definition) either produces the most output possible, or runs for the longest number of steps. Since an ...
* Cutler's bar notation
*Tetration
In mathematics, tetration (or hyper-4) is an operation (mathematics), operation based on iterated, or repeated, exponentiation. There is no standard mathematical notation, notation for tetration, though Knuth's up arrow notation \uparrow \upa ...
*Pentation
In mathematics, pentation (or hyper-5) is the fifth hyperoperation. Pentation is defined to be repeated tetration, similarly to how tetration is repeated exponentiation, exponentiation is repeated multiplication, and multiplication is repeated add ...
*Ackermann function
In computability theory, the Ackermann function, named after Wilhelm Ackermann, is one of the simplest and earliest-discovered examples of a total function, total computable function that is not Primitive recursive function, primitive recursive. ...
*Graham's number
Graham's number is an Large numbers, immense number that arose as an upper bound on the answer of a problem in the mathematical field of Ramsey theory. It is much larger than many other large numbers such as Skewes's number and Moser's number, bot ...
* Steinhaus–Moser notation
Notes
References
External links
*
* Robert Munafo,
Large Numbers: Higher hyper operators
'
{{Donald E. Knuth
Mathematical notation
Large numbers
Donald Knuth
1976 introductions