0

I have implemented Knuth up-arrow notation in Python:
from functools import lru_cache
@lru_cache
def kuan(a, b, arrows):
if arrows == 1:
return a ** b
res = a
for i in range(b):
res = kuan(a, res, arrows - 1)
return res
This can calculate kuan(3, 3, 1) pretty q...