# Limits of $f(x)=x!\frac{e^{x}+1}{x^{x}}$?

I have to say that I've no idea, but I just want to calculate $\lim\limits_{x\to\infty}f(x)$

$\lim\limits_{x\to\infty}\bigl(x!\dfrac{e^{x}+1}{x^{x}}\bigr)$

-
As written, the function has no dependence on $n$! –  Juan S Apr 2 '12 at 12:02
So is it a limit for $n$ or for $x$? It does not matter match for the result, but it matters for the methods that you're allowed to use. –  Ilya Apr 2 '12 at 12:02
Use the Stirling approximation: $n! \approx \sqrt{2\pi n} \frac{n^n}{e^n}$. Thus, $x! \frac{e^x+1}{x^x} \approx \sqrt{2\pi x} \frac{e^x+1}{e^x} \approx \sqrt{2\pi x}$ for large $x$. If you meant $e^{x+1}$ instead, you get $x! \frac{e^{x+1}}{x^x} \approx \sqrt{2\pi x} e$.
The limit of $f(x)=x!\frac{e^{x}+1}{x^{x}}$ when $x\to\infty$ is $0$.