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?
On
Another approach: difference equations.
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)$$