Find the sum $\displaystyle \sum_{k = 1}^{2004}\dfrac1{1+\tan^2 \left(\dfrac{k\pi}{2\cdot 2005}\right)}. $
I was able to simplify this to $ \displaystyle\sum_{k = 1}^{2004} {\cos^2\left(\frac{k\pi}{4010}\right)} $, however, from there I was unsure how to solve the problem. How would you continue?
Thank you.