One of the most famous big numbers in mathematics is Graham's number. For a while it was the largest number ever used in a legit mathematical proof. That isn't the case anymore but it is still a legend. The number is the upper bound to a problem in Ramsey's theory. To define this number it is recommended that you understand Knuth up arrow notation which I previously wrote about here.

If you were to try to memorize each digit of Graham's number, your head would sooner turn into a blackhole before you were done. This happens because a blackhole the size of your head stores less information than what it would take to store all of the digits of Graham's number.

#### How do we define Graham's number?

We will use Knuth's up arrow notation to define Graham's number. It is just too big to use ordinary ones and zeros. We will use iterations of hyperoperations to build levels which will continue until we arrive at the final number[1]. If you follow along you'll get a glimpse of how infinitely large this number is.

To build Graham's number we start at level 1:

$$G1 = 3\uparrow\uparrow\uparrow\uparrow 3$$

G1 is leveraging hyperoperation to generate a massive sequence of numbers. G1 has four up arrows which we call hexation. To give you a sense for how big this number is we can look at the sequence that builds to hexation.

###### Exponentiation $$3\uparrow3$$

No big deal.

$$3\uparrow3 = 3^3 = 27$$

Next up is tetration. This is where things start to get interesting.

###### Tetration $$3\uparrow\uparrow3$$

Tetration is a power tower of of exponents. It looks like this: $$3^{3^3}$$. If we expand it:

$$3\uparrow\uparrow3 = 3\uparrow3\uparrow3 = 3^{3^3} = 7,625,597,484,987$$

Now we are getting a really big number. Next up is pentation:

###### Pentation $$3\uparrow\uparrow\uparrow3$$

Pentation is iterated tetration. It is a series of power towers. Expanded it looks like this:

$$3\uparrow\uparrow\uparrow3 = \begin{array}{l} \underbrace{3^{3^{3^{⋰^3}}}} \\ \underbrace{3^{3^3}} \\ 3^3 \end{array} \Biggr\rbrace_{} pentation$$

Starting at the bottom each level of the power tower is multiplied out and then becomes the height of the next level. So with pentation what we've got is a massive tower:

$$3\uparrow\uparrow\uparrow3 = 3\uparrow\uparrow3\uparrow\uparrow3 = 3\uparrow\uparrow(7,625,597,484,987)$$

\left.\begin{aligned} 3^{3^{3^{3^{⋰^{3}}}}} \end{aligned}\right\} \text{ height = 7,625,597,484,987}

Just take a moment and think about how big this number is. We've already reached a number so big that we can't ever write it down because there isn't enough matter in the Universe. (There is only $$10^{80}$$ particles and this number is way bigger. If you were to simply count out loud each 3 in the stack it would take you tens of thousands of years to get through it. Wow.

If we add another arrow we get hexation. As you can imagine from what we saw with three arrows, this is an insanely powerful hyperoperation.

###### Hexation $$3\uparrow\uparrow\uparrow\uparrow 3$$

Hexation is an iterated series of pentation operations. The product of the first pentation tower determines how many towers need to be computed for the second. This keeps going until we have this massive number:

$$3\uparrow\uparrow\uparrow\uparrow3 = 3\uparrow\uparrow\uparrow3\uparrow\uparrow\uparrow3 = 3\uparrow\uparrow\uparrow(3\uparrow\uparrow(7,625,597,484,987))$$

which would look something like this:

$$\underbrace{ \Biggr\{3^3\Biggr\}L1 \rightarrow \Biggr\{3^{3^3}\Biggr\}L2 \rightarrow \Biggr\{3^{3^{3^{3^{⋰^{3}}}}}\Biggr\}L3 \rightarrow ... \Biggr\{3^{3^{3^{3^{⋰^{3}}}}}\Biggr\}}_{\text{7,625,597,484,987 power towers}}$$

The result of L1 determines the height of L2. The result of L2 determines the height of L3, etc.. This continues all the way up to L7625597484987. At this point you an insane power tower.

This is also G1.

$$G1 = 3\uparrow\uparrow\uparrow\uparrow 3$$

Now that we have G1 we will use it to define the number of up arrows for G2. So the definition of G2 would look like this:

$$G2 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G1 \text{ up arrows}}$$

Remember that each up arrow we tack on creates a very large increase in the number. You can visualize it like this:

Another up arrow would look like this:

And another would look like this:

Think about that for a second. G1 is a monster of a number. HUGE. To build G2 we input G1 as the number of up arrows. That makes G2 infinitely bigger. But Graham's number still a long way off. Let's create G3:

$$G3 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G2 \text{ up arrows}}$$

Given that G2 is already a huge monster, now that becomes the input for G3.

This keeps going:

$$G4 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G3 \text{ up arrows}}$$

$$G5 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G4 \text{ up arrows}}$$

$$G6 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G5 \text{ up arrows}}$$

$$G7 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G6 \text{ up arrows}}$$

... for a while until we finally get to Graham's number which is:

$$G64 = \underbrace{3\uparrow\uparrow ... \uparrow\uparrow 3}_{G63 \text{ up arrows}}$$

That should give you a little taste for how big Graham's number is.

If you plotted Graham's number on the fast growing hierarchy you would see that it sits somewhere around here:

$$\text{Graham's Number} < f_{\omega+1}(64)$$

Wow.

There are some good videos on YouTube covering Graham's number. In particular, I love the Videophile segment:

#### Ramsey Theory

Graham's number is the upper bound to a problem in Ramsey Theory that asks:

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 Ronald Graham and Bruce Less Rothschild proved that this problem has a solution with an upper bound equal to Graham's number. In 2014 the upper bound was proven to be lower:

$$2\uparrow\uparrow\uparrow 6$$

Still a big number but nowhere near as big as Graham's.

In 1980 the Guinness Book of World Records added Graham's number as the largest number ever used in a serious mathematical proof.

Graham's number is a power tower of the form $$3\uparrow\uparrow n$$, so its right most decimals must satisfy certain properties. One of these properties is that all towers of a height greater than d have the same sequence of d rightmost decimal digits.