I'm quite stuck on how to solve recurrence/difference equations.
For example I have the following linear inhomogeneous equation: $a_n = 2a_{n-1} + 2^n n$, and $a_0 = 1/2$
I know that $2a_{n-1} = 1/2(2^n)$, and then we have $a_n = 1/2(2^n) + n(2^n)$. This is where I'm stuck though and the inhomogeneous part is throwing me off.
Am I in the right direction thinking that: $a_n = \frac12 \prod 2^n n$ ?
No answers please but some nudges in the right direction would be greatly appreciated. Thanks!