The functions $f:\mathbb{N} \to \mathbb{N}$ and $g:\mathbb{N} \to > \mathbb{N}$ are recursively defined as follows: $$ \begin{array}{lcll} f(0) &= & 1, & \\ f(n) &= & g(n, f(n-1)) & \mbox{if } n \ge 1, \\ g(m,0) &= & 0 & \mbox{if } m \ge 0, \\ g(m,n) &= & m + g(m, n-1) & \mbox{if } m\ge 0 \mbox{ and } n \ge 1 . \end{array} $$ Solve these recurrences for $f$, i.e. express $f(n)$ in terms of $n$. Justify your answer.
Not sure how to go about solving a recurrence for f using the following recursive functions?
Hint: Start figuring out $g$, then replace the $g$ in the definition of $f$.