Proof (roots of unity)
Let $z = re^{i\theta}$. Then $$ z^n = r^n e^{in\theta} = 1 = e^{2\pi ik} $$ for any $k\in\mathbb Z$.
Therefore, $r=1$ and $\theta = 2\pi k/n$. Since $z = e^{2\pi ik/n}$ repeats after $k=n-1$, our solutions are $$ z = e^{2\pi ik/n}, \quad k=0,1,2,\ldots, n-1. $$