OFFSET
0,3
EXAMPLE
6! = 720 decimal = 10340 quinary, so a(6) = 4.
MATHEMATICA
Table[Module[{sp=Split[IntegerDigits[n!, 5]]}, If[sp[[-1, -1]]==0, sp[[-2, -1]], sp[[-1, -1]]]], {n, 0, 100}] (* Harvey P. Dale, Oct 26 2016 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Carl R. White, Jan 16 2008
STATUS
approved