I'm solving a question where the recurrence relation I created is as follows:
$$\begin{cases}E_0=0\\E_1=2\\E_n = 2E_{n-1} + 2&\text{for }n>1\end{cases}$$
How can I create a closed form solution for this?
I'm solving a question where the recurrence relation I created is as follows:
$$\begin{cases}E_0=0\\E_1=2\\E_n = 2E_{n-1} + 2&\text{for }n>1\end{cases}$$
How can I create a closed form solution for this?
Write
$$E_n+2=2E_{n-1}+4=2(E_{n-1}+2).$$
As the terms are each time doubled, it should be obvious that the solution is
$$E_n+2=2^n(E_0+2)$$
$$E_n=2^{n+1}-2.$$
This is an arithmetico-geometric sequence and has the solution $$a_n=2(2^n-1)$$
Another approach: difference equations.