I have this recurrence relation:
$$ R(1)=1, RE(1)=0, EE(1)=0$$
$$a(n)=R(n) + RE(n)$$
$$R(n)=EE(n-1)+RE(n-1),$$$$ RE(n)=R(n-1),$$$$ EE(n)=RE(n-1) $$
How do I get $a(15)$? What kind of method do I use?
I have this recurrence relation:
$$ R(1)=1, RE(1)=0, EE(1)=0$$
$$a(n)=R(n) + RE(n)$$
$$R(n)=EE(n-1)+RE(n-1),$$$$ RE(n)=R(n-1),$$$$ EE(n)=RE(n-1) $$
How do I get $a(15)$? What kind of method do I use?
Substitute $EE(n)$ from the last equation:
$$R(n)=RE(n-2)+RE(n-1).$$
Then substitute $RE(n)$:
$$R(n)=R(n-3)+RE(n-2) \ \ \ (1)$$
$$a(n)=R(n) + R(n-1) \ \ \ (2)$$
Now solve the recurrent equation ($1$) and then ($2$).