OFFSET
0,13
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 0..10000.
FORMULA
MAPLE
A137581:= proc(n) uses StringTools;
CountCharacterOccurrences(TrimRight(SubstituteAll(
convert(n!, string), "0", " ")), " ")
end proc; # Robert Israel, May 07 2012
MATHEMATICA
f[n_] := f[n] = Block[{a = n!}, While[Mod[a, 10] == 0, a = a/10]; Count[ IntegerDigits@a, 0]]; Table[f@n, {n, 0, 98}] (* Robert G. Wilson v, Jan 28 2008 *)
Table[DigitCount[n!/10^IntegerExponent[n!, 10], 10, 0], {n, 0, 100}] (* Harvey P. Dale, Apr 10 2023 *)
PROG
(Haskell)
a137581 = a055641 . a004154 -- Reinhard Zumkeller, Apr 01 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jan 27 2008
STATUS
approved