See the Wikipedia page on the Ackermann function

import axle.math._

The computational complexity is enormous. Only for very small m and n can the function complete:

ackermann(1, 1)
// res0: Long = 3

ackermann(3, 3)
// res1: Long = 61