I have the recursion $A(n) = A(n-1) + n^2 - n$ with initial conditions $A(0) = 1$. I attempted to solve it using generating functions and I'm not quite sure I have it right, so I thought I might ask if anyone could take a look at my method so far.
First I set up $A(x) = \sum(a(n)x^n)$ and plugged in the definition of $A(n)$ to get $\sum(A(n-1) + n^2 - n)x^n)$ so that $n^2$ and $n$ could be reduced to their closed forms.
I'm not sure how I should handle the $A(n-1)$ term though without iterating further (perhaps I should?) and I'm starting to wonder if there was a way to produce a generating function for $A(n) - A(n-1)$ so that I could substitute for $n^2 - n$ directly. Does anyone have any suggestions?