1,3

In the event of a tie, choose the smaller integer.

Table of n, a(n) for n=1..90.

A243151(2) = 11. So A243151(2)^2 = 121. Since the digit 1 is the one repeated two times, a(2) = 1.

(Python)

def c(n):

..for k in range(10**7):

....if k % 10 == 0:

......lst = []

......count = 0

......for i in range(10):

........if str(k**n).count(str(i)) == n:

..........return i

n = 1

while n < 100:

..print(c(n), end=', ')

..n+=1

Cf. A243151.

Sequence in context: A158606 A021065 A262041 * A093754 A135935 A263183

Adjacent sequences: A243149 A243150 A243151 * A243153 A243154 A243155

nonn,base

Derek Orr, May 31 2014

approved