Special factorials: Difference between revisions
m
use Int128 to prevent overflow
m (use Int128 to prevent overflow) |
|||
Line 143:
rf(n) = reverse_factorial(n)
println("N Superfactorial
for n in 0:9
print(n, " ")
for f in [sf, H, af, n$]
if n < 5 || f != n$
print(rpad
end
end
Line 162:
</lang>{{out}}
<pre>
N Superfactorial
--------------------------------------------------------------------------------------------------
0 1
1 1
2 2
3 12
4 288
5 34560
6 24883200
7 125411328000
8 5056584744960000 55696437941726556979200000
9 1834933472251084800000 21577941222941856209168026828800000 326981
The number of digits in n$(5) is 183231
|