I have this recurrence relation
$$h_{n} = h_{n-1} + 4n(n-1) \ \text{for} \ n \geq 1 \ \text{with} \ h_{0} = 0, h_{1} = 0$$
I am asked to find $h_{9}$.
I have attempted to solve this by generating functions and ended up with a closed form solution as:
$g(x) = \frac{4x}{(1-x)^3} - \frac{4x}{(1-x)^2}$
I feel like this is correct, though I'm not totally sure. I then rewrote these as infinite sums so I can find the coefficient of $x^n$ more easily:
$4x \Sigma^{\infty}_{n=0}\binom{n+2}{2}x^n - 4x\Sigma^{\infty}_{n=0}nx^n$
for every value of $n$ the coefficient is $+4$ more than the actual answer, I've looked at my working for a while but not sure how the answer is so close to the solution?
Thanks
I realised my mistake, it was in the second series, the coefficient of $x^n$ is $n+1$ not $n$!