First time here? Check out the FAQ!
answered 4 years ago
Did you forget return in the definition of g(k, n, z)?
return
g(k, n, z)