I came across when reading my solution that the expression $(1 + x + x^2 + x^3+ x^4+ x^5)^3$ simplifies to $(\frac{1-x^{6}}{1-x})^3$ using generating function. I'm not sure how they got this.
I know the following series.
$$\frac{1}{1-x}=(1+x+x^2 + x^3 + x^4 + ...)$$
$$\frac{1}{1-x^6}=(1+x^6+x^{12} + x^{18} + x^{24} + ...)$$
EDIT: Mistake in question.
No generating functions involved. Just multiply out
$$(1-x)(1+x+\cdots+x^5) = (1+x+\cdots+x^5)-x(1+x+\cdots+x^5)=1-x^6$$
noticing that you get a lot of cancelation of terms. Make sure you see this. It also works for any number in the place of 6, provided the sequence of $x$ terms go up to $x^{n-1}$.