I'm trying to evaluate the following integral which popped up in MIT Integration Bee 2015 which involves the floor function.
$$\int_{0}^{\infty}\left(xe^{1-x}-\lfloor x\rfloor e^{1-\lfloor x\rfloor}\right)\mathrm dx$$
My Attempt:
$$\begin{aligned}\mathrm I &=\int_{0}^{\infty}xe^{1-x}\mathrm dx-\sum_{n=0}^{\infty}\int_{n}^{n+1}ne^{1-n}\mathrm dx\\ &= e-\sum_{n=0}^{\infty}ne^{1-n}=e\biggl(1+\sum_{n=0}^{\infty}\left(e^{1-n}\right)'\biggr)\end{aligned}$$
I'm getting stuck at this step because I'm not able to figure out how to evaluate this sum. I know one way is to use differentiation to get an expression for the sum but I'm not sure how to proceed. A hint in the right direction would be appreciated. Thanks
Note: This is different from How can I evaluate $\sum_{0}^{\infty}(n+1)x^n$? . This problem is about bringing the sum into the form from which differentiation would yield the result.