Solve the following non-homogeneous recurrenece relation:
$a_1 = 0, a_2= 0, a_3=1$, and $a_n = a_{n-1}+a_{n-2} + 1$
This somehow seems familiar with the Fibonacci sequence, since $a_4$ will be $2$, $a_5$ will be $4$, and so on. But how does one "solve" such task?
Thanks!
You can prove that $U_n=a_n+1$ verify: $$U_n=U_{n-1}+U_{n-2} $$
and $U_1=U_2=1$ so $U_n=F_n$ and $a_n=F_n-1$