I have to prove that $\displaystyle \lim_{n\to\infty}\int_0^n \left(1-\frac{t}{n}\right)^n\ln(1/t)\,dt= \gamma$
I tried to expand $\left(1-\frac{t}{n}\right)^n$ and swap sum and integral, which yields $$\int_0^n \left(1-\frac{t}{n}\right)^n\ln(1/t)\,dt=n\sum_{k=0}^n \binom n k\frac{(-1)^{k+1}}{k+1} \left(\ln(n)-\frac{1}{k+1}\right)$$
I can't manage to show that the last quantity goes to $\displaystyle \gamma=\lim_{n\to\infty} (H_n- \ln(n))$.
Any help is appreciated.
$$\begin{eqnarray*}\int_{0}^{n}\left(1-\frac{t}{n}\right)^n (-\log t)\,dt &=& n \int_{0}^{1}(1-u)^n(-\log(nu))\,du\\&=&-\frac{n}{n+1}\log n-n\int_{0}^{1}(1-u)^n\log u\,du\end{eqnarray*}$$
but, through a change of variable and integration by parts: $$\begin{eqnarray*} -(n+1)\int_{0}^{1}(1-u)^n\log u\,du &=& \int_{0}^{1}(n+1)u^n\left(-\log(1-u)\right)\,du\\&=&\int_{0}^{1}\frac{u^{n+1}-1}{u-1}\,du=H_{n+1}\end{eqnarray*} $$ so: