I was working on a problem and I stumbled upon this equality:
$a_{n+2} = a_{n+1} + a_{n}$
And I'm trying to find the general expression of the sequence $a$.
For this, I wanted to show that $a$ can just be expressed as the sum of two geometric sequence so that I can rewrite this equality using the general expression of geometric sequences:
Edit: $q {\neq} 0$
$a_0*q^{n+2} = a_0*q^{n+1} + a_0*q^{n}$
but I didn't manage to prove that.
Could someone help me please
Second-order linear relations with constant coefficients are very well-documented problems.
In your case, the equation can be rewritten : $$a_{n+2} - a_{n+1} - a_n = 0$$
You need to study the characteristic polynomial equation $P(X) = X^2 - X - 1 = 0$. This one has two roots: $\varphi = \frac{1 + \sqrt 5}{2}$ and $\bar \varphi = \frac{1 - \sqrt 5}{2}$. (Note that $\varphi$ is the “golden ratio”.) Then, all the solutions to your recurrence relation are the sequences of form: $$a_n = A \varphi^n + B \bar\varphi^n$$ with $A, B \in \mathbf R$.
The values of $A$ and $B$ depend on your initial conditions.