Let $f(x) = \frac1{(1-x)}$.
Define the function $f^r$ to be $f^r(x) = f(f(f(...f(f(x)))))$.
Find $f^{653}(56)$.
What I've done:
I started with r=1,2,3 and noticed the following pattern: $$f^r(x)= \left\{ \begin{array}{c} \frac1{1-x}, when \ r\equiv 1\pmod 3 \\ \frac{x-1}x, when \ r\equiv 2\pmod 3 \\ x, \ when \ r\equiv 0\pmod 3 \end{array} \right. $$
As $653\equiv 2\pmod 3$, $\\$ $f^{653}(56) = \frac{55}{56}$
BUT how can I prove that I'm right? By induction? I don't know what to do then, when I go from $r$ to $r+1$.
Could you please share with me your reasoning by solving this problem?
PS: This problem is from the book "How to think like a mathematician" by Kevin Houston.
The conclusion $f^3(x)=x$ $(=f^0(x))$ applies whatever $x$ is.
Use induction on $r$ to show that $f^{3r+s}(x)=f^s(x)$