The functions f : N → N and g : N^2 → N are recursively defined as follows:
f(0) = 1
f(n) = g(f(n − 1), 2n) if n ≥ 1
g(0, n) = 0 if n ≥ 0
g(m, n) = g(m − 1, n) + n if m ≥ 1 and n ≥ 0.
After a proof by induction on $m$, the recurrence for $g$ is supposed to be proven to be $g(m, n) = mn$
I am not sure where to get the assumption that $g(m, n) = mn$ based off of the above information.
We have $g(m,n) =mn,$ thus $f(n) =g(f(n-1) , 2n) =2nf(n-1)$ hence $f(n) =2^n n!.$