|
|
A027869
|
|
Number of 0's in n!.
|
|
22
|
|
|
0, 0, 0, 0, 0, 1, 1, 2, 2, 1, 2, 2, 4, 4, 2, 4, 4, 4, 5, 6, 7, 7, 8, 5, 6, 9, 8, 9, 10, 7, 9, 7, 10, 8, 11, 9, 10, 12, 16, 12, 9, 15, 13, 13, 12, 13, 16, 11, 14, 14, 19, 18, 18, 17, 18, 18, 17, 20, 17, 19, 19, 26, 20, 21, 20, 20, 23, 22, 25, 21, 20, 25, 23, 35
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,8
|
|
LINKS
|
|
|
FORMULA
|
Conjecture: a(n) ~ (9*A027868(n) + A034886(n))/10. This formula is based on the assumption that the digits other than trailing zeros are uniformly randomly distributed. - Nicolas Bělohoubek, Jan 11 2022
|
|
MATHEMATICA
|
Table[Count[IntegerDigits[n!], 0], {n, 0, 100}] (* T. D. Noe, Apr 10 2012 *)
|
|
PROG
|
(Python)
from math import factorial
def a(n): return str(factorial(n)).count('0')
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|