OFFSET
0,1
COMMENTS
Variant of A062526. - R. J. Mathar, Dec 15 2008
MATHEMATICA
a = {}; Do[k = 1; While[ StringPosition[ ToString[9^k], ToString[n] ] == {}, k++ ]; a = Append[a, k], {n, 0, 60} ]; a
PROG
(Python)
def a(n):
target, k, pow9 = str(n), 1, 9
while not target in str(pow9): k, pow9 = k+1, pow9*9
return k
print([a(n) for n in range(73)]) # Michael S. Branicky, May 02 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Robert G. Wilson v, Aug 10 2001
EXTENSIONS
More terms from Michael S. Branicky, May 02 2021
STATUS
approved