Recently I came across this summation: $$\sum_{k=0}^n\cos\Bigl(k\frac{2\pi}{n}\Bigr)$$ when I was trying to evaluate the following summation $$\sum_{k=0}^{n} z^k+z^{-k}$$ where $z \in \mathbb{C}, z=\operatorname{cis}(\frac{2\pi}{n})$
But I got stuck... Could anyone give me a tip ?
Thanks in advance!