Hi I found a finite summation of cotangents as $$\sum_{k=0}^{n-1}\cot^2(z + \frac{k\pi}{n}) = n^2 - n + n^2 \cot^2(n z), \quad n > 0$$ in the URL bellow
http://functions.wolfram.com/ElementaryFunctions/Cot/introductions/Cot/ShowAll.html
Can anyone introduce a book or reference which includes the above summation? I want to see the proof and study more on them.
Thanks in advance.