Show that $\sum_{j=0}^{n-1}z_j^k=\begin{cases} 0, & \text{if $1\leq k \leq n-1$ } \\ n, & \text{if $k=n$ } \end{cases}$, where $z_0,...,z_{n-1}$ are the $n$-th roots of unity.
For $k=n$ it is trivial as all the numbers will be $1$. Hence we get $1+\cdots +1$ ($n$ times). But is there any quick process for the rest?
If $z_0$ is a primitve $n$-th root of unity, then $1, z_0^2,\ldots z_0^{n-1}$ are the remaining roots of unity.
So,
$$\sum_{j=0}^{n-1}z_j^k=\sum_{j=0}^{n-1}z_0^{kj}.$$
If $k=n$ this sum becomes $$\sum_{j=0}^{n-1}1=n.$$
If $1\le k\le n$, then $z_0^k$ is an $n$-th root of unity, and so the sum vanishes as in Olivier Ochoa's answer.