OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= proc(t) local L;
L:= convert(t, base, 10);
issqr(convert(L, `+`)) and issqr(convert(L, `*`))
end proc:
select(filter, [seq(i^2, i=0..300)]); # Robert Israel, Feb 15 2023
MATHEMATICA
spdQ[n_]:=Module[{idn=IntegerDigits[n]}, IntegerQ[Sqrt[Total[idn]]] && IntegerQ[ Sqrt[Times@@idn]]]; Select[Range[300]^2, spdQ] (* Harvey P. Dale, Jan 24 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Larry Reeves (larryr(AT)acm.org), May 11 2001
STATUS
approved