This question begins with the following limit:
$$ \lim_{n\to+\infty}\left(\frac{\pi}{2}-\arctan n\right)^n n!. $$
By using Stirling's formula, after some calculations, I obtain the following, equivalent, limit:
$$ \lim_{n\to+\infty}e^{n\ln\left(\frac\pi2 -\arctan n\right)+n\ln n-n}\sqrt{2\pi n}. $$
Now, the exponent of the exponential function is
$$ n\ln\left(\frac\pi2 -\arctan n\right)+n\ln n-n = n\left(\ln\left(n\left(\frac\pi2-\arctan n\right)\right)-1\right). $$
Now,
$$ \lim_{n\to+\infty} n\left(\frac\pi2-\arctan n\right)=1, $$
so
$$ n\ln\left(\frac\pi2 -\arctan n\right)+n\ln n-n\sim-n $$
(where the symbol $\sim$ means asymptotically equivalent).
But I know that if $f(x)\sim g(x)$ it is not necessarily true that $e^{f(x)}\sim e^{g(x)}$, so I am not allowed to write that the original limit is equal to
$$ \lim_{n\to+\infty}e^{-n}\sqrt{2\pi n}=0. $$
So what could I do now?
[EDIT]
After some discussion with @Virtuoz in comments, I found the following solution.
It is true that $$ \arctan x + \arctan\frac{1}{x} = \frac\pi2, $$ so the original limit becomes: $$ \lim_{n\to+\infty}\left(\arctan\frac{1}{n}\right)^n n!. $$ Now, it is also true that $$ \arctan\frac{1}{n}\sim\frac{1}{n}, $$ but we have to prove that $$ \left(\arctan\frac{1}{n}\right)^n\sim\left(\frac{1}{n}\right)^n. $$ This can be proven as follows: if $\arctan(1/n)=y$, then $n=1/\arctan y$ and $y\to0^+$, so \begin{align*} \left(\frac{\arctan\frac{1}{n}}{\frac{1}{n}}\right)^n &= \left(\frac{y}{\tan y}\right)^\frac{1}{\tan y}\\ &=\left(1+\frac{y}{\tan y}-1\right)^\frac{1}{\tan y}\\ &=\left( \left(1+\frac{y}{\tan y}-1\right)^\frac{1}{\frac{y}{\tan y}-1}\right)^{\left(\frac{y}{\tan y}-1\right)\frac{1}{\tan y}}. \end{align*}
Now, the exponent $$ \left(\frac{y}{\tan y}-1\right)\frac{1}{\tan y}=\frac{y\cos y -\sin y}{\sin^2 y}\cos^2 y\sim \frac{y-\frac12 y^3-y}{\sin^2 y}\cos^2 y\to 0, $$ and this proves that $$ \left(\frac{\arctan\frac{1}{n}}{\frac{1}{n}}\right)^n\to 0. $$
So, finally, $$ \lim_{n\to+\infty}\left(\arctan\frac{1}{n}\right)^n n! = \lim_{n\to+\infty}\frac{n!}{n^n}=0. $$
You can use inequality $$ \arctan x \ge \frac{x}{1 + \frac{2}{\pi} x}, \, x >0. $$ This gives us the upper bound $$ \left(\frac{\pi}{2}-\arctan n\right)^n n! \le \left( \frac{\pi}{2} - \frac{n}{1 + \frac{2}{\pi} n} \right)^n \cdot n! \sim \left( \frac{\pi^2}{2(\pi + 2n)} \right)^n \cdot \sqrt{2\pi n} \left( \frac{n}{e} \right)^n \le $$ $$ \le \left( \frac{\pi^2}{4n} \cdot \frac{n}{e} \right)^n \cdot \sqrt{2\pi n} \longrightarrow 0. $$ The last expression tends to $0$ since $$ \pi^2 < 4e. $$