%I #20 Oct 02 2024 16:54:05
%S 9,17,22,33,41,46,54,65,73,81,86,94,105,110,118,129,137,145,150,161,
%T 169,174,182,190,201,209,214,222,233,238,246,257,265,273,278,289,297,
%U 302,310,321,329,337,342,350,361,366,374,382,393,401,406,417,425,430,438,446,457,465,470,478,489,494,502
%N Indices m for which A058304(m) = 8.
%H A.H.M. Smeets, <a href="/A317332/b317332.txt">Table of n, a(n) for n = 1..20000</a>
%F a(n) = 8*n + A317335(n).
%o (Python)
%o n, f, i, p, q = 1, 1, 0, 0, 1
%o while i < 1000000:
%o i, p, q = i+1, p*10, q*10
%o if i == f:
%o p, n = p+1, n+1
%o f = f*n
%o n, a, j = 0, 0, 0
%o while p%q > 0:
%o a, f, p, q = a+1, p//q, q, p%q
%o if f == 8:
%o n = n+1
%o print(n, a-1)
%Y Cf. A058304, A317331, A317333, A317335, A317336.
%K nonn
%O 1,1
%A _A.H.M. Smeets_, Jul 26 2018