Do you have any ideas on this IIT exercise?
If $n>3$ is an integer, prove that $$\sum_{k=0}^{n-1} (k-n)\cos(2kπ /n) = n/2$$
In my attempt, I have considered $$z=cis(2kπ/n), k=[1, 2,..., n-1].$$ Then $$Re(z)= \cos(2kπ/n).$$ But I've got stuck in the middle of the process, since I got a hard sum to deal with: $$(z+2z^2+⋯+(n-1) z^{n-1}) - n(z+z^2+⋯+z^{n-1} ).$$
My problem is in the first factor of the sum above: $$z+2z^2+⋯+(n-1) z^{n-1}$$
I appreciate your help, fellow mathematicians!