ArticleslgStudy

mathematics

Graham's number

Graham's number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Graham's number rather than just read about it. In short: Graham's number is an 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 introduced as effective bounds in mathematics, such as Skewes's bound, which in turn is much larger than a googolplex.

Graham's number — main illustration
Graham's number — illustration

Key takeaways

  • Graham's number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Graham's number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Graham's number from memory before moving on to harder problems.

Reference excerpt

Graham's number is an 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 introduced as effective bounds in mathematics, such as Skewes's bound, which in turn is much larger than a googolplex. Graham's number is so large that the observable universe is far too small to contain its ordinary digital representation, assuming that each digit occupies one Planck volume. But even the number of digits in this digital representation of Graham's number would itself be a number so large that its digital representation cannot be represented in the observable universe. Nor even can the number of digits of that number—and so forth, for a number of times far exceeding the total number of Planck volumes in the observable universe. Thus, Graham's number cannot be expressed even by physical universe-scale power towers of the form abc⋅⋅⋅, even though Graham's number is indeed a power of three. However, Graham's number can be explicitly given by computable recursive formulas using Knuth's up-arrow notation or equivalent, as was done by Ronald Graham, the number's namesake. As there is a recursive formula to define it, it is much smaller than typical busy beaver numbers, the sequence of which grows faster than any computable sequence. Though too large to ever be computed in full, the sequence of digits of Graham's number can be computed explicitly via simple algorithms; the last 10 digits of Graham's number are ...2464195387. Using Knuth's up-arrow notation, Graham's number is g64, where gn={3↑↑↑↑3,if n=1 and3↑gn−13,if n≥2. Graham's number was used by Graham in conversations with popular science writer Martin Gardner as a simplified explanation of the upper bounds of the problem he was working on. In 1977, Gardner described the number in Scientific American, introducing it to the general public. At the time of its introduction, it was the largest specific positive integer ever to have been used in a published mathematical proof. The number was described in the 1980 Guinness Book of World Records, adding to its popular interest. Other specific integers (such as TREE(3)) known to be far larger than Graham's number have since appeared in many serious mathematical proofs, for example in connection with Harvey Friedman's various finite forms of Kruskal's theorem. Additionally, smaller upper bounds on the Ramsey theory problem from which Graham's number was derived have since been proven to be valid.

Context

Graham's number is connected to the following problem in Ramsey theory:

Connect each pair of geometric vertices of an n-dimensional hypercube to obtain a complete graph on 2n vertices. Colour each of the edges of this graph either red or blue. What is the smallest value of n for which every such colouring contains at least one single-coloured complete subgraph on four coplanar vertices? In 1971, Graham and Rothschild proved the Graham–Rothschild theorem on the Ramsey theory of parameter words, a special case of which shows that this problem has a solution N*. They bounded the value of N* by 6 ≤ N* ≤ N, with N being a large but explicitly defined number N=F7(12)=F(F(F(F(F(F(F(12))))))), where F(n)=2↑n3 in Knuth's up-arrow notation; the number is between 4 → 2 → 8 → 2 and 2 → 3 → 9 → 2 in Conway chained arrow notation. This was reduced in 2014 via upper bounds on the Hales–Jewett number to N′=2↑↑(2↑↑(3+2↑↑8)), which contains three tetrations. In 2019 this was further improved to N″=(2↑↑5138)⋅((2↑↑5140)↑↑(2⋅2↑↑5137))≪2↑↑(2↑↑5138). The lower bound of 6 was later improved to 11 by Geoffrey Exoo in 2003, and to 13 by Jerome Barkley in 2008. Thus, the best known bounds for N* are 13 ≤ N* ≤ N''. Graham's number, G, is much larger than N: it is f64(4), where f(n)=3↑n3. This weaker upper bound for the problem, attributed to an unpublished work of Graham, was eventually published and named by Martin Gardner in Scientific American in November 1977.

Publication The number gained a degree of popular attention when Martin Gardner described it in the "Mathematical Games" section of Scientific American in November 1977, writing that Graham had recently established, in an unpublished proof, "a bound so vast that it holds the record for the largest number ever used in a serious mathematical proof." The 1980 Guinness Book of World Records repeated Gardner's claim, adding to the popular interest in this number. According to physicist John Baez, Graham invented the quantity now known as Graham's number in conversation with Gardner. While Graham was trying to explain a result in Ramsey theory which he had derived with his collaborator Bruce Lee Rothschild, Graham found that the said quantity was easier to explain than the actual number appearing in the proof. Because the number which Graham described to Gardner is larger than the number in the paper itself, both are valid upper bounds for the solution to the problem studied by Graham and Rothschild.

Definition Using Knuth's up-arrow notation, Graham's number G (as defined in Gardner's Scientific American article) is G=3↑↑⋯⋯⋯⋯⋯↑⏟33↑↑⋯⋯⋯⋯↑⏟3⋮⏟3↑↑⋯⋯↑⏟33↑↑↑↑3}64 layers where the number of arrows in each layer is specified by the value of the next layer below it; that is, G=g64, where g1=3↑↑↑↑3, gn=3↑gn−13, and where a superscript on an up-arrow indicates how many arrows there are. In other words, G is calculated in 64 steps: the first step is to calculate g1 with four up-arrows between 3s; the second step is to calculate g2 with g1 up-arrows between 3s; the third step is to calculate g3 with g2 up-arrows between 3s; and so on, until finally calculating G = g64 with g63 up-arrows between 3s. Equivalently, G=f64(4), where f(n)=3↑n3, and the superscript on f indicates an iteration of the function, e.g., f4(n)=f(f(f(f(n)))). Expressed in terms of the family of hyperoperations H0,H1,H2,⋯, the function f is the particular sequence f(n)=Hn+2(3,3), which is a version of the rapidly growing Ackermann function A(n, n). (In fact, f(n)>A(n,n) for all n.) The function f can also be expressed in Conway chained arrow notation as f(n)=3→3→n, and this notation also provides the following bounds on G: 3→3→64→2<G<3→3→65→2.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Graham's number

Start with the simplest possible case. Write down what Graham's number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Graham's number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Graham's number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Graham's number

In research
Graham's number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Graham's number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Graham's number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Integers, Large integers, Ramsey theory, so understanding it makes those chapters shorter.
In everyday life
Look for Graham's number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Graham's number” →

How to study Graham's number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Graham's number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Graham's number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Graham's number in simple terms?

Graham's number is an 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 introduced as effective bounds in mathematics, such as Skewes's bound, which in turn is much larger than a googolp…

Why does Graham's number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Graham's number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Graham's number.

Tags

  • Integers
  • Large integers
  • Ramsey theory

Keep exploring