This is a really nice recursion I wanted to share.
We have to find the general formula for the nth term of the succession.
We have:
Also:
By subtracting the two expressions and simplifying we get:
Now, since we can further simplify to get the final form:
By solving the recursion’s equation we can find the nth term of the sequence.
Its solutions are .
Now by solving the following system we can find constants x and y such that .
We find
So the nth term equals
Or
And the problem is solved.