Left factorial (source code)

= Left factorial
{title2=$!n=\sum_{k=0}^{n-1}k!$}

With the sum convention, the <left factorial> of a <nonnegative integer> $n$ is $!n=\sum_{k=0}^{n-1}k!$, with $!0=0$. The first values are $0,1,2,4,10,34$. Its <recurrence relation> $!(n+1)=!n+n!$ follows by separating the last summand. The notation $!n$ is also sometimes used for a <derangement> count, so the defining convention matters: the sum gives $!4=10$, whereas there are nine <derangements> of four labels.