|
|
A356739
|
|
a(n) is the smallest k such that k! has at least n consecutive zeros immediately after the leading digit in base 10.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
a(1) = 7, because 7! = 5040 has one zero immediately after the leading digit, and there is no k<7 with that property.
|
|
PROG
|
(Python)
from itertools import count
t = 1
n = 1
for k in count(1):
t *= k
while str(t)[1:1+n] == '0'*n:
print(n, k)
n += 1
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|