Jump to content

Left factorials: Difference between revisions

m
aligned centered formulæ, simplied some wording, added clarification and whitespace, indented a "where" to better fit with the formula.
m (→‎Vectorization solution: Small comment)
m (aligned centered formulæ, simplied some wording, added clarification and whitespace, indented a "where" to better fit with the formula.)
Line 10:
:::::::* &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 &nbsp; (''factorial sums'') &nbsp; for &nbsp; '''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>
 
Line 26 ⟶ 27:
;Task
Display the left factorials for:
* &nbsp; zero through ten (inclusive)
* &nbsp; 20 through 110 (inclusive) by tens
 
<br>
Display the length (in decimal digits) of the left factorials for:
* 1,000, &nbsp; 21,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]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.