OFFSET
1,1
COMMENTS
It is conjectured that a(54)=0 since no factorial < 10000 contained just 54 eights.
EXAMPLE
a(2)=9 since 9th factorial i.e. 9!=362880 contains exactly two 8's.
MATHEMATICA
Do[k = 1; While[ Count[IntegerDigits[k! ], 8] != n, k++ ]; Print[k], {n, 1, 60}]
Transpose[Flatten[Table[Select[Table[{n, DigitCount[n!, 10, 8]}, {n, 500}], Last[#] == i&, 1], {i, 50}], 1]][[1]] (* Harvey P. Dale, Sep 13 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Shyam Sunder Gupta, Jul 30 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Jul 31 2002
STATUS
approved