OFFSET
1,3
COMMENTS
All terms of A045953 appear in this sequence.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
a(12) = 115 appears in the sequence because 115*115 = 13225.
MATHEMATICA
ldQ[n_]:=Module[{idn=IntegerDigits[n], idn2=IntegerDigits[n^2]}, First[ idn] == First[idn2]&&Last[idn]==Last[idn2]]; Select[Range[ 0, 1100], ldQ] (* Harvey P. Dale, Feb. 06 2011 *)
PROG
(BASIC)
left$(str$(n), 1) = left$(str$(n^2), 1) AND right$(str$(n), 1) = right$(str$(n^2), 1)
(Haskell)
a086457 n = a086457_list !! (n-1)
a086457_list = filter (\x -> a000030 x == a000030 (x^2) &&
a010879 x == a010879 (x^2)) [0..]
-- Reinhard Zumkeller, Jul 27 2011
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Jeremy Gardiner, Jul 20 2003
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Jul 27 2011
STATUS
approved