Inmathematics,thehyperoperation sequence[nb 1]is an infinitesequenceof arithmetic operations (calledhyperoperationsin this context)[1][11][13]that starts with aunary operation(thesuccessor functionwithn= 0). The sequence continues with thebinary operationsofaddition(n= 1),multiplication(n= 2), andexponentiation(n= 3).
After that, the sequence proceeds with further binary operations extending beyond exponentiation, usingright-associativity.For the operations beyond exponentiation, thenth member of this sequence is named byReuben Goodsteinafter theGreek prefixofnsuffixed with-ation(such astetration(n= 4),pentation(n= 5), hexation (n= 6), etc.)[5]and can be written as usingn− 2 arrows inKnuth's up-arrow notation. Each hyperoperation may be understoodrecursivelyin terms of the previous one by:
It may also be defined according to the recursion rule part of the definition, as in Knuth's up-arrow version of theAckermann function:
This can be used to easily show numbers much larger than those whichscientific notationcan, such asSkewes's numberandgoogolplexplex(e.g.is much larger than Skewes's number and googolplexplex), but there are some numbers which even they cannot easily show, such asGraham's numberandTREE(3).[14]
This recursion rule is common to many variants of hyperoperations.
Definition
editDefinition, most common
editThehyperoperation sequenceis thesequenceofbinary operations,definedrecursivelyas follows:
(Note that forn= 0, thebinary operationessentially reduces to aunary operation(successor function) by ignoring the first argument.)
Forn= 0, 1, 2, 3, this definition reproduces the basic arithmetic operations ofsuccessor(which is a unary operation),addition,multiplication,andexponentiation,respectively, as
Theoperations forn≥ 3 can be written inKnuth's up-arrow notation.
So what will be the next operation after exponentiation? We defined multiplication so thatand defined exponentiation so thatso it seems logical to define the next operation, tetration, so thatwith a tower of three 'a'. Analogously, the pentation of (a, 3) will be tetration(a, tetration(a, a)), with three "a" in it.
Knuth's notation could be extended to negative indices ≥ −2 in such a way as to agree with the entire hyperoperation sequence, except for the lag in the indexing:
The hyperoperations can thus be seen as an answer to the question "what's next" in thesequence:successor,addition,multiplication,exponentiation,and so on. Noting that
the relationship between basic arithmetic operations is illustrated, allowing the higher operations to be defined naturally as above. The parameters of the hyperoperation hierarchy are sometimes referred to by their analogous exponentiation term;[15]soais thebase,bis theexponent(orhyperexponent),[12]andnis therank(orgrade),[6]and moreover,is read as "thebthn-ation ofa",e.g.is read as "the 9th tetration of 7", andis read as "the 789th 123-ation of 456".
In common terms, the hyperoperations are ways of compounding numbers that increase in growth based on the iteration of the previous hyperoperation. The concepts of successor, addition, multiplication and exponentiation are all hyperoperations; the successor operation (producingx+ 1 fromx) is the most primitive, the addition operator specifies the number of times 1 is to be added to itself to produce a final value, multiplication specifies the number of times a number is to be added to itself, and exponentiation refers to the number of times a number is to be multiplied by itself.
Definition, using iteration
editDefineiterationof a functionfof two variables as
The hyperoperation sequence can be defined in terms of iteration, as follows. For all integersdefine
As iteration isassociative,the last line can be replaced by
Computation
editThe definitions of the hyperoperation sequence can naturally be transposed toterm rewriting systems (TRS).
TRS based on definition sub 1.1
editThe basic definition of the hyperoperation sequence corresponds with the reduction rules
To computeone can use astack,which initially contains the elements.
Then, repeatedly until no longer possible, three elements are popped and replaced according to the rules[nb 2]
Schematically, starting from:
WHILEstackLength <> 1 { POP3 elements; PUSH1 or 5 elements according to the rules r1, r2, r3, r4, r5; }
Example
Compute.[16]
The reduction sequence is[nb 2][17]
When implemented using a stack, on input
the stack configurations | represent the equations |
TRS based on definition sub 1.2
editThe definition using iteration leads to a different set of reduction rules
As iteration isassociative,instead of rule r11 one can define
Like in the previous section the computation ofcan be implemented using a stack.
Initially the stack contains the four elements.
Then, until termination, four elements are popped and replaced according to the rules[nb 2]
Schematically, starting from:
WHILEstackLength <> 1 { POP4 elements; PUSH1 or 7 elements according to the rules r6, r7, r8, r9, r10, r11; }
Example
Compute.
On inputthe successive stack configurations are
The corresponding equalities are
When reduction rule r11 is replaced by rule r12, the stack is transformed acoording to
The successive stack configurations will then be
The corresponding equalities are
Remarks
- is a special case. See below.[nb 3][nb 4]
- The computation ofaccording to the rules {r6 - r10, r11} is heavily recursive. The culprit is the order in which iteration is executed:.The firstdisappears only after the whole sequence is unfolded. For instance,converges to 65536 in 2863311767 steps, the maximum depth of recursion[18]is 65534.
- The computation according to the rules {r6 - r10, r12} is more efficient in that respect. The implementation of iterationasmimics the repeated execution of a procedure H.[19]The depth of recursion, (n+1), matches the loop nesting.Meyer & Ritchie (1967)formalized this correspondence. The computation ofaccording to the rules {r6-r10, r12} also needs 2863311767 steps to converge on 65536, but the maximum depth of recursion is only 5, as tetration is the 5th operator in the hyperoperation sequence.
- The considerations above concern the recursion depth only. Either way of iterating leads to the same number of reduction steps, involving the same rules (when the rules r11 and r12 are considered "the same" ). As the example shows the reduction ofconverges in 9 steps: 1 X r7, 3 X r8, 1 X r9, 2 X r10, 2 X r11/r12. The modus iterandi only affects the order in which the reduction rules are applied.
Examples
editBelow is a list of the first seven (0th to 6th) hyperoperations (0⁰is defined as 1).
n | Operation, Hn(a,b) |
Definition | Names | Domain |
---|---|---|---|---|
0 | or | Increment,successor,zeration, hyper0 | Arbitrary | |
1 | or | Addition,hyper1 | ||
2 | or | Multiplication,hyper2 | ||
3 | or | Exponentiation,hyper3 | breal, with some multivalued extensions tocomplex numbers | |
4 | or | Tetration,hyper4 | a≥ 0 or an integer,ban integer ≥ −1[nb 5](with some proposed extensions) | |
5 | or | Pentation,hyper5 | a,bintegers ≥ −1[nb 5] | |
6 | Hexation, hyper6 |
Special cases
editHn(0,b) =
- b+ 1, whenn= 0
- b,whenn= 1
- 0, whenn= 2
- 1, whenn= 3 andb= 0[nb 3][nb 4]
- 0, whenn= 3 andb> 0[nb 3][nb 4]
- 1, whenn> 3 andbis even (including 0)
- 0, whenn> 3 andbis odd
Hn(1,b) =
- b,whenn= 2
- 1, whenn≥ 3
Hn(a,0) =
- 0, whenn= 2
- 1, whenn= 0, orn≥ 3
- a,whenn= 1
Hn(a,1) =
- a, whenn≥ 2
Hn(a,a) =
- Hn+1(a,2), whenn≥ 1
Hn(a,−1) =[nb 5]
- 0, whenn= 0, orn≥ 4
- a− 1, whenn= 1
- −a,whenn= 2
- 1/a,whenn= 3
Hn(2, 2) =
- 3, whenn= 0
- 4, whenn≥ 1, easily demonstrable recursively.
History
editOne of the earliest discussions of hyperoperations was that of Albert Bennett in 1914, who developed some of the theory ofcommutative hyperoperations(seebelow).[6]About 12 years later,Wilhelm Ackermanndefined the function,which somewhat resembles the hyperoperation sequence.[20]
In his 1947 paper,[5]Reuben Goodsteinintroduced the specific sequence of operations that are now calledhyperoperations,and also suggested the Greek namestetration,pentation, etc., for the extended operations beyond exponentiation (because they correspond to the indices 4, 5, etc.). As a three-argument function, e.g.,,the hyperoperation sequence as a whole is seen to be a version of the originalAckermann function—recursivebut notprimitive recursive— as modified by Goodstein to incorporate the primitivesuccessor functiontogether with the other three basic operations of arithmetic (addition,multiplication,exponentiation), and to make a more seamless extension of these beyond exponentiation.
The original three-argumentAckermann functionuses the same recursion rule as does Goodstein's version of it (i.e., the hyperoperation sequence), but differs from it in two ways. First,defines a sequence of operations starting from addition (n= 0) rather than thesuccessor function,then multiplication (n= 1), exponentiation (n= 2), etc. Secondly, the initial conditions forresult in,thus differing from the hyperoperations beyond exponentiation.[7][21][22]The significance of theb+ 1 in the previous expression is that=,wherebcounts the number ofoperators(exponentiations), rather than counting the number ofoperands( "a" s) as does thebin,and so on for the higher-level operations. (See theAckermann functionarticle for details.)
Notations
editThis is a list of notations that have been used for hyperoperations.
Name | Notation equivalent to | Comment |
---|---|---|
Knuth's up-arrow notation | Used byKnuth[23](forn≥ 3), and found in several reference books.[24][25] | |
Hilbert's notation | Used byDavid Hilbert.[26] | |
Goodstein's notation | Used byReuben Goodstein.[5] | |
OriginalAckermann function | Used byWilhelm Ackermann(forn≥ 1)[20] | |
Ackermann–Péter function | This corresponds to hyperoperations for base 2 (a= 2) | |
Nambiar's notation | Used by Nambiar (forn≥ 1)[27] | |
Superscript notation | Used byRobert Munafo.[21] | |
Subscript notation (for lower hyperoperations) | Used for lower hyperoperations by Robert Munafo.[21] | |
Operator notation (for "extended operations" ) | Used for lower hyperoperations byJohn DonerandAlfred Tarski(forn≥ 1).[28] | |
Square bracket notation | Used in many online forums; convenient forASCII. | |
Conway chained arrow notation | Used byJohn Horton Conway(forn≥ 3) |
Variant starting froma
editIn 1928,Wilhelm Ackermanndefined a 3-argument functionwhich gradually evolved into a 2-argument function known as theAckermann function.TheoriginalAckermann functionwas less similar to modern hyperoperations, because his initial conditions start withfor alln> 2. Also he assigned addition ton= 0, multiplication ton= 1 and exponentiation ton= 2, so the initial conditions produce very different operations for tetration and beyond.
n | Operation | Comment |
---|---|---|
0 | ||
1 | ||
2 | ||
3 | An offset form oftetration.The iteration of this operation is different than theiterationof tetration. | |
4 | Not to be confused withpentation. |
Another initial condition that has been used is(where the base is constant), due toRózsa Péter,which does not form a hyperoperation hierarchy.
Variant starting from 0
editIn 1984, C. W. Clenshaw and F. W. J. Olver began the discussion of using hyperoperations to prevent computerfloating-pointoverflows.[29] Since then, many other authors[30][31][32]have renewed interest in the application of hyperoperations tofloating-pointrepresentation. (SinceHn(a,b) are all defined forb= -1.) While discussingtetration,Clenshawet al.assumed the initial condition,which makes yet another hyperoperation hierarchy. Just like in the previous variant, the fourth operation is very similar totetration,but offset by one.
n | Operation | Comment |
---|---|---|
0 | ||
1 | ||
2 | ||
3 | ||
4 | An offset form oftetration.The iteration of this operation is much different than theiterationof tetration. | |
5 | Not to be confused withpentation. |
Lower hyperoperations
editAn alternative for these hyperoperations is obtained by evaluation from left to right.[9]Since
define (with ° or subscript)
with
This was extended to ordinal numbers by Doner and Tarski,[33]by:
It follows from Definition 1(i), Corollary 2(ii), and Theorem 9, that, fora≥ 2 andb≥ 1, that[original research?]
But this suffers a kind of collapse, failing to form the "power tower" traditionally expected of hyperoperators:[34][nb 6]
If α ≥ 2 and γ ≥ 2,[28][Corollary 33(i)][nb 6]
n | Operation | Comment |
---|---|---|
0 | Increment, successor, zeration | |
1 | ||
2 | ||
3 | ||
4 | Not to be confused withtetration. | |
5 | Not to be confused withpentation. Similar totetration. |
Commutative hyperoperations
editCommutative hyperoperations were considered by Albert Bennett as early as 1914,[6]which is possibly the earliest remark about any hyperoperation sequence. Commutative hyperoperations are defined by the recursion rule
which is symmetric inaandb,meaning all hyperoperations are commutative. This sequence does not containexponentiation,and so does not form a hyperoperation hierarchy.
n | Operation | Comment |
---|---|---|
0 | Smooth maximum | |
1 | ||
2 | This is due to theproperties of the logarithm. | |
3 | In afinite field,this is theDiffie–Hellman key exchangeoperation. | |
4 | Not to be confused withtetration. |
Numeration systems based on the hyperoperation sequence
editR. L. Goodstein[5]used the sequence of hyperoperators to create systems of numeration for the nonnegative integers. The so-calledcomplete hereditary representationof integern,at levelkand baseb,can be expressed as follows using only the firstkhyperoperators and using as digits only 0, 1,...,b− 1, together with the basebitself:
- For 0 ≤n≤b− 1,nis represented simply by the corresponding digit.
- Forn>b− 1, the representation ofnis found recursively, first representingnin the form
- b[k]xk[k− 1]xk− 1[k- 2]... [2]x2[1]x1
- wherexk,...,x1are the largest integers satisfying (in turn)
- b[k]xk≤n
- b[k]xk[k− 1]xk− 1≤n
- ...
- b[k]xk[k− 1]xk− 1[k- 2]... [2]x2[1]x1≤n
- Anyxiexceedingb− 1 is then re-expressed in the same manner, and so on, repeating this procedure until the resulting form contains only the digits 0, 1,...,b− 1, together with the baseb.
Unnecessary parentheses can be avoided by giving higher-level operators higher precedence in the order of evaluation; thus,
- level-1 representations have the form b [1] X, withXalso of this form;
- level-2 representations have the form b [2] X [1] Y, withX,Yalso of this form;
- level-3 representations have the form b [3] X [2] Y [1] Z, withX,Y,Zalso of this form;
- level-4 representations have the form b [4] X [3] Y [2] Z [1] W, withX,Y,Z,Walso of this form;
and so on.
In this type of base-bhereditaryrepresentation, the base itself appears in the expressions, as well as "digits" from the set {0, 1,...,b− 1}. This compares toordinarybase-2 representation when the latter is written out in terms of the baseb;e.g., in ordinary base-2 notation, 6 = (110)2= 2 [3] 2 [2] 1 [1] 2 [3] 1 [2] 1 [1] 2 [3] 0 [2] 0, whereas the level-3 base-2 hereditary representation is 6 = 2 [3] (2 [3] 1 [2] 1 [1] 0) [2] 1 [1] (2 [3] 1 [2] 1 [1] 0). The hereditary representations can be abbreviated by omitting any instances of [1] 0, [2] 1, [3] 1, [4] 1, etc.; for example, the above level-3 base-2 representation of 6 abbreviates to 2 [3] 2 [1] 2.
Examples: The unique base-2 representations of the number266,at levels 1, 2, 3, 4, and 5 are as follows:
- Level 1: 266 = 2 [1] 2 [1] 2 [1]... [1] 2 (with 133 2s)
- Level 2: 266 = 2 [2] (2 [2] (2 [2] (2 [2] 2 [2] 2 [2] 2 [2] 2 [1] 1)) [1] 1)
- Level 3: 266 = 2 [3] 2 [3] (2 [1] 1) [1] 2 [3] (2 [1] 1) [1] 2
- Level 4: 266 = 2 [4] (2 [1] 1) [3] 2 [1] 2 [4] 2 [2] 2 [1] 2
- Level 5: 266 = 2 [5] 2 [4] 2 [1] 2 [5] 2 [2] 2 [1] 2
See also
editNotes
edit- ^Sequences similar to thehyperoperation sequencehave historically been referred to by many names, including: theAckermann function[1](3-argument), theAckermann hierarchy,[2]theGrzegorczyk hierarchy[3][4](which is more general),Goodstein's version of the Ackermann function,[5]operation of the nth grade,[6]z-fold iterated exponentiation of x with y,[7]arrowoperations,[8]reihenalgebra[9]andhyper-n.[1][9][10][11][12]
- ^abcThis implements theleftmost-innermost (one-step) strategy.
- ^abcFor more details, seePowers of zero.
- ^abcFor more details, seeZero to the power of zero.
- ^abcLetx=a[n](−1). By the recursive formula,a[n]0 =a[n− 1](a[n](−1)) ⇒ 1 =a[n− 1]x.One solution isx= 0, becausea[n− 1]0 = 1 by definition whenn≥ 4. This solution is unique becausea[n− 1]b> 1 for alla> 1,b> 0 (proof by recursion).
- ^abOrdinal addition is not commutative; seeordinal arithmeticfor more information
References
edit- ^abcGeisler 2003.
- ^Friedman 2001.
- ^Campagnola, Moore & Félix Costa 2002.
- ^Wirz 1999.
- ^abcdeGoodstein 1947.
- ^abcdBennett 1915.
- ^abBlack 2009.
- ^Littlewood 1948.
- ^abcMüller 1993.
- ^Munafo 1999a.
- ^abRobbins 2005.
- ^abGalidakis 2003.
- ^Rubtsov & Romerio 2005.
- ^Townsend 2016.
- ^Romerio 2008.
- ^Bezem, Klop & De Vrijer 2003.
- ^In eachstepthe underlinedredexis rewritten.
- ^The maximum depth of recursion refers to the number of levels of activation of a procedure which exist during the deepest call of the procedure.Cornelius & Kirby (1975)
- ^LOOPnTIMES DOH.
- ^abAckermann 1928.
- ^abcMunafo 1999b.
- ^Cowles & Bailey 1988.
- ^Knuth 1976.
- ^Zwillinger 2002.
- ^Weisstein 2003.
- ^Hilbert 1926.
- ^Nambiar 1995.
- ^abDoner & Tarski 1969.
- ^Clenshaw & Olver 1984.
- ^Holmes 1997.
- ^Zimmermann 1997.
- ^Pinkiewicz, Holmes & Jamil 2000.
- ^Doner & Tarski 1969,Definition 1.
- ^Doner & Tarski 1969,Theorem 3(iii).
Bibliography
edit- Ackermann, Wilhelm(1928)."Zum Hilbertschen Aufbau der reellen Zahlen".Mathematische Annalen.99:118–133.doi:10.1007/BF01459088.S2CID123431274.
- Bennett, Albert A. (December 1915). "Note on an Operation of the Third Grade".Annals of Mathematics.Second Series.17(2): 74–75.doi:10.2307/2007124.JSTOR2007124.
- Bezem, Marc; Klop, Jan Willem; De Vrijer, Roel (2003). "First-order term rewriting systems".Term Rewriting Systems by "Terese".Cambridge University Press. pp. 38–39.ISBN0-521-39115-6.
- Black, Paul E. (16 March 2009)."Ackermann's function".Dictionary of Algorithms and Data Structures.U.S. National Institute of Standards and Technology (NIST).Retrieved29 August2021.
- Campagnola, Manuel Lameiras;Moore, Cristopher;Félix Costa, José (December 2002)."Transfinite Ordinals in Recursive Number Theory".Journal of Complexity.18(4): 977–1000.doi:10.1006/jcom.2002.0655.
- Clenshaw, C.W.; Olver, F.W.J. (April 1984)."Beyond floating point".Journal of the ACM.31(2): 319–328.doi:10.1145/62.322429.S2CID5132225.
- Cornelius, B.J.; Kirby, G.H. (1975). "Depth of recursion and the ackermann function".BIT Numerical Mathematics.15(2): 144–150.doi:10.1007/BF01932687.S2CID120532578.
- Cowles, J.; Bailey, T. (30 September 1988)."Several Versions of Ackermann's Function".Dept. of Computer Science, University of Wyoming, Laramie, WY.Retrieved29 August2021.
- Doner, John;Tarski, Alfred(1969)."An extended arithmetic of ordinal numbers".Fundamenta Mathematicae.65:95–127.doi:10.4064/fm-65-1-95-127.
- Friedman, Harvey M. (July 2001)."Long Finite Sequences".Journal of Combinatorial Theory.Series A.95(1): 102–144.doi:10.1006/jcta.2000.3154.
- Galidakis, I. N. (2003)."Mathematics".Archived fromthe originalon 20 April 2009.Retrieved17 April2009.
- Geisler, Daniel (2003)."What lies beyond exponentiation?".Retrieved17 April2009.
- Goodstein, Reuben Louis (December 1947)."Transfinite Ordinals in Recursive Number Theory"(PDF).Journal of Symbolic Logic.12(4): 123–129.doi:10.2307/2266486.JSTOR2266486.S2CID1318943.
- Hilbert, David (1926). "Über das Unendliche".Mathematische Annalen.95:161–190.doi:10.1007/BF01206605.S2CID121888793.
- Holmes, W. N. (March 1997)."Composite Arithmetic: Proposal for a New Standard".Computer.30(3): 65–73.doi:10.1109/2.573666.Retrieved21 April2009.
- Knuth, Donald Ervin (December 1976)."Mathematics and Computer Science: Coping with Finiteness".Science.194(4271): 1235–1242.Bibcode:1976Sci...194.1235K.doi:10.1126/science.194.4271.1235.PMID17797067.S2CID1690489.Retrieved21 April2009.
- Littlewood, J. E. (July 1948). "Large Numbers".Mathematical Gazette.32(300): 163–171.doi:10.2307/3609933.JSTOR3609933.S2CID250442130.
- Meyer, Albert R.;Ritchie, Dennis MacAlistair(1967).The complexity of loop programs.ACM '67: Proceedings of the 1967 22nd national conference.doi:10.1145/800196.806014.
- Müller, Markus (1993)."Reihenalgebra"(PDF).Archived fromthe original(PDF)on 2 December 2013.Retrieved6 November2021.
- Munafo, Robert (1999a)."Versions of Ackermann's Function".Large Numbers at MROB.Retrieved28 August2021.
- Munafo, Robert (1999b)."Inventing New Operators and Functions".Large Numbers at MROB.Retrieved28 August2021.
- Nambiar, K. K. (1995)."Ackermann Functions and Transfinite Ordinals".Applied Mathematics Letters.8(6): 51–53.doi:10.1016/0893-9659(95)00084-4.
- Perstein, Millard H. (1 June 1962)."Algorithm 93: General order arithmetic".Communications of the ACM.5(6).New York City:Association for Computing Machinery:344.doi:10.1145/367766.368160.ISSN0001-0782.
- Pinkiewicz, T.; Holmes, N.; Jamil, T. (2000). "Design of a composite arithmetic unit for rational numbers".Proceedings of the IEEE SoutheastCon2000. 'Preparing for the New Millennium' (Cat. No.00CH37105).Proceedings of the IEEE. pp. 245–252.doi:10.1109/SECON.2000.845571.ISBN0-7803-6312-4.S2CID7738926.
- Robbins, A. J. (November 2005)."Home of Tetration".Archivedfrom the original on 13 June 2015.Retrieved17 April2009.
- Romerio, G. F. (21 January 2008)."Hyperoperations Terminology".Tetration Forum.Retrieved21 April2009.
- Rubtsov, C. A.; Romerio, G. F. (December 2005)."Ackermann's Function and New Arithmetical Operation".Retrieved17 April2009.
- Townsend, Adam (12 May 2016)."Names for large numbers".Chalkdust magazine.
- Weisstein, Eric W. (2003).CRC concise encyclopedia of mathematics, 2nd Edition.CRC Press. pp. 127–128.ISBN1-58488-347-2.
- Wirz, Marc (1999)."Characterizing the Grzegorczyk hierarchy by safe recursion"(PDF).Bern: Institut für Informatik und angewandte Mathematik.CiteSeerX10.1.1.42.3374.S2CID117417812.
- Zimmermann, R. (1997)."Computer Arithmetic: Principles, Architectures, and VLSI Design"(PDF).Lecture notes, Integrated Systems Laboratory, ETH Zürich. Archived fromthe original(PDF)on 17 August 2013.Retrieved17 April2009.
- Zwillinger, Daniel (2002).CRC standard mathematical tables and formulae, 31st Edition.CRC Press. p. 4.ISBN1-58488-291-3.