login
A317333
Indices m for which A058304(m) = 9.
8
1, 6, 14, 25, 30, 38, 49, 57, 62, 70, 78, 89, 97, 102, 113, 121, 126, 134, 142, 153, 158, 166, 177, 185, 193, 198, 206, 217, 225, 230, 241, 249, 254, 262, 270, 281, 286, 294, 305, 313, 318, 326, 334, 345, 353, 358, 369, 377, 385, 390, 398, 409, 414, 422, 433, 441, 449, 454, 462, 473, 481, 486, 497, 505
OFFSET
1,2
LINKS
FORMULA
a(n) = 8*n + A317336(n).
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 == 9:
n = n+1
print(n, a-1)
CROSSREFS
KEYWORD
nonn
AUTHOR
A.H.M. Smeets, Jul 26 2018
STATUS
approved