Calculate the following integral: $$\int_0^{\infty} \left(x-\log \left(e^x-x\right)\right) \ \mathrm{d}x.$$
For recreational purposes, I calculate several interesting integrals, and I came across this case that blocks me.
One can immediately notice that $\log \left(e^x-x\right)\sim_{+\infty} x$ (since $\lim_{x\to +\infty}\frac{x}{\log(e^x-x)}=1$). But I am unable to calculate the indefinite integral of this function or to establish the value of this improper integral in any other way.
Nevertheless, it is of course possible to calculate the result numerically ($\approx 1.15769475$) to an arbitrary precision, but I am more interested in the exact value and the method to get it.
\begin{align} \int_{0}^{\infty} (x - \ln(e^{x} - x)) \ \mathrm{d}x &= \int_{0}^{\infty} (x - \ln(e^{x}) - \ln(1-x e^{-x}) ) \ \mathrm{d}x \\ &= - \int_{0}^{\infty} \ln(1 - x e^{-x}) \ \mathrm{d}x \\ &= \sum_{n=1}^{\infty} \frac{1}{n} \, \int_{0}^{\infty} x^{n} \, e^{-n x} \ \mathrm{d}x \\ &= \sum_{n=1}^{\infty} \frac{n!}{n^{n+2}} \approx 1.15769. \end{align}