Suppose $L \subset \mathbb{C}$ is a splitting field for the polynomial $X^6+X^3+1$ over $\mathbb{Q}$. Determine $[L:\mathbb{Q}]$
I have several solutions for the problem. However I'm having trouble understanding one of them. It goes as follows:
We have shown that $z=\exp(2\pi i/9)$ is a root and all the roots are of the form $z^k$ where $k=1,2,4,5,7,8$. Suppose $f(X)$ is the minimum degree polynomial for $z$. Then there is a standardized polynomial $g(X)$ over $\mathbb{Q}$ s.t.
$$X^6+X^3+1=f(X)g(X)$$
(Now comes the part I have trouble understanding, this solution was provided by teacher): If $z^4$ where a root of $g(X)$ then $g(z^2)=0$ (why?). In mod 2 calculus we would then get that $g(z)^2=0$ and so $g(z)=0$ (mod 2), so $z$ is a root in both f and g mod 2 which implies that the polynomial has root of degree 2 or more contradicting that they are all distinguish.
For the first I don't really understand why $z^4$ of $g$ implies that so is $z^2$. Also does it hold that if $g(z^p)=0$ where p is a prime, then $g(z)^p=0$ mod p (I guess so). Finally, I don't really understand why it is sufficient just to assume that $g$ has the root $z^4$ or is my teacher just skipping the other cases, because the are almost identical to what he provided?