OFFSET
1,1
COMMENTS
It is conjectured that after a(43), a(n) = n + 63 (i.e., natural numbers beginning with 107).
Complement of A236674.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..10000
EXAMPLE
3^53 = 19383245667680019896796723, which contains two 1's, two 2's, three 3's, one 4, one 5, five 6's, three 7's, three 8's, four 9's and two 0's, so 53 is in the sequence.
3^57 = 1570042899082081611640534563, which contains four 1's, two 2's, two 3's, three 4's, three 5's, three 6's, one 7, three 8's, two 9's and five 0's.
58 is not in the sequence because there are no 5's in 3^58 = 4710128697246244834921603689.
MATHEMATICA
Select[Range[0, 200], Union[IntegerDigits[3^#]] == Range[0, 9] &] (* T. D. Noe, Jan 29 2014 *)
PROG
(Python)
def PanDig(x):
..a = '1234567890'
..for n in range(10**3):
....count = 0
....for i in a:
......if str(x**n).count(i) > 0:
........count += 1
......else:
........break
....if count == len(a):
......print(n)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Derek Orr, Jan 29 2014
STATUS
approved