OFFSET
1,18
COMMENTS
1 < a(n) < 10 if a(n) is not 0. Thus a(n) = 0 is definite for the n-values above.
EXAMPLE
2^18, 2^19 and 2^21 all contain the digit 2 twice. So a(18) = a(19) = a(21) = 2.
PROG
(Python)
def tes(n):
..for k in range(2, 10):
....if str(k**n).count(str(k)) == k:
......return k
n = 1
while n < 200:
..if tes(n):
....print(tes(n), end=', ')
..else:
....print(0, end=', ')
..n += 1
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Derek Orr, Jul 01 2014
STATUS
approved