The question in principle is:
Calculate $\displaystyle \sum_z \dfrac{1}{|1-z|^2}$, in which $z$ are the roots of $z^7 = 1$.
In my solution, I did: $z = cis(\theta) \Rightarrow |1 - z|^2 = |(1 - \cos\theta) - i\sin\theta|^2 = (1-\cos\theta)^2 + \sin^2\theta = 2(1 - \cos\theta)$. So the sum is simply $\displaystyle \dfrac{1}{2}\sum_\theta \dfrac{1}{1-\cos\theta}$.
And the angles $\theta$ for that polynomial are $\pm\dfrac{\pi}{7},\pm\dfrac{3\pi}{7},\dfrac{\pm5\pi}{7},\pi$. Since $\cos\pi = -1$ and $\cos(-x) = \cos x$, we get $S = \dfrac{1}{4} + \dfrac{1}{1-\cos(\pi/7)} + \dfrac{1}{1-\cos(3\pi/7)} +\dfrac{1}{1-\cos(5\pi/7)}$.
My problem resides in computing $\frac{1}{1 - \cos(\pi/7)} + \frac{1}{1 - \cos(3\pi/7)} + \frac{1}{1 - \cos(5\pi/7)}$ which happens to be 12. But how can I do it?