I've been stuck on this recurrence closed form question for a while now:
$S(n)=9S(n-1)+4n, n > 1$
$S(1) = 4$
After expanding a couple iterations to find a pattern, I came up with this:
$4*9^{n-1}+4*(n*\sum_{k=0}^{n-2}9^k-\sum_{k=0}^{n-2}k*9^k)$
$=4*9^{n-1}+4*(n*\frac{9^{n-1}-1}{9-1}-\sum_{k=0}^{n-2}k*9^k)$
However, I can't seem to get further than than that in simplifying it in terms of n. Can anyone point me in the right direction or show me how best to simplify this recurrence?
$$S_n=9S_{n-1}+4 n$$ Let $S_n=T_n+k n$ and replace $$T_n+k n=9T_{n-1}+9k(n-1)+4n$$ I f we want to get rid of the $n$ $$kn=9k(n-1)+4n \implies k=-\frac 12$$ Now, the problem is simple.