OFFSET
1,2
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
225 is in the sequence because both 225 and 1225 are squares.
MAPLE
a := proc (n) local s, c, j: s := proc (n) options operator, arrow: nops(convert(n, base, 10)) end proc: c := 0: for j to 9 do if type(sqrt(j*10^s(n^2)+n^2), integer) = true then c := c+1 else end if end do: if 0 < c then n^2 else end if end proc: seq(a(n), n = 1 .. 1200); # Emeric Deutsch, Nov 01 2009
MATHEMATICA
srsQ[n_]:=AnyTrue[Range[9]*10^IntegerLength[n]+n, IntegerQ[Sqrt[#]]&]; Select[ Range[1200]^2, srsQ] (* The program uses the AnyTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 19 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Oct 27 2009
EXTENSIONS
Edited by N. J. A. Sloane, Oct 29 2009
More terms from R. J. Mathar and Emeric Deutsch, Oct 30 2009
STATUS
approved