I have the following recurrence relation: $$a_n = 2a_{n-1} + 2^n; a_0 = 0$$ I used the characteristic equation method and some method I found online by calculating the $n+1$ th term and subtracting accordingly the equation with $a_{n+1}$ minus the equation with $a_{n}$: $$a_{n+1} = 2a_n + 2^{n+1} \\ a_{n+1} - 2a_n = 2a_n - 4a_{n-1} + 2^{n+1}- 2^{n+1} \\ a_{n+1} - 4a_n + 4a_{n-1} = 0$$ Using $x^n$ as a solution: $$x^{n-2}(x^2 - 4x+4) = 0$$ I obtained the multiple solution $x= 2$. So we have that: $$a_n = 2^n A_1 + n 2^n A_2$$
How do I finish?