OFFSET
1,1
COMMENTS
The first term having a repeated digit is 10057482369. - Colin Barker, Jan 15 2014
LINKS
Reiner Moewald, Table of n, a(n) for n = 1..4865
FORMULA
a(n) = A054038(n)^2. - Colin Barker, Jan 15 2014
EXAMPLE
1026753849 is in the sequence because 1026753849 = 32043^2 and 1026753849 contains all ten digits 0, ..., 9.
MATHEMATICA
Select[#^2 &[Range[1000000]], Length[Union[IntegerDigits[#]]] == 10 &] (* Geoffrey Critzer, Jan 04 2015 *)
PROG
(PARI) s=[]; for(n=1, 100000, if(#vecsort(eval(Vec(Str(n^2))), , 8)==10, s=concat(s, n^2))); s \\ Colin Barker, Jan 15 2014
(Python)
from itertools import count, islice
def c(n): return len(set(str(n))) == 10
def agen(): yield from (k*k for k in count(31622) if c(k*k))
print(list(islice(agen(), 21))) # Michael S. Branicky, Dec 27 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reiner Moewald, May 02 2013
STATUS
approved