How to evaluate the limit $$\lim_{n \to +\infty}(-1)^n\frac{n^n + \ln n}{\cos(n\pi)(n + \pi)^n}$$?
I was suspecting that the sequence does not converge, but the ratio test, which is the only one that I know, turned out to be useless. The limit of the ratio $\frac{a_{n+1}}{a_n}$ is $1$, so the test is inconclusive.
It turns out the result is $\boxed{\displaystyle e^{-\pi}}$, but I fail to see how one would reach it.
Any suggestions?