<!-- Left Factorial !-->

'''Left factorials''', &nbsp; <big><big>!n</big></big>, &nbsp; may refer to either &nbsp; ''subfactorials'' &nbsp; or to &nbsp; ''factorial sums'';
<br>the same notation can be confusingly seen used for the two different definitions.

Sometimes, &nbsp; ''subfactorials'' &nbsp; (also known as ''derangements'') &nbsp; may use any of the notations:
:::::::* &nbsp; <big><big> <b> <span style="font-family:serif">!''n''`</span> </b> </big></big>
:::::::* &nbsp; <big><big> <b> <span style="font-family:serif">!''n''</span>  </b> </big></big>
:::::::* &nbsp; <big><big> <b> <span style="font-family:serif">''n''¡</span>  </b> </big></big>

(It may not be visually obvious, but the last example uses an upside-down exclamation mark.)


<br>This Rosetta Code task will be using this formula for '''left factorial''':
<big><big>
::: &nbsp; <math> !n = \sum_{k=0}^{n-1} k! </math>
</big></big>
where
<big><big>
::: &nbsp; <math>!0 = 0</math>
</big></big>


;Task
Display the left factorials for:
* zero through ten (inclusive)
* 20 through 110 (inclusive) by tens

<br>
Display the length (in decimal digits) of the left factorials for:
* 1,000, &nbsp; 2,000 &nbsp; through &nbsp; 10,000 &nbsp; (inclusive), by thousands.


;Also see
* &nbsp; The OEIS entry: [http://oeis.org/A003422 A003422 left factorials]
* &nbsp; The MathWorld entry: [http://mathworld.wolfram.com/LeftFactorial.html left factorial]
* &nbsp; The MathWorld entry: [http://mathworld.wolfram.com/FactorialSums.html factorial sums]
* &nbsp; The MathWorld entry: [http://mathworld.wolfram.com/Subfactorial.html subfactorial]


;Related task:
* &nbsp; [http://rosettacode.org/wiki/Permutations/Derangements permutations/derangements (subfactorials)]
<br><br>
