I was messing with some recursive functions and realized it was equivalent to the Fibonacci sequence, but I couldn't figure out why. I then played a little further, and discovered some other interesting patterns. Let's consider functions $A,B$. Let $A(1) = 0$, $B(1) = 1$, $A(n) = B(n-1)$, $B(n) = A(n-1) + B(n-1)$. Then, $B(n) = B(n-2) + B(n-1)$, which causes $A(n) = A(n-1) + A(n-2)$. Of course, now both $A$ and $B$ are the Fibonacci sequence.
I was trying to figure out how this happened precisely, so I went back along the chain. I then discovered $B(n) = 2B(n-2) + B(n-3) = 2B(n-1) - B(n-3)$ and several other similar relations. What causes these relations to happen? Is there a general method of manipulating functions to get equalities?
B(n)=A(n−1)+B(n−1)
Since $A(n-1)=B(n-2)$ this gives $B(n)=B(n-1)+B(n-2),$. Then if you replace $B(n-1)=B(n-2)+B(n-3),$ you get $B(n) = 2B(n-2) + B(n-3)$ etc. – dxiv Sep 12 '17 at 22:53