OFFSET
1,3
LINKS
A.H.M. Smeets, Table of n, a(n) for n = 1..20000
FORMULA
PROG
(Python)
n, f, i, p, q = 1, 1, 0, 0, 1
while i < 1000000:
i, p, q = i+1, p*10, q*10
if i == f:
p, n = p+1, n+1
f = f*n
n, a, j = 0, 0, 0
while p%q > 0:
a, f, p, q = a+1, p//q, q, p%q
if f == 8:
n = n+1
print(n, a-1-8*n)
CROSSREFS
KEYWORD
sign
AUTHOR
A.H.M. Smeets, Jul 26 2018
STATUS
approved