It is the last period on a Friday, and the maths club at a school in Bhaktapur has a contest. The teacher writes three 9s on the board and puts down the chalk. “Write the biggest number you can with these three 9s. No signs: no +, no ×, no !. You may only put the digits side by side or raise one up as a power, the way 10² is written.”
Rina writes 999 at once. Sujan writes 99⁹ and says it is far bigger. Asha writes 9⁹⁹. Then Bibek, at the back, writes one 9, a small 9 above it, and another small 9 above that: a tower, . The class argues for the rest of the period. Which one wins, and by how much?
Guess first. Which is the biggest?
Pick an answer to see why.
Try it: is the tower always best?
Play with the digit before reading on.
- a.With three 9s, put the five in order from smallest to biggest. Where does come?
- b.Now try three 2s. Which wins? Why does the tower do so badly?
- c.Try three 3s. Who wins now, and by how much?
- d.From which digit on does the tower always win?
- e. and are made of the same three 9s. How many digits does each have?
So two things decide which number is biggest: the power matters far more than the number being raised, and a tower puts a power in the power. But the digits must be big enough to grow: with 2s and 3s the tower is still too short to take off.
Measuring a number you can’t write
Nobody has ever written out by hand. So how do we know it has 369,693,100 digits, and how can we compare it with another number we can’t write either?
Counting digits with logarithms
Every number of 1 or more sits between two powers of 10. A number from 1,000 to 9,999 is at least 10³ and less than 10⁴, and has 4 digits. So a number’s number of digits is one more than the whole-number part of the power of 10 it equals. That power is its logarithm, (to base 10): , , and 5,000 has 3 + 1 = 4 digits.
The logarithm of a power is easy, because raising to a power becomes multiplying: . With :
- , so 9⁹⁹ has 95 digits.
- , so 99⁹ has 18 digits.
- , so the tower has 369,693,100 digits. Here needs 11 decimal places, because it is multiplied by almost 40 crore: with 0.954243 the answer would come out about 190 too big.
The part after the point tells you how the number begins. , so the tower is about , written in standard form (scientific notation): a number from 1 to 10 times a power of 10. That one line says what 123,000 pages of digits would, at 3,000 digits a page.
Which is bigger, or ?
Pick an answer to see why.
When even the digits are too many: the log of the log
For a tower, even the logarithm is too big to write easily, so we take a logarithm again. The tower of four 3s, , is 3 raised to . Its logarithm is , so it has about 3.6 trillion digits (3,638,334,640,025 exactly). Printed at 3,000 digits a page on paper 0.1 mm thick, that is a stack about 120 km high. Add one more 3 at the bottom and the number of digits itself has 3.6 trillion digits.
That is why mathematicians who work with such numbers describe them by how many times you must take the logarithm to bring them down to an ordinary size. A googol, , needs it twice (100, then 2). needs it twice to reach about 8.6. Each extra level of a tower needs one more.
Archimedes counts the sand
Numbers this big were first written down for a reason that sounds like a joke. In the 3rd century BCE, the Greek mathematician Archimedes of Syracuse wrote a short book, The Sand Reckoner, to the king of Syracuse, Gelon. It begins (in Thomas Heath’s translation of 1897): “There are some, king Gelon, who think that the number of the sand is infinite in multitude.” Others, he says, think it is finite but bigger than any number that has a name. He set out to prove both wrong by counting the grains of sand it would take to fill the whole universe.
The Greeks’ biggest number with its own name was the myriad, 10,000. Archimedes built on it. A myriad myriads, , ends the first order of numbers. Then becomes the unit of the second order, which counts up to ; and so on, order after order, a myriad myriad orders of them, up to . All that is only the first period. He went on for a myriad myriad periods, to : a 1 followed by 80,000,000,000,000,000 zeros. Along the way he proved the rule you use for indices, that multiplying powers of 10 adds their powers.
How big is a googol?
A googol is more than anything you can count in the universe. The observable universe holds about atoms; filled solid with sand, it would hold about grains. So a googol is times the number of atoms, and a googolplex can’t even be written down: it has a googol + 1 digits, and there are not enough atoms to write them on, even one digit per atom.
A googolplex is . How many digits does it have?
Pick an answer to see why.
Towers, arrows and Graham’s number
Towers get tall quickly, and soon there is no room to draw them. In 1976 the computer scientist Donald Knuth gave them a short notation, up-arrows. One arrow is a power, . Two arrows are a tower: is a tower of four 3s.
Each new operation repeats the one before. Multiplying is repeated adding, 3 × 4 = 3 + 3 + 3 + 3; a power is repeated multiplying, ; a tower is repeated powering. Three arrows repeat towers: is , a tower of 3s that is 7,625,597,484,987 levels high. A tower of only five 3s already has a number of digits with 3.6 trillion digits of its own.
| Written | What it means | How big |
|---|---|---|
| 27 | ||
| 7.6 trillion | ||
| a tower of four 3s | 3.6 trillion digits | |
| a tower of 3s, 7.6 trillion high | past counting digits | |
| the first step to Graham’s number |
Which is ?
Pick an answer to see why.
The number in a proof
In 1971 Ronald Graham and Bruce Rothschild worked on a question about coloring. Take a cube in n dimensions (a square has 4 corners, a cube 8, a 4-dimensional cube 16, an n-dimensional one ). Join every pair of corners with a line, and color each line red or blue, any way you like. Is there always a set of four corners, lying flat in one plane, whose six lines are all one color? For small n you can color to avoid it; for big enough n you can’t. They proved that the smallest such n exists and gave a limit it can’t be above.
Graham explained a simpler, bigger limit to the writer Martin Gardner, who in 1977 called it the largest number ever used in a serious mathematical proof. Start with . Then g₂ is 3, then g₁ arrows, then 3. Then g₃ has g₂ arrows, and so on, 64 times: Graham’s number is . The answer to the coloring question is at least 13 (found by 2008), and since 2014 its limit has been brought down far below Graham’s number. So Graham’s number was a ceiling, and a very loose one.
The end of a number you can’t write
Graham’s number is far too big for its digits ever to be written, or even counted. And yet its last digits are known exactly: it ends …2464195387. How can anyone know how a number ends without being able to write it? Watch the end of a tower of 3s as it grows.
Each 3 added to the tower settles one more digit at the end. A tower of 13 threes ends …262464195387, and so does every taller tower of 3s, Graham’s number among them (it is one: its last step is 3 raised to an enormous tower of 3s).
Why the last digit is always 7
Look at the last digit of the powers of 3: 3, 9, 27, 81, 243, 729, 2,187, 6,561… The last digits go 3, 9, 7, 1, 3, 9, 7, 1: every fourth power the pattern starts again, because the last digit of a product depends only on the last digits multiplied, and ends in 1, so four more 3s multiply the last digit by something ending in 1, which leaves it as it was. So the last digit of depends only on the remainder when x is divided by 4: remainder 1 gives 3, 2 gives 9, 3 gives 7, 0 gives 1.
In a tower of 3s (two or more), x is itself a power of 3 with an odd power. What does an odd power of 3 leave when divided by 4? 3 = 4 − 1, so its powers alternate: 3 leaves 3, 9 leaves 1, 27 leaves 3, 81 leaves 1. An odd power always leaves 3. So the tower’s last digit is the third in the cycle: 7, every time, however tall.
The next digits follow from the same idea with bigger cycles: the last two digits of the powers of 3 repeat every 20 powers, the last three every 100, the last four every 500. Working down the tower one level at a time, each cycle a size the level below can be reduced to, a computer finds the last 500 digits of Graham’s number in moments. This is modular arithmetic, the arithmetic of remainders, and the rule that says how long each cycle can be is Euler’s theorem (Leonhard Euler, 1763).
The twist: is there a biggest number?
No. Whatever number anyone names, add 1. So “the biggest number” never has an answer, and “the biggest number anyone has used” keeps changing. Gardner’s record didn’t last: numbers far larger than Graham’s number have since appeared in serious proofs, among them TREE(3), which comes from a theorem about trees (the branching drawings, not the plants).
There are even numbers that are perfectly well defined and yet no computer program can work them all out. In 1962 Tibor Radó took the simplest kind of computer, a Turing machine, with n states (a state is like a numbered line of a program, with a rule for each symbol it reads), and asked: of all such machines that eventually stop, how long does the longest-running one run? These are the busy beaver numbers. For 5 states the answer is 47,176,870 steps, proved only in 2024 by an online collaboration, the Busy Beaver Challenge, many of them amateurs, with the proof checked by computer. For 6 states it is more than (as of 2026). Radó proved that the busy beaver numbers grow faster than anything any program can calculate, so no program can find them all.
And however big a number gets, it is still nowhere near infinity: and Graham’s number are just as far from it as 1 is. Infinity is not a very big number but a different kind of thing, with surprises of its own.
Where this is used
- Locks for computers. The AES cipher allows keys of 256 bits: possible keys. A supercomputer of 2019 checking keys a second would need about years to try them all. A code is safe by being a big number.
- Prime numbers. The largest prime known (as of October 2026) is , with 41,024,320 digits, found in October 2024 by the Great Internet Mersenne Prime Search on thousands of graphics processors. Its size is known from its logarithm, as in this topic.
- Games. Claude Shannon estimated in 1950 that there are at least possible games of chess (about choices for each pair of moves, over 40 pairs), more than the atoms in the universe, so no computer can play chess by checking every game.
- Primes and Skewes’s number. For small numbers, a famous estimate of how many primes there are below a number always comes out too high. In 1914 J. E. Littlewood proved it doesn’t stay that way, and in 1933 Stanley Skewes showed (assuming a famous unproved conjecture, the Riemann hypothesis) that the first exception comes before . It is now known to come before about , far smaller.
Questions
Write in standard form, to 3 significant figures where needed: a. 3,638,334,640,025; b. ; c. a googol divided by ; d. .
Hint
Answer
★ How many digits does have? ()
Pick an answer to see why.
With four 2s and no signs, only side by side or raised as powers (a tower read from the top), what is the biggest number you can write? About how many digits does it have?
Hint
Answer
Which is bigger, or ? About how many times?
Hint
Answer
Archimedes said is “10,000,000 units of the eighth order”. a. A unit of the second order is . What is a unit of the eighth order? b. Check his claim. c. In which order is a googol?
Hint
Answer
Prove that every tower of 3s with two or more 3s ends in 7.
Hint
Answer
A twist. Sujan says: “A googolplex is the biggest number with a name, because you can’t even write it down.” Give two reasons he is wrong.
Answer
Where to go next
- Why Is a Magnitude 8 Earthquake Not Just a Bit Bigger Than a 7? Logarithms and log scales, which this topic used to count digits.
- How Did a Book of Numbers Make Multiplying Easy? Napier’s logarithms and the slide rule.
- What Don’t Mathematicians Know About Prime Numbers? Where Skewes’s number came from, and the questions still open.
- Are Some Infinities Bigger Than Others? Past every number, to infinity, and the surprise that one infinity can be bigger than another.
- Grades 6–8: How Much Rice Is on the Chessboard?, How Long Is a Crore Seconds? (Nepal’s names for big numbers, and the prince who counted), Is There a Biggest Prime Number? and Is There Room at a Full Hotel with Endless Rooms?.
- Computing, Going Further: How Many Moves to Move 64 Disks? and How Does a Computer Play Chess?; and What Is the Biggest Number a Computer Can Count To? (Coming soon.)
- Grade 10, Indices.
Where these facts come from
- The Sand Reckoner: Thomas L. Heath, The Works of Archimedes (Cambridge, 1897, public domain), pp. 221–232, read in the Internet Archive’s copy (worksofarchimede00arch): the opening and closing sentences quoted, the orders and periods, and “10,000,000 units of the eighth order” for the grains in a sphere the size of Aristarchus’s sphere of the fixed stars, read October 2026.
- The myriad, orders and periods up to , the 10,000 grains a poppy seed, 40 seeds a finger-breadth (about 19 mm), a stadium rounded up to 10,000 finger-breadths, the universe under stadia, grains, the law of exponents, King Gelo II: Wikipedia, “The Sand Reckoner”, read October 2026.
- Googol: Milton Sirotta, nine, in 1920; Kasner and Newman’s Mathematics and the Imagination (1940); Google’s name; about particles in the observable universe, and about grains of sand to fill it: Wikipedia, “Googol”; “one, followed by writing zeroes until you get tired”, Kasner’s definition: Wikipedia, “Googolplex”, read October 2026.
- About atoms in the observable universe: Wikipedia, “Observable universe”, read October 2026.
- Knuth’s up-arrows (1976), , a tower of that many 3s, towers read from the top: Wikipedia, “Knuth’s up-arrow notation”, read October 2026.
- Graham’s number: the hypercube coloring problem, Graham and Rothschild (1971), Gardner (Scientific American, November 1977, “the largest number ever used in a serious mathematical proof”), to , the lower bound 13 (Barkley, 2008), upper bounds lowered in 2014 and 2019, its last digits …2464195387, and larger numbers such as TREE(3) in later proofs: Wikipedia, “Graham’s number”, read October 2026.
- The Lalitavistara’s , the Avatamsaka Sutra’s numbers by repeated exponentiation, the Surya Prajnapti’s enumerable, innumerable and infinite: Wikipedia, “History of large numbers”; the asaṃkhyeya as in Shikshananda’s translation, and the translations disagreeing: Wikipedia, “Asaṃkhyeya”; the sutra put together from older texts, probably in Central Asia, in the late third or the fourth century CE (Gimello, quoted there), Book 30 on the incalculable: Wikipedia, “Avatamsaka Sutra”, read October 2026.
- Busy beaver: Radó (1962), growing faster than any computable function, the 5-state machine’s 47,176,870 steps proved in 2024 by an online collective and checked in the Rocq (Coq) proof assistant, more than ones written by a 6-state machine as of 2026 (so its longest run is longer still): Wikipedia, “Busy beaver”, read October 2026.
- Skewes’s number: Littlewood (1914), Skewes (1933) under the Riemann hypothesis, below , a crossing proved below , so the first comes before it: Wikipedia, “Skewes’s number”, read October 2026.
- The largest known prime, , 41,024,320 digits, 12 October 2024, GIMPS, GPUs, still the record in October 2026: Wikipedia, “Largest known prime number”, read October 2026.
- AES’s 256-bit keys and years at keys a second: Wikipedia, “Brute-force attack”, read October 2026.
- Shannon’s 1950 estimate of chess games from choices a move pair over 40 pairs: Wikipedia, “Shannon number”, read October 2026.
- Euler’s theorem (1763), and exponents mattering only up to the cycle: Wikipedia, “Euler’s theorem”, read October 2026.
- Every number, digit count, last digit and answer on this page was computed by a script.
