I wish to sum the following series:
$$ \sum_{r=1}^nr! $$
My initial thought was to first convert this in terms of the gamma function, and sum all of the integrals that this made like so:
$$ \sum_{r=1}^nr! = \sum_{r=1}^n\Gamma(r+1)=\sum_{r=1}^n\int^\infty_0x^re^{-x}\,dx $$
No matter how hard I try, I struggle to find a solution yet Wolfram Alpha managed to find the answer to be $(-1)^{n+1}\Gamma(n+2)!(-n-2)-!(-1)-1$ where $!n$ is the sub-factorial function. I feel like this is a pretty complex problem, but could someone try and help me understand this? Or at least give me a better angle to take this problem from as using the gamma function may not be the best way to solve this.