The series in question is: $$\sum_{n=1}^{\infty }n^2\left(\cos\left(\frac{1}{n}\right)-1+\frac{1}{2n^2}\right)$$ and I need to see whether or not it converges.
What I tried was taking the absolute of the term, and finding its limit (to check whether it diverges by $n-$th term test). I obtained: $$\begin{align} \lim_{n\to \infty }n^2\left|\cos \left(\frac{1}{n}\right)-1+\frac{1}{2n^2}\right| &= \lim_{n\to \infty }n^2 \left|1-1+\frac{1}{2n^2}\right| \\ &= \lim_{n\to \infty }n^2 \left(\frac{1}{2n^2}\right)\\ &=\frac{1}{2}. \end{align}$$ The series is supposed to diverge as the limit of its partial sums is different from zero. I think the answer is supposed to be that the series converges according to graphing software, but I am unable to spot the error in my calculations.