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!
This is based on your approach.
Let $|z|=1$ and we get all $n$-th unit zeros, so with derivating of $$1+z+z^2+\cdots+z^{n-1}=\frac{1-z^n}{1-z}$$ we have $$1+2z+3z^2+\cdots+(n-1)z^{n-2}=\frac{-nz^{n-1}+nz^n+1-z^n}{(1-z)^2}$$ then $$\Big(z+2z^2+3z^3+\cdots+(n-1)z^{n-1}\Big)-n\Big(z+z^2+\cdots+z^{n-1}\Big)=\frac{z}{(1-z)^2}\Big(1-z^n-n+nz\Big)=\frac{z(1-z^n)}{(1-z)^2}-\frac{nz}{1-z}=-\frac{nz}{1-z}$$ it conclude $${\bf Re}\sum_{k=0}^{n-1}(k-n)z^k=n-n{\bf Re}\frac{1}{1-z}=\frac{n}{2}$$