Let $x$ and $y$ be integers where
$$f(x,y)= \begin{cases} 5 & x< y \\ f(x-y,y+2)+1 & x\ge y \\ \end{cases}$$
Express the following relations in their simplest forms.
a. $f(2, 7)$
b. $f(5, 3)$
c. $f(15, 2)$
I have the following answers so far:
a. $f(2,7) = 5$
b. $f(5,3) = f(2,5) + 1 $
c. $f(15,2) = f(13,5) + 1$
I've been trying to teach myself this stuff off the internet and struggling to really get a grasp of it. If anyone could show me where I have gone wrong or offer an explanation/breakdown it would be truly appreciated.
You just haven't gone far enough. $f(5,3)=f(2,5)+1$, but $f(2,5)=5$ so $f(5,3)=6$. For c you will need several steps to get an answer.