The generalisation that you're hinting at is known as Knuth's up-arrow notation [0].
There's a number known as Graham's number [1] which is defined in terms of up-arrow notation and was for a while the largest specific positive integer to have been used in a mathematical proof.