I have the following generating function:
$$A(x)=\prod\limits_{k=1}^{\infty}\frac{1-x^{6k}}{(1-x^{2k})(1-x^{3k})} $$
Among multiple of $2$, we will get a multiple of 6 whenever we take a multiple that is a multiple of 3: possible multiples: $3m, 3m+1, 3m+2$, where $3m$ cancels with the numerator.
So, we will have $1$ left in the numerator. What is left are factors in which the exponent is either $2\times(3m+1) $, $2\times(3m+2)$ or a multiple of $3$ ($3\times(2m+1), 3\times(3m+2)$).
Questions:
- Why $3m$ cancels with the numerator?
- Why what is left are factors in which the exponent is either $2\times(3m+1) $, $2\times(3m+2)$ or a multiple of $3$: $3\times(2m+1), 3\times(3m+2)$.
We obtain \begin{align*} \color{blue}{A(x)}&=\prod_{k=1}^\infty \frac{1-x^{6k}}{\left(1-x^{2k}\right)\left(1-x^{3k}\right)}\\ &=\prod_{k=1}^\infty \frac{1+x^{3k}}{1-x^{2k}}\tag{1}\\ &=\prod_{k=1}^\infty \frac{1-x^k+x^{2k}}{1-x^k}\tag{2}\\ &\,\,\color{blue}{=\prod_{k=1}^\infty \left(1+\frac{x^{2k}}{1-x^k}\right)}\tag{3} \end{align*}
Comment:
In (1) we cancel $1-x^{3k}$.
In (2) we cancel $1+x^k$.