OFFSET
1,2
COMMENTS
By checking the factorials of all the numbers below 10^6, it is conjectured that up to 10^4 there are 746 values of n for which a(n) = 0: n = 84, 164, 167, 169, 182, ... (see the link for more values). - Amiram Eldar, Sep 01 2020
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..83
EXAMPLE
a(2) = 14 since the 14th factorial, i.e., 14! = 87178291200, contains exactly two 1's.
MATHEMATICA
Do[k = 1; While[ Count[IntegerDigits[k! ], 1] != n, k++ ]; Print[k], {n, 1, 60}]
Module[{f=Table[{n, DigitCount[n!, 10, 1]}, {n, 500}]}, Table[SelectFirst[ f, #[[2]] == k&], {k, 60}]][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 27 2019 *)
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