Solve the recurrence relation $u_n = 2u_{n-1} + 2^n - 1$ where n is greater than or equal to 1 and $u_0=0$.
We have characteristic root equal to 2 with multiplicity 1. So homogeneous part will have solution $A.2^n$, where A is constant. The particular solution should be of the form $P.n.2^n + Q$, where P, Q are constants. Now when I put this in original recurrence I can't solve. Plz help.