I'm attempting to solve the recurrence relation
$ T(n)=4T(n-1)+n+1, T(0)=1 $
From here I say
$ T(n-1) = 4(4T(n-2)+n)+n+1 = 4^2T(n-2)+4n+n+1 $
$ = 4^2(4T(n-3)+n-1)+4n+n+1 = 4^3T(n-3)+(4^2+4+1)n-4^2+1 $
At this point, I understand most of the pattern. I see this as
$ 4^n + (4^n + ... + 4^1 + 4^0)n + something $
I don't know how to generalize the last part. I also don't know where to go with the coefficient of $n$. Can anyone help?