I have this question
Let $n \ge 2$ be an integer. Prove that $$\sum_{k=0}^{n-1}\cos(\frac{2k\pi}{n}) = 0 = \sum_{k=0}^{n-1}\sin(\frac{2k\pi}{n})$$
I was given the hint to
Set $z = \cos(\frac{2\pi}{n}) + i\sin(\frac{2\pi}{n})$, so $z^n=1$. Now write this as $(z-1)(z^{n-1}+z^{n-2}+...+z^2+z+1)=0$ and go from there...
I get that $(z-1)(z^{n-1}+z^{n-2}+...+z^2+z+1)=0$ is just an expansion and rearrangement of $z^n=1$, but what I don't understand is, why set $z = \cos(\frac{2\pi}n) + i\sin(\frac{2\pi}{n})$ and how do we know that $z^n=1$