$$\text{The } n\text{th roots of unity are } \omega_k = e^{2\pi i k/n}\ (k = 0, 1, \dots, n-1),\quad \sum_{k=0}^{n-1}\omega_k = 0\ (n \ge 2).$$
The solutions of $z^n = 1$ are $n$ equally spaced points on the unit circle, and (for $n \ge 2$) they sum to zero — a fact that filters periodic sums and factors polynomials.