Is the following series of functions uniformly convergent on $\mathbb{R}$?
$$\sum_{n=2}^{\infty} \frac{(-1)^{n+1}} {\sqrt n + \cos x}$$
My attempt: My answer is No
I know that by Leibnitz test the given series converges, but by using $M$- test
$$\sup_{x \in \mathbb{R}}\left|\sum_{n=2}^{\infty} \frac{(-1)^{n+1}} {\sqrt n + \cos x}\right| \le \sup_{x \in \mathbb{R}} \left|\sum\frac{1}{\sqrt n}\right| \neq 0$$
so the given series is not uniformly convergent on $\mathbb{R}$
Is it correct ?
Yes, it converges uniformly on $\mathbb R$. You just apply Dirichlet's test for uniform convergence: