OFFSET
1,2
LINKS
D. Mondot, Table of n, a(n) for n = 1..32699
EXAMPLE
a(2) = 12 since 9^12 = 282429536481 is the smallest power of 9 that begins with 2.
PROG
(Python)
def a(n):
s, k = str(n), 0
while not str(9**k).startswith(s): k += 1
return k
print([a(n) for n in range(1, 74)]) # Michael S. Branicky, Dec 09 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved