Given
$$G(q)=\cfrac{1}{1-q+\cfrac{q(1-q)^2}{1-q^3+\cfrac{q(1-q^2)^2}{1-q^5+\cfrac{q(1-q^3)^2}{1-q^7+\cfrac{q(1-q^4)^2}{1-q^9}}}}}=\exp(\sum_{n=2}^{\infty} (-1)^n\phi(n)\,q^n)$$
where $|q|\lt1$,and $\phi(n)$ represents the nth coefficients of the series.
Why is $\phi(n)$ integer only when $n$ is prime and non-integer when it is composite?
I made this simple observation using mathematica,a disproof (by providing a counterexample) is very much welcome.