Let $f\colon \mathbb N\times \mathbb Z \to \mathbb Z$ defined by
- $f(x,0)=x$ for all $x\in \mathbb N$
- $f(0,y)=2y$ for all $ y \in \mathbb Z$
- $x\gt0$ and $y\lt0$$\implies f(x,y)=2y$
- $x\gt0$ and $y\gt0$$\implies f(x,y)=f(x-1, f(x,y-1))$.
Compute $f(3,2)$.
I've restarted this problem several times and always seem to get an incredibly long series of steps that never seem to end. I start with
$f(3,2)=f(2,f(3,1))=f(2,f(2,f(3,0)))=f(2,f(2,3))=....$
and then it goes on for pages. There must be something I'm missing!