How do I expand
$$\frac1{(1-x)(1-x^2)(1-x^5)}$$
I need to find the coefficent of $x^9$, but I also want to be able to derive the general form. The only method I could thing of was to expand the $3$ individual denominators into an infinite GP and then count the number of ways I can get $x^9$, but not only is that time consuming, I cannot get a general formula for it. Can you please help me?
We expand $\frac{1}{(1-x)(1-x^2)(1-x^5)}$ without using complex roots. This is somewhat cumbersome, but nevertheless feasible. We start with a partial fraction decomposition of $\frac{1}{(1-x)(1-x^2)}$ which has only real valued roots in the denominator.
Comment:
In (1) we do the partial fraction decomposition using an Ansatz with unknown constants $A,B$ and $C$.
In (2) we calculate the constants by multiplying out and comparing coefficients of equal powers of $x$ (or we ask Wolfram Alpha for support).
In (3) we expand the first and last expression using the geometric series expansion and use for the middle term the binomial series expansion $$\frac{1}{(1-x)^2}=\sum_{j=0}^\infty\binom{-2}{j}(-x)^j=\sum_{j=0}^\infty \binom{j+1}{j}x^j=\sum_{j=0}^\infty (j+1)x^j$$
In (4) we collect the terms with equal powers in $x$.
Comment:
In (5) we multiply the series using the Cauchy product.
In (6) we rearrange the series according to residue classes $\mathrm{mod} \ 5$. The first series with $x^{5n}$ corresponds to $j$-values being multiples of $5$: $j=0,5,10,\ldots$. The next series with $x^{5n+1}$ corresponds to $j=1,6,11,\ldots$, etc.
In (7) we use a slightly more compact notation and write the $5$ parts by summing up over $l=0,1,2,3,4$.
In (8) we do some simplifications using the formulas: $\sum_{j=0}^n c=(n+1)c$ and $\sum_{j=0}^n j=\frac{n(n+1)}{2}$. We also see that summing up $(-1)^j$ gives the sequence $1,0,1,0,1,\ldots$.
In (9) we finally collect corresponding terms.