Let $x_n$ be the unique solution of the equation $$\left( 1+\frac{1}{n}\right)^{n+x_n}=1+\frac{1}{1!}+\frac{1}{2!}+\dots+\frac{1}{n!}$$ Find $\lim_{n \to \infty} x_n$
I think that the limit must be $\frac{1}{2}$, because $\left(1+\frac{1}{n}\right)^{n+\frac{1}{2}}$ is decreasing and convergent to $e$, while $1+\frac{1}{1!}+\dots+\frac{1}{n!}$ is increasing and convergent to $e$, so $$\left(1+\frac{1}{n}\right)^{n+\frac{1}{2}}>1+\frac{1}{1!}+\dots+\frac{1}{n!}$$ which means that $\frac{1}{2}>x_n$. I also know that for $a \in [0,\frac{1}{2}), \left(1+\frac{1}{n}\right)^{n+a}$ is eventually increasing, but I don't know how to get a lower bound for $x_n$ which goes to $\frac{1}{2}$
Answer. $x_n\to \dfrac{1}{2}$
Explanation. Taylor series remainder $$ \mathrm{e}=1+\frac{1}{1!}+\cdots+\frac{1}{n!}+\frac{\mathrm{e}^{\xi_n}}{(n+1)!} $$ for some $\xi_n\in(0,1)$. Since $$\left( 1+\frac{1}{n}\right)^{n+x_n}=1+\frac{1}{1!}+\frac{1}{2!}+\dots+\frac{1}{n!},$$ Then $$ n+x_n=\frac{\log\left(\mathrm{e}-\dfrac{\mathrm{e}^{\xi_n}}{(n+1)!}\right)}{\log\left(1+\frac{1}{n}\right)}=\frac{1+\log\left(1-\dfrac{\mathrm{e}^{\xi_n-1}}{(n+1)!}\right)}{\dfrac{1}{n}-\dfrac{1}{2n^2}+{\mathcal O}(n^{-3})}=n\cdot\frac{1+{\mathcal O}\left(\frac{1}{(n+1)!}\right)}{1-\dfrac{1}{2n}+{\mathcal O}(n^{-2})}\\=n+\frac{\dfrac{1}{2}+{\mathcal O}(n^{-1})}{1-\dfrac{1}{2n}+{\mathcal O}(n^{-2})} $$ and hence $$ x_n\to \frac{1}{2} $$