I'm trying to figure out if the following series converges or diverges. I have spent hours on it and can't figure it out. Tried to use the comparison test, Dirichlet, and Abel, but none of it worked. Any hints?
$$ \sum_{n=1}^\infty \frac{\cos^2(n)}{\sqrt{n}} $$
HINT:
Recall that $\cos^2(x)=\frac{1+\cos(2x)}{2}$.