$$\frac{1}{n}\sum_{j=0}^{n-1} f\!\left(\omega^j\right) = \sum_{k \equiv 0 \ (\mathrm{mod}\ n)} a_k, \qquad \omega = e^{2\pi i/n}, \ f(x)=\sum_k a_k x^k.$$
Averaging a polynomial (or series) over the $n$-th roots of unity keeps exactly the coefficients whose index is a multiple of $n$ and cancels all the rest — letting you sum every $n$-th term.