OFFSET
1,3
COMMENTS
A258682(a(n)) < a(n)^2. - Reinhard Zumkeller, Jun 07 2015
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
Select[Range[0, 120], Length[Intersection[IntegerDigits[#], IntegerDigits[ #^2]]]>0&] (* Harvey P. Dale, Aug 28 2012 *)
PROG
(Haskell)
a189056 n = a189056_list !! (n-1)
a189056_list = 0 : filter (\x -> a258682 x /= x ^ 2) [1..]
-- Reinhard Zumkeller, Jun 07 2015, Apr 16 2011
(PARI) isok(n) = (n==0) || #setintersect(Set(digits(n)), Set(digits(n^2))); \\ Michel Marcus, Jun 13 2015
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Apr 16 2011
STATUS
approved