graham's number can be defined using the below lines, in which graham's number is g(64): f(a, 1, c) = a^c f(a, b, 1) = a f(a, b, c) = f(a, b-1, f(a, b, c-1)) g(0) = 4 g(n) = f(3, g(n-1), 3)