Left factorials: Difference between revisions
Content added Content deleted
m (added whitespace before the preamble headers.) |
|||
Line 12:
<br>This Rosetta Code task will be using this formula for '''left factorial''':
<big><big>
::: <math> !n = \sum_{k=0}^{n-1} k! </math>
</big></big>
where
<big><big>
::: <math>!0 = 0</math>
</big></big>
;Task
Display the left factorials for:
Line 21 ⟶ 27:
Display the length (in decimal digits) of the left factorials for:
* 1,000, 2,000 through 10,000 (inclusive), by thousands.
;Also see
* The OEIS entry: [http://oeis.org/A003422 A003422 left factorials]
Line 27 ⟶ 35:
* The MathWorld entry: [http://mathworld.wolfram.com/Subfactorial.html subfactorial]
* The Rosetta Code entry: [http://rosettacode.org/wiki/Permutations/Derangements permutations/derangements (subfactorials)]
<br><br>
=={{header|Bracmat}}==
|