I'm given the following recursive formula:
$a_n =\sum_{i=0}^{n-2} a_i \\a_1 = 1 , \; a_0 = 1 $
I noticed that $\;a_2 = 1$ as well , and for any $n>3 : \, a_n - a_{n-1} =\sum_{i=0}^{n-2} a_i \; - \sum_{i=0}^{n-3} a_i = a_{n-2} $
so this seems close to Fibonacci numbers for any $n\;\;$ that's greater than 3. however , when I attempt substituting $a_n \; $ for $\; x^n$ , I get the familiar solutions :
$ \; x_1 = \frac{1+\sqrt5}{2} \; x_2 = \frac{1-\sqrt5}{2}\\$
so I'm looking for a solution of the form $a_n = c_1(\frac{1+\sqrt5}{2})^n+c_2(\frac{1-\sqrt5}{2})^n$
and applying boundary values I get : $c_1+c_2 = 1 \\ c_1-c_2 = \frac{1}{\sqrt5}\\ c_2-c_1 = \frac{1}{\sqrt5}$
which is obviously wrong, needless to say the Fibonacci formula doesn't work for $n>3 $. Could anyone tell me what is wrong with my solution? and maybe propose a different solution/ approach / hint?
thanks ahead.
Hint:
$$a_n = \sum_{i=0}^{n-2} a_i = a_{n-2} + \sum_{i=0}^{n-3}a_i = a_{n-2} + a_{n-1}$$
which means that yes, you should be getting something very similar to the Fibonacci formula. However, the equation
$$a_n=a_{n-2} + a_{n-1}$$ is only true for $n\geq 3$ and is not true for $n=2$.