Let $z$ be a complex number such that $z^5 = 1$ and $z \neq 1.$ Compute z+1z+z2+1z2.
We can solve, to get z = 0.951057 + 0.309017*i. Then z + 1/z + z^2 + 1/z^2 = -3.