For what values of $p>0$ is $\lim_{n\rightarrow\infty}\int_0^n\frac{(1-\frac{x}{n})^ne^x}{n^p}dx=0$?
My thoughts: We know that $(1-\frac{x}{n})^n\leq e^x$, so the numerator is $\leq e^{2x}$. So, we can play with $\frac{e^{2x}}{n^p}$. From here, I am not quite sure what to do. I would really like to be able to find the supremum over $n$, but I can't really minimize the denominator to be able to replace $n$ with something in terms of $x$, because I only have $n^p$ down there. On the other hand, I feel like I should be splitting up the integral from $0$ to $1$ and then from $1$ to $\infty$ based on the denominator. Then, fix some $x$, and just use $p$ integral properties to get that $p\in(0,1)$, but I am not quite sure. Any help is greatly appreciated!
A quick edit: I realize that I made a big mistake above by overlooking the minus sign, so instead the integrand is bounded above by $\frac{1}{n^p}\leq 1$ as $n\rightarrow \infty$, and so we can use DCT and then treat it like a $p$ integral.
A second edit: For Sangchul Lee, I edited the integral to make the upper bound $n$ so he can expand on how he got his approximation. Thank you!
To answer the question, it is sufficient to show:
$$ \color{navy}{ \lim_{n\to\infty} \frac{1}{\sqrt{n}} \int_{0}^{n} \left(1-\frac{x}{n}\right)^n e^x \, \mathrm{d}x = \sqrt{\frac{\pi}{2}} \qquad\text{as}\quad n\to\infty. } $$
Indeed, substitute $x = \sqrt{n}u$ to find that
\begin{align*} \frac{1}{\sqrt{n}} \int_{0}^{n} \left(1-\frac{x}{n}\right)^n e^x \, \mathrm{d}x &= \int_{0}^{\sqrt{n}} \Bigl(1 - \frac{u}{\sqrt{n}}\Bigr)^n e^{\sqrt{n}u} \, \mathrm{d}u \\ &= \int_{0}^{\infty} \Bigl(1 - \frac{u}{\sqrt{n}}\Bigr)^n e^{\sqrt{n}u} \mathbf{1}_{[0, \sqrt{n})}(u) \, \mathrm{d}u \end{align*}
To analyze the integral in the right-hand side, we note that
$$ 1 - t = e^{\log(1-t)} = e^{-\sum_{k=1}^{\infty} t^k/k} \leq e^{-t-t^2/2} $$
holds for $ t \in [0, 1)$. Using this, we find that
$$ \Bigl(1 - \frac{u}{\sqrt{n}}\Bigr)^n e^{\sqrt{n}u} \mathbf{1}_{[0, \sqrt{n})}(u) \leq e^{-u^2/2} $$
for $u \geq 0$. It is a easy to check that $$\lim_{n\rightarrow\infty}\Bigl(1 - \frac{u}{\sqrt{n}}\Bigr)^n e^{\sqrt{n}u} \mathbf{1}_{[0, \sqrt{n})}(u)=e^{-u^2/2}$$
So by the dominated convergence theorem,
\begin{align*} \lim_{n\to\infty} \frac{1}{\sqrt{n}} \int_{0}^{n} \left(1-\frac{x}{n}\right)^n e^x \, \mathrm{d}x &= \int_{0}^{\infty} \lim_{n\to\infty} \Bigl(1 - \frac{u}{\sqrt{n}}\Bigr)^n e^{\sqrt{n}u} \mathbf{1}_{[0, \sqrt{n})}(u) \, \mathrm{d}u \\ &= \int_{0}^{\infty} e^{-u^2/2} \, \mathrm{d}u \\ &= \sqrt{\frac{\pi}{2}}. \end{align*}