(a): What is the smallest positive integer $n$ such that all the roots of $z^4 + z^2 + 1 = 0$ are $n^{\text{th}}$ roots of unity?
(b) What is the smallest positive integer $n$ such that all the roots of $z^4 - z^2 + 1 = 0$ are $n^{\text{th}}$ roots of unity?
I am trying to incorporate the roots of unity in here, but I am having trouble so far. I know that the 2nd roots of unity are inside the fourth units of unity, and I am stuck there. Any help is appreciated.
1) Roots of $p(z)=z^2+z+1$ are $\{j, j^2\}\subset \:3^{th}$ roots of the unity $(z^2+z+1= z^3-1/z-1)$. The roots of $z^4+z^2+1=p(z^2)$ are square roots of the roots of $z^2+z+1$. Thefore $n=6$.
2) $z^4-z^2+1=p(iz^2)$. I let u guess n.