Prove that $\sum_{k=1}^{\frac{n-1}{2}}\cos\left(\frac{2\pi k}{n}\right)=-\frac{1}{2}$ if $n=1\mod 2$

122 Views Asked by At

I found out that this equality holds by accident,$$\sum_{k=1}^{\frac{n-1}{2}}\cos\left(\frac{2\pi k}{n}\right)=-\frac{1}{2}$$ if $n=1\mod 2$. However, I am not able to prove this directly with rules of trigonometry etc. Does anyone know that this indeed holds always and does anyone know a proof? Thank you very much.

1

There are 1 best solutions below

0
On BEST ANSWER

Let $\zeta = \exp(2\pi \textrm{i}/n)$ be a primitive root of unity. Then your sum equals the real part of $$s = \sum_{k=1}^{\frac{n-1}{2}} \zeta^k.$$ Now $$s + \overline{s} + 1 = \sum_{k=0}^{n-1} \zeta^k = 0$$ and $\textrm{Re}(s) = \textrm{Re}(\overline{s})$ so $2 \textrm{Re}(s) + 1 = 0$.