Just to give some background, I am attempting to solve part (b) of this Fourier matrix - multiplicity of eigenvalues? problem from Artin's Algebra textbook. If I can prove the following lemma, I should be able to finish my work.
Lemma: Let $m$ and $n$ be positive integers such that n does not divide m. Then $\sum_{l=0}^{n-1} cos(2πml/n) = 0$
I was able to prove this for even n. I was also able to prove it for the special case n=3, but I am stumped on how to prove the general case. Please help me!
Observe the angle-sum identities \begin{align*} \sin(lx + \frac 12 x) &= \sin lx \cos \frac x2 + \cos lx \sin \frac x2 \\ \sin(lx - \frac 12 x) &= \sin lx \cos \frac x2 - \cos lx \sin \frac x2 \end{align*} lead to $$ \cos lx \sin \frac x2 = \frac 12 \left[ \sin(lx + \frac 12 x) - \sin(lx - \frac 12 x) \right].$$ You can sum both sides from $l=0$ to $l=n-1$ and use the telescoping nature of the sum to obtain $$ \sum_{l=0}^{n-1} \cos lx \sin \frac x2 = \frac 12 \sum_{l=0}^{n-1} \left[ \sin(lx + \frac 12 x) - \sin(lx - \frac 12 x) \right] = \frac 12 \left[ \sin (n-\frac 12) x - \sin( -\frac 12 x) \right].$$ The difference-of-sines formula gives you $$ \sin (n-\frac 12)x - \sin(-\frac 12 x) = 2 \cos \left(\frac{n-1}{2}\right) x \sin nx.$$ Thus $$\sum_{l=0}^{n-1} \cos lx = \frac 1{ \sin \frac x2} \left[ \cos \left(\frac{n-1}{2}\right) x \sin nx \right].$$ With $x = \dfrac{2\pi m}{n}$ you have $$\sin nx = \sin 2\pi m = 0$$ and $$\sin \frac x2 = \sin \frac{\pi m}{n} \not= 0$$ because $n$ does not divide $m$. Thus the sum is zero.