So I've been working on this problem for a while and I was able to get up to here:
$$\sum_{k=1}^{2004}\cos^{2}\left(\frac{k\pi}{2\cdot2005}\right)$$
With the trigonometric identity that $1+\tan^2\left(\theta\right) = \sec^2\left(\theta\right)$. And that $\cos\left(\theta\right) = \frac{1}{\sec\left(\theta\right)}$.
I'm stuck at this point, does anyone have anything on how to move it forward?
Sidenote: I'm a precalculus student
\begin{align} \sum_{k=1}^{2004}\cos^{2}\left(\frac{k\pi}{2\cdot2005}\right) & =\frac12 \sum_{k=1}^{2004}(1+ \cos\frac{k\pi}{2005})\\ & = \frac{2004}2+ \frac12 \sum_{k=1}^{1002}\left[\cos\frac{k\pi}{2005} + \cos\frac{(2005-k)\pi}{2005}\right]\\ & = 1002+ \frac12 \sum_{k=1}^{1002}0=1002\\ \end{align}