Distribution of 0 digits in factorial series: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: added the computer programming language REXX.) |
mNo edit summary |
||
Line 21: | Line 21: | ||
as the factorials become larger, the proportion of 0 digits in the factorial products shifts slowly |
as the factorials become larger, the proportion of 0 digits in the factorial products shifts slowly |
||
from around 1/5 toward 1/10, since the number of terminating zeros in n! increases only in proportion |
from around 1/5 toward 1/10, since the number of terminating zeros in n! increases only in proportion |
||
to n, whereas the number of digits of n in base 10 increases exponentially. |
to n, whereas the number of digits of n! in base 10 increases exponentially. |
||
; The task: |
; The task: |
||
Line 39: | Line 39: | ||
Find the N in 10000 < N < 50000 where the mean of the proportions of 0 digits in the factorial products from 1 to N |
Find the N in 10000 < N < 50000 where the mean of the proportions of 0 digits in the factorial products from 1 to N |
||
permanently falls below 0.16. |
permanently falls below 0.16. This task took many hours in the Python example, though I wonder if there is a faster |
||
algorithm out there. |
|||
=={{header|Python}}== |
=={{header|Python}}== |