The integral mentioned in the title is not convergent according to mathematica:
Integrate::idiv: "Integral of Tan[1/n] does not converge on {1,infinity}."
But my evaluation of the integral says otherwise:
The function $\tan\left(\dfrac{1}{n}\right)$ is continuous over $n \in [1,\infty)$ and has a domain of $(0, 15574]$ $$\int\limits_{1}^{\infty} \tan\left(\dfrac{1}{n}\right)\quad\mathbb{d}n = \lim_{t\to\infty} \int\limits_{1}^{t} \tan\left(\dfrac{1}{n}\right)\quad\mathbb{d}n$$ By substuting $1/n$ with $\theta$ we get: \begin{align} \lim_{t\to\infty}\int\limits_{1}^{t} \tan\left(\dfrac{1}{n}\right)\quad\mathbb{d}n &= \lim_{t\to\infty}\int\limits_{1}^{1/t} \tan\theta\quad\mathbb{d}\theta \\ &= \lim_{t\to\infty}\left[\ln\left|\sec\theta\right|\right]_{1}^{1/t}\\ &= \lim_{t\to\infty}\left(\ln\left|\sec\dfrac{1}{t}\right| - \ln\left|\sec1\right|\right)\\ &= \ln\left(\sec0\right) - \ln\left(\sec1\right)\\ &= \ln1 - \ln\left(\sec1\right)\\ &= -\ln\left(\sec1\right)\\ &\approx -0.615 \end{align}
So the above shows that the integral is convergent, obviously I'm doing something wrong but what is it?