First time here? Check out the FAQ!
answered 2021-03-30 19:03:46 +0100
Did you forget return in the definition of g(k, n, z)?
return
g(k, n, z)