Let $K(x)=\sum_{n=1}^{\infty}\frac{1}{n^r}\cos(nx)$. Find $r$ so that $K(x)$ converges uniformly for $x\in \mathbb{R}$.
Sorry in advance if my question sounds naive. Is Weierstrass M-test applicable here? I think that, if I have used it correctly then $r>1$. I would be grateful if someone could confirm that $r>1$ or could give me any advice on how to tackle this problem.