Thanks to Googology, I found a nice explanation of this.
Explain Rayo please
I will be using the outline of the comments to avoid plagiarizing, though you can read them as you please.
Let's start with a simple language, which I will call simple_arithmetic.
In simple_arithmetic, you can say numbers, and you can link them together using addition $+$, multiplication $\times$, and exponentiation $\wedge$ (each counts as one symbol). Parenthesis are also usable (each one symbol). We follow PEMDAS and a^b^c=a^(b^c)
.
Likewise, the only number we have to start out with is $1$. From there we can build any other number.
From the above, you will also note the only numbers constructable are natural numbers larger than or equal to $1$ (it counts as one symbol). This is our entire set of numbers, and there can be no other numbers in simple_arithmetic.
There are no variables, no functions, etc. A pretty basic language.
Now we can make $\operatorname{SA}(n)$, which equals the smallest number larger than any number nameable in $n$ symbols of simple_arithmetic. So, let's start finding a few values:
$\operatorname{SA}(0)=1$, since I can't name any numbers yet, and $1$ is the smallest number in my language.
$\operatorname{SA}(1)=2$, since the only number you can make with one symbol is $1$, and $2$ is the smallest number larger than $1$.
$\operatorname{SA}(2)=2$ still, since we don't have enough operations to do anything, such as $1+1$.
$\operatorname{SA}(3)=3$, since we can now make $2=1+1$.
$\operatorname{SA}(4)=3$, not enough symbols to do much...
$\operatorname{SA}(5)=4$, since we can now make $3=1+1+1$.
$\operatorname{SA}(6)=4$
As you can probably tell, this is rather cumbersome, but there is eventually a small-ish jump. For $n<7$, we have:
$\operatorname{SA}(2n-1)=n$
But then this pattern breaks.
$\operatorname{SA}(13)=9$, since $8=(1+1)\wedge(1+1+1)$
Indeed, one may note that for sufficiently large $n$, we have
$\operatorname{SA}(6n-1)\ge\underbrace{2^{2^{2^{\dots}}}}_n+1$, as it takes $6$ symbols to write $(1+1)\wedge$ and no $\wedge$ needed for the last exponent.
Rayo's function is all the same, except the language it uses is way stronger. Rayo's function is given by the smallest number larger than any number nameable in $n$ symbols of first order set theory, a language strong enough to allow variables, functions, recursion, etc. Likely put, you can define stuff in this language you'd probably have a hard time explaining in English, and the results... are some very large, almost unexplainably large, numbers.
$$=2(1045290142\dots192450642010)+1$$
$$=4(522645071\dots096225321005)+1$$
$$=20(1045290014\dots019245064201)+1$$
And so one, we factor. If we hit a prime, or a number we can't easily factor, subtract out a part like I did in the first step, then continue on. Eventually, you will hit a representation of the number using less than a googol of symbols. Or I could ask if that number is larger than $P(P(P(\dots P(A)\dots)))$ for some set $A$.
– Simply Beautiful Art Aug 13 '16 at 11:47