Is $\sum_{n=1}^{\infty}\frac{1}{n^{1+\left|{\cos n}\right|}}$ convergent?
Yes because $|\cos n|>0$ and $\frac{1}{n^ \alpha}$ is convergent for $\alpha>1$.
Is this a good way?
Is $\sum_{n=1}^{\infty}\frac{1}{n^{1+\left|{\cos n}\right|}}$ convergent?
Yes because $|\cos n|>0$ and $\frac{1}{n^ \alpha}$ is convergent for $\alpha>1$.
Is this a good way?
To be less subtle, you would need $|\cos n|\ge\alpha>0$ for some constant $\alpha$. Good luck with that!! :)
@DavidMitra's example is one of my favorites. Yes, $1+1/n\to 1$, but note that $$\lim_{n\to\infty}\frac{\frac1{n^{1+1/n}}}{\frac 1n}= 1,$$ so the limit comparison test says that the given series diverges.
Not quite. To give a rigorous proof, you have to quantify how often $|\cos n|$ is close to zero. This depends on the irrationality measure of $\pi$. Since $\{n\pmod{\pi}\}_{n\in\mathbb{N}}$ is an equidistributed sequence, it is expected that $|\cos n|$ is, in average, $\frac{2}{\pi}$, giving a convergent series. However, this is not the case, as shown by the duplicate question's answers.