← Complete problem index

PROJECT EULER · #0282

The Ackermann Function

Statement only · UnsolvedOriginal problem ↗

For non-negative integers m, n, the Ackermann function A(m,n) is defined as follows: A(m,n)={n+1 if m=0A(m1,1) if m>0 and n=0A(m1,A(m,n1)) if m>0 and n>0

For example A(1,0)=2, A(2,2)=7 and A(3,4)=125.

Find n=06A(n,n) and give your answer mod 148.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.