ExplorationsKnuth’s arrows, and the digits that can still be pinned down
A Number With No Room to Be Written
A power repeats multiplication: 3 ↑ 3 means 3 × 3 × 3 = 27. A second arrow repeats powers, so 3 ↑↑ 3 means 3 raised to the power 27. Continuing this hierarchy leads to the 64-stage construction of Graham’s number, which appeared as an upper bound in a problem about colouring the connections of a high-dimensional cube. Its full decimal expansion is too large to display, but its last ten digits can be computed exactly.
Interactive laboratory
Current view: One arrow at a time
Knuth’s arrows unfolded one level down, with the value printed in full while it still fits.
- 3 ↑ 33 × 3 × 327
- 3 ↑↑ 33 ↑ (3 ↑↑ 2) = 3 ↑ 277,625,597,484,987
- 3 ↑↑↑ 33 ↑↑ (3 ↑↑↑ 2) = 3 ↑↑ 7,625,597,484,987The laboratory stopped here rather than approximating. Ask how many digits it has. Then ask how many digits that answer has. You would have to ask 7,625,597,484,984 times before reaching a number a person could read, and that number is about 3,638,334,640,024, itself 13 digits long.
Every rung above the second is refused, and refusing is the finding rather than a limitation of this browser. No notation shortens what is missing: the value, the number of digits in the value, and the number of digits in that are all past writing, so what stands in their place is a count of how many times the question would have to be repeated.
Every rung of the arrow ladder, as a table
| Arrows | Expression | One level down | Value, or size |
|---|---|---|---|
| 1 | 3 ↑ 3 | 3 × 3 × 3 | 27 |
| 2 | 3 ↑↑ 3 | 3 ↑ (3 ↑↑ 2) = 3 ↑ 27 | 7,625,597,484,987 |
| 3 | 3 ↑↑↑ 3 | 3 ↑↑ (3 ↑↑↑ 2) = 3 ↑↑ 7,625,597,484,987 | Ask how many digits it has. Then ask how many digits that answer has. You would have to ask 7,625,597,484,984 times before reaching a number a person could read, and that number is about 3,638,334,640,024, itself 13 digits long. |
- a rung
- one up-arrow expression, with the same expression rewritten one level down beside it
- the value
- an exact result, printed digit for digit, computed with integer arithmetic only
- the refusal
- a rung that was not evaluated, with a count of how far past writing its answer is
One rung per arrow count, starting from a single arrow. The first rung is 3 ↑ 3, which is 3 × 3 × 3 = 27, and each rung below it adds one arrow. Each rung shows the expression on the left, the same expression rewritten one level down in the middle, and on the right either the exact value or a description of its size. A rung whose value is printed is a rung this browser evaluated with exact integer arithmetic and nothing else. A rung marked as refused was not evaluated and not approximated: what stands in its place is a count of how many times you would have to ask "and how many digits does that have" before reaching a readable number, together with that number. The jump between the second rung and the third is the subject of the whole page.
3 ↑↑↑ 3 was not evaluated. Ask how many digits it has. Then ask how many digits that answer has. You would have to ask 7,625,597,484,984 times before reaching a number a person could read, and that number is about 3,638,334,640,024, itself 13 digits long. Nothing was rounded and nothing was approximated: the size was estimated from logarithms before any arithmetic started, and the arithmetic never started.
- Arrows
- 3
- Rungs printed in full
- 2
- Rungs refused
- 1
Try this
Before opening the third rung, write down your guess for how many digits 3 ↑↑↑ 3 has. Then look, and compare your guess with what the page says it cannot tell you.
What is going on
Each explanation begins with a worked example and follows the same operation through intuition, formal statements and proofs. Later sections distinguish what is established from questions that remain open, so you can follow the level of detail useful to you.
- 3 ↑ 33 × 3 × 327one arrow is an ordinary power, so this is 3 multiplied by itself 3 times
- 3 ↑↑ 33 ↑ (3 ↑ 3) = 3 ↑ 277,625,597,484,987two arrows stack the powers into a tower instead of multiplying them
- 3 ↑↑↑ 33 ↑↑ (3 ↑↑ 3) = 3 ↑↑ 7,625,597,484,987a tower of 7,625,597,484,987 threesthree arrows count the storeys of the tower, and no room remains to write the answer
The laboratory draws exactly these three rungs and then keeps going. Each rung shows the expression, the same expression rewritten one level down, and either the value in full or a description of how far past writing it is. The third rung is where the printing stops, and the laboratory says so rather than approximating.
Adding one arrow changes which operation is repeated. Two arrows build a tower of three threes; three arrows build a tower with more than seven trillion levels. Graham's number uses a related 64-stage definition, beginning with four arrows and then using each result as the arrow count for the next stage. These compact descriptions remain exact even when the decimal expansions cannot be displayed.
What you are seeing
A plain description of the notation
Multiplication repeats addition, and a power repeats multiplication. For example, 3 ↑ 3 is another way to write 3³ = 3 × 3 × 3 = 27. Knuth's arrow notation extends this idea by letting another arrow repeat the previous operation.
With two arrows, 3 ↑↑ 3 is a tower of three 3s, evaluated from the top: . With three arrows, 3 ↑↑↑ 3 is a tower whose height is 3 ↑↑ 3, already more than seven trillion levels.
The notation describes these values exactly without expanding all their digits. When an expansion exceeds the laboratory's computation limit, it displays that limit rather than attempting an impractical calculation.
For Graham's number, start with g₁ = 3 ↑↑↑↑ 3, using four arrows. Define each later g by using the previous value as the number of arrows between two 3s. After 64 stages, g₆₄ is Graham's number. It arose as an upper bound in a problem about two-colouring the connections between cube corners.
The decimal expansion is far too large to display, but a remainder calculation can still determine its last digits. The later layers explain why a bound on an expansion is not a bound on everything we can learn about the number.
The laboratory splits that build into three counts, and each one starts from the single arrow above. The arrow view is one rung per arrow. Its first rung is 3 ↑ 3, which is 3 × 3 × 3 = 27. Each later rung is the same kind of expression with one more arrow, rewritten one level down, until the value no longer fits. The digit view is not yet Graham's number. It is a tower of threes, one row per height, showing only the last few decimal digits of a tower of that many 3s. The ladder is the 64 stages: g₁ is the four-arrow expression, and each of the 63 rungs above it uses the value below as its arrow count. The only number written on those rungs is that count.
Why it starts to make sense
Intuition, before any algebra
Try the last digit by hand and the trick appears on its own.
The powers of 3 end in 3, 9, 7, 1, 3, 9, 7, 1, and so on forever: a cycle of four. So to know the last digit of 3 raised to something, you do not need the exponent. You need the exponent's remainder on division by 4, and nothing else at all.
Now take a tower. 3 ↑↑ 2 is 3³ = 27, so its last digit is decided by 3 mod 4, which is 3, giving the third entry of the cycle: 7. Take a taller tower and the exponent changes, but its remainder modulo 4 is all that matters, and that remainder is decided by a shorter version of the same question. The tower has stopped mattering as a size and started mattering only as a remainder.
That is the whole idea. Each storey of the tower only needs to be known modulo something smaller than before, and "something smaller than before" cannot keep shrinking forever. After a bounded number of storeys the question has collapsed to a remainder modulo 1, where every number gives the same answer, and the height has stopped affecting anything.
So a tall enough tower of threes has fixed last digits, and Graham's number is a tower of threes taller than any bound of that kind. The digits are computable not in spite of the number being unimaginable but because of it: the tower is so tall that its exact height became irrelevant.
The catch, and the second view exists to show it, is that the bound grows with how many digits you ask for. One digit needs a tower two storeys tall. Twenty digits need twenty-one. Every extra digit buys another storey, so getting all the digits would need a tower of infinite height, which is precisely the thing that does not exist.
The key idea
Three statements, established three different ways
The sentence worth carrying away is this one.
The last digits of Graham's number are computable because the tower is too tall for its height to matter. Nothing else about the number becomes computable along with them.
Everything on this page falls into one of three boxes, and they should not be allowed to blur.
- The last ten digits are 2464195387. Proved, here, by a finite modular argument written out in layer 5 and recomputed twice in the test suite. This is a theorem about Graham's number and it is complete.
- Graham's number has more than digits. This is proved by inequalities between towers. Even an illustrative allowance of cells, with one digit per cell, would be insufficient; this comparison is not a physical information-limit theorem.
- The problem Graham's number came from is open. The answer is at least 13, the best known upper bound is now vastly below Graham's number, and where it actually falls is unknown. Nothing on this page searches for it, and computing ten digits contributed nothing to it.
The order matters. A reader who takes the first box as evidence about the third has learned the wrong thing from a page that got everything else right. The digits are a fact about arithmetic modulo 10¹⁰. The problem is a fact about colouring the edges of a hypercube. They share a number and nothing else.
Formal statement
Precisely what is being claimed
The notation. For and define
Write for the tower of threes, so and .
Graham's number. Set and . Graham's number is .
The Carmichael function. is the exponent of the group of units modulo : the least with for every coprime to . On prime powers, , , for , and for odd ; on a product of coprime factors it is the least common multiple of theirs.
Generalised Euler. For every integer , every modulus and every exponent ,
Both parts of that are conditions, not decoration. The may not be dropped, and the hypothesis may not be dropped.
The claims are then:
- For each there is a height such that is the same for every . Proved in layer 5.
- for . Exhaustively checked over exactly those twenty values.
- . Proved, since is a tower of threes of height far above .
- , and has more than decimal digits, exceeding an illustrative storage cells. Proved as arithmetic; the comparison does not establish a physical storage limit.
- The least such that every two-colouring of the edges of the -cube contains a single-coloured complete subgraph on four coplanar vertices satisfies , and its exact value is open.
Statement 5 is the one the number was invented for, and it is the one this page contributes nothing to.
Proof
Of the digits, in full
The stabilisation. Fix . Because for every , the chain
is strictly decreasing until it reaches 1, so there is a least with .
Claim: for every with , the residue is the same for all .
Induct downwards on from . At the modulus is 1 and every residue is 0, so the statement holds for all . Suppose it holds at , and take . Then , so by hypothesis
Both of those exponents are at least , since , and that comfortably exceeds for any modulus a browser will ever hold. So generalised Euler applies to both, with the same reduced exponent, and
Taking gives the claim of layer 4, with where is the length of the Carmichael chain of .
Two remarks about that argument, since both are places it could have gone wrong.
Why the cannot be dropped. The sequence modulo is eventually periodic with period dividing , but when shares a factor with it is not periodic from the start. Take and : the powers are , so 2 itself never returns. Reducing an exponent to could land on , which the periodic part never visits again, and the answer would be wrong while looking entirely reasonable. Adding back moves the exponent into the periodic part before the period is used. Three and a power of ten are coprime, so the top of this particular recursion would survive without it, but the chain descends onto moduli where it would not, and an argument that is accidentally correct is not an argument.
Why the hypothesis cannot be dropped. It is what guarantees the exponent is already past that non-periodic beginning, whose length is below for every . Here the smallest exponent the step is ever applied to is , thirteen digits long, and the largest modulus is , whose logarithm base two is under 67. The kernel checks this inequality rather than assuming it.
The digits. With the Carmichael chain has twelve links, so residues are constant from height 15 upwards, and a direct check finds them constant from height 11. Graham's number is , a tower of threes whose height is not writable and is certainly above 11. Computing by the recursion gives 2464195387.
The size. . The last expression is a tower of threes of height , far above 5. To bound the digit count explicitly, write for a tower of four threes. Since , we have , and hence . For a tower of five threes,
Its decimal digit count, , is therefore larger still. That exceeds .
For scale, assuming a spherical radius of metres and a Planck length of metres gives Planck volumes, below that illustrative allowance. The Planck length comes from CODATA; the radius is an assumption for the comparison. Neither assumption makes these volumes actual memory cells.
What is not proved here. Anything about the Ramsey problem. Any digit of other than the last ten, including the first. The value of for , which is checked over a finite range and not derived.
Limits and frontier
Where this page stops being able to help
What this laboratory computes. Up-arrow expressions exactly while the answer has at most a hundred thousand decimal digits, which in practice means 3 ↑ 3 and 3 ↑↑ 3 and nothing else; and the last one to twenty digits of a tower of threes, exactly, modulo the appropriate power of ten. Both are exact integer arithmetic with no approximation anywhere. The refusal at the third rung is a refusal, not a timeout: the size is estimated from logarithms before any work begins, and the work is never started.
Twenty digits, and why not more. Nothing about the method breaks at twenty. The Carmichael chain of 10¹⁰⁰ is still short, and a hundred digits would compute in the same instant. Twenty is where the figure stops being readable, which is a decision about the drawing rather than about the mathematics. What does break, and breaks immediately, is asking for all of them: the required tower height grows with the number of digits, and Graham's number has no finite decimal expansion within reach of any height a description could name.
The problem is still open. Graham's number entered mathematics as an upper bound for a question about colouring the edges of a hypercube, and that question has not been answered. The lower bound is 13. The best known upper bound is now enormously smaller than Graham's number itself, which means the famous number is no longer even the state of the art in the one role it was invented for. A reader who arrives believing the number is important because it is large should leave knowing that it is remembered because it was a bound, and that the bound has been beaten.
A caution about the attribution. The number now called Graham's number does not appear in Graham and Rothschild's 1971 paper. The bound published there is smaller and harder to state; the famous one was described by Graham to Martin Gardner and printed in 1977. Both are in the sources below, with bibliographic review notes distinguishing the original text from the publisher's record.
Read this next to the Collatz orbit atlas. There a browser can compute astonishingly far and settle nothing, because the question is about every number. Here a browser can compute almost nothing and settles a question exactly, because the question was narrowed to ten digits. The lesson is the same in both directions: what closes a question is the argument available, never the size of the computation.
What is actually established
Every statement on this page, with its status, its exact scope, and the date that status was last checked.
The last ten decimal digits of Graham’s number are 2464195387.
- Scope
- Exactly the final ten digits, in base ten. Nothing here says anything about the eleventh digit from the end, about the first digit, or about how many digits there are. Proved by the modular argument in layer 5 and recomputed from that argument in the test suite, using exact integer arithmetic only.
- Why
- Graham’s number is a tower of threes. The height of that tower cannot be written down, but the argument does not need it: taken modulo 10¹⁰, a tower of threes stops changing once it is eleven storeys tall, and Graham’s number is very much taller than eleven. The reason it stops is the generalised Euler theorem, which lets the exponent of a power be reduced modulo λ of the modulus provided λ is added back, and λ iterated on 10¹⁰ reaches 1 after twelve steps. So the recursion bottoms out, the answer is fixed, and it is 2464195387. This page computes that string rather than quoting it, and the test suite computes it a second time by an implementation that shares no code with the first.
- Computation (exact)
- Exact BigInt arithmetic throughout, modulo 10¹⁰. The recursion descends the Carmichael chain of 10¹⁰, which has twelve links, so the whole computation is a few dozen modular exponentiations. Recomputed in the test suite against an independent iterative implementation, and cross-checked at every height where a tower of threes is small enough to expand in full. Algorithm graham-1.
- Status checked
For each fixed d, the last d decimal digits of a tower of threes are the same for every tower above a certain height, and that height depends only on d.
- Scope
- Every d ≥ 1 and every tower of threes, over infinitely many heights. Proved in full in layer 5, by induction along the Carmichael chain of 10^d. This is the statement that turns a number nobody can write into a finite computation, and it is the reason the claim above is proved rather than observed.
- Why
- Write λ for the Carmichael function. The recursion computing a tower modulo m needs the storey below it only modulo λ(m), and λ(n) is strictly smaller than n for every n above 1, so the chain m, λ(m), λ(λ(m)), … reaches 1 after finitely many steps. Everything is congruent modulo 1, so at the bottom of the chain the height stops mattering, and climbing back up one link at a time carries that independence all the way to m. The one condition to watch is that the generalised Euler step requires an exponent at least log2 of the modulus, which every tower of four storeys or more clears with enormous room to spare.
- Status checked
For every d from 1 to 20, the last d digits of a tower of threes are settled from height d + 1 onwards, and not from any lower height.
- Scope
- Exactly the twenty values d = 1 to 20. Each was checked by computing the tower modulo 10^d at every height up to a bound proved sufficient by the claim above, so within that range this is complete. It is not a proof that the pattern continues past d = 20, and this page makes no claim that it does.
- Why
- The pattern that one extra digit costs exactly one extra storey is neat enough to be suspicious, and it is checked rather than argued. The bound each check runs to comes from the Carmichael chain of 10^d rather than from a guess, so a run that finds no further change really has covered every height where a change could occur. What the general theorem gives is stabilisation at some height; that the height happens to be d + 1 over this range is a computation.
- Computation (exact)
- Every d from 1 to 20, each checked at every height from 0 up to the length of the Carmichael chain of 10^d plus three, using exact BigInt arithmetic. The longest chain is twenty-two links. Recomputed in the test suite. Algorithm graham-1.
- Status checked
3 ↑↑↑ 3 is a tower of threes 7,625,597,484,987 storeys tall.
- Scope
- A consequence of the definition of the notation and one exact multiplication. This page does not evaluate the tower, its digit count or its last digits at this height; what it prints is the height, not the number.
- Why
- Three arrows unfold one level at a time: 3 ↑↑↑ 3 is 3 ↑↑ (3 ↑↑↑ 2), and 3 ↑↑↑ 2 is 3 ↑↑ 3, which is 3 ↑ 27 = 7,625,597,484,987. A two-arrow expression 3 ↑↑ h is a tower of h threes, so 3 ↑↑↑ 3 is a tower of 7,625,597,484,987 threes. The 7.6 trillion is computed exactly on the second rung of the arrows view.
- Status checked
3 ↑↑↑↑ 3 = 3 ↑↑↑ (3 ↑↑↑ 3): its second argument is the value this page refuses to evaluate at three arrows.
- Scope
- A consequence of the definition of the notation. This page does not evaluate 3 ↑↑↑↑ 3, estimate its size or count its digits; it states only how it is built from the three-arrow case.
- Why
- Four arrows unfold one level at a time, as three did: 3 ↑↑↑↑ 3 is 3 ↑↑↑ (3 ↑↑↑↑ 2), and 3 ↑↑↑↑ 2 is 3 ↑↑↑ 3. So the second argument of the outer three-arrow expression is 3 ↑↑↑ 3, a tower of 7,625,597,484,987 threes, and that is why the usual description by a count of questions has nothing to count with.
- Status checked
Graham’s number has more than 10^(3.6 × 10¹²) decimal digits, exceeding even an illustrative allowance of 10^186 storage cells.
- Scope
- The digit-count lower bound is mathematical. For an illustrative scale comparison, assume a sphere of radius 4.4 × 10²⁶ metres and use the CODATA Planck length of about 1.616255 × 10⁻³⁵ metres. Its volume divided by the cube of that length is about 8.45 × 10¹⁸⁴, below the generous allowance of 10^186. This is not a proof of a physical information limit.
- Why
- Graham’s number exceeds a tower of five threes, whose decimal expansion already needs more than 10^(3.6 × 10¹²) digits. Even allowing one digit per hypothetical cell in the comparison cannot accommodate the expansion. A Planck volume is not an established minimum memory cell, so the arithmetic should not be read as a theorem about every possible physical recording method.
- Status checked
The answer to the Ramsey problem Graham’s number came from is known to be at least 13, and its exact value is not known.
- Scope
- The smallest dimension n for which every two-colouring of the edges of the n-dimensional hypercube graph contains a single-coloured complete subgraph on four coplanar vertices. The lower bound of 13 and the best current upper bound are both cited, and neither is computed anywhere on this page. Graham’s number is an upper bound for it, and a very generous one: the best known bound is now far smaller.
- Why
- This is the part of the story most retellings quietly drop. Graham’s number is famous as a bound, and the thing it bounds is still open: the answer is somewhere from 13 upwards, and the gap between the lower bound and the best upper bound is one of the widest in mathematics. Nothing on this page searches colourings, tests hypercubes or contributes to either bound. The number is interesting here as an object of arithmetic, and the problem it came from is cited so that a reader does not leave with the impression that computing ten of its digits settled anything about it.
- Status checked
Sources
Review notes show which bibliographic details Mathomaly has checked and which remain unresolved. Checking a publication record does not independently verify its proof.
- Ronald L. Graham, Bruce L. Rothschild, Ramsey’s Theorem for n-Parameter Sets, Transactions of the American Mathematical Society 159, pp. 257–292, 1971. Link
The paper the problem comes from, and the source of the first explicit upper bound for it. The bound printed there is not the number now called Graham’s number: that one is larger, simpler to state, and was described by Graham to Martin Gardner some years later. Cited for the problem and for the existence of a finite bound, not for the number itself.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Author archive provides original paper; journal volume 159 (1971), pages 257–292.
- Martin Gardner, Mathematical Games: In which joining sets of points by lines leads into diverse (and diverting) paths, Scientific American, volume 237, number 5, 1977. Link
Where the number this page is about was first printed, and where its reputation as the largest number ever used in a serious proof began. Cited for the definition of g₁ through g₆₄ that the ladder view draws.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: publisher record.
Publisher confirms Gardner, November 1977, volume 237(5), starting page 18.
- Geoffrey Exoo, A Euclidean Ramsey Problem, Discrete & Computational Geometry 29(2), pp. 223–227, 2003. Link
A computer-assisted lower bound for the same problem, raising it from 6 to 11. Cited for the lower-bound half of the open claim. This page reproduces none of that computation.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: library record.
Bibliographic record confirms author, title, 2003, volume 29(2), pages 223–227 and DOI.
- Mikhail Lavrov, Mitchell Lee, John Mackey, Graham’s Number Is Less Than 2 ↑↑↑ 6, arXiv:1304.6910, 2013. Link
Improves the upper bound for the Ramsey problem. Its historical discussion credits the lower bound of 13 to Jerome Barkley, not to the authors of this paper.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: author record.
Verified the 2013 author preprint. Removed the unconfirmed 2014 journal attribution; section 1.2 credits the lower bound 13 to Barkley.
- 2022 CODATA recommended values: Planck length, National Institute of Standards and Technology. Link
The table gives a Planck length of about 1.616255 × 10⁻³⁵ metres. The page's volume comparison uses an explicitly assumed radius, not a cosmological measurement verified by this citation. A Planck volume is not an established physical memory cell.
Bibliographic record checked. This is not an independent verification of the proof.
Bibliographic review:
AI-assisted bibliographic audit. Evidence type: source text.
Checked the Planck-length entry in the complete CODATA table. Removed the unsupported combined cosmology citation and corrected the illustrative volume arithmetic.
Related by mechanism
Connected by how they work, not by sharing a topic label.