Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Left-factorials/Mathematica/left-factorials.math
Normal file
7
Task/Left-factorials/Mathematica/left-factorials.math
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
left[n_] := left[n] = Sum[k!, {k, 0, n - 1}]
|
||||
Print["left factorials 0 through 10:"]
|
||||
Print[left /@ Range[0, 10] // TableForm]
|
||||
Print["left factorials 20 through 110, by tens:"]
|
||||
Print[left /@ Range[20, 110, 10] // TableForm]
|
||||
Print["Digits in left factorials 1,000 through 10,000, by thousands:"]
|
||||
Print[Length[IntegerDigits[left[#]]] & /@ Range[1000, 10000, 1000] // TableForm]
|
||||
Loading…
Add table
Add a link
Reference in a new issue