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?
Since z^6 - 1 = (z^2 + 1)(z^4 - z^2 + 1), the answer is n = 6 .