Let $a(n+2) = -a(n+1) - a(n) - 1$ for all $n\geq 1$. In this case, is there a solution for a(n) and if so, what is it and how do you find it?
2026-04-07 01:47:43.1775526463
Is there a solution to this recurrence relation
64 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
It depends of course on $a(0),a(1)$. Suppose $a(0)=a$ and $a(1)=b$ then
$a(2) = -a-b-1$
$a(3) = -(-a-b-1)-b-1 = a+b+1-b-1 = a$
$a(4) = -a-(-a-b-1)-1 = b$
and then the sequence repeats $a(5)$ is again $-a-b-1$.
So we have
$$a(n) = \begin{cases} \displaystyle a & n\text{ mod } 3 = 0\\ b & n\text{ mod } 3 =1\\ -a-b-1 & n\text{ mod } 3 =2\\ \end{cases}$$
A formal proof is by induction on $n$.
Note that this solution makes sense because you can rewrite the equation as $a(n+2)+a(n+1)+a(n)=-1$