I have a closed form for a generating function:
$A(x)=\frac{x(x-1)(x+1)^3(x^3-x-1)}{(x^3+x^2-1)^2}$
The coefficient of $x^n$ in the above represents $a_n$ (the $n^{th}$ term of a sequence). I want a closed form for the sequence $a_n$. For example, the expansion done in:
http://www.wolframalpha.com/input/?i=x%5E2(1%2Bx%2B(x%5E2(x%2B1)%5E2)%2F(1-x%5E2-x%5E3))%2Bx*(1%2Bx%2B(x%5E2*(x%2B1)%5E2)%2F(1-x%5E2-x%5E3))(x%5E2%2Bx%5E2(1%2Bx%2B(x%5E2*(x%2B1)%5E2)%2F(1-x%5E2-x%5E3)))%2Bx%2B(x%5E2%2Bx%5E2*(1%2Bx%2B(x%5E2*(x%2B1)%5E2)%2F(1-x%5E2-x%5E3)))
shows the first few coefficients: $x+3x^2+4x^3+5x^4+8x^5+O(x^6)$. But I want a closed form for the general $n^{th}$ term $a_n$. What method should I use to get it?
Convert $A(x)$ to partial fractions: if $r_1,r_2,r_3$ are the roots of $x^3+x^2-1$ (which is irreducible over the rationals):
$$ A(x) = {x}^{2}-2+\sum _{j=1}^3{\frac {-{r_j}^{2}+2\,r_j+2}{23\; \left( x-r_j \right) ^ {2}}}+\sum _{j=1}^3 \frac{-75\; r_j^2-370\; r_j + 78}{529\;(x-r_j)} $$ and then use the Maclaurin series for $1/(x-r_j)$ and $1/(x-r_j)^2$.