OFFSET
1,2
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
Keith Conrad, Arithmetic progressions of three squares
Reinhard Zumkeller, Table of initial values
FORMULA
MATHEMATICA
wmax = 1000;
triples[w_] := Reap[Module[{u, v}, For[u = 1, u < w, u++, If[IntegerQ[v = Sqrt[(u^2 + w^2)/2]], Sow[{u^2, v^2, w^2}]]]]][[2]];
Flatten[DeleteCases[triples /@ Range[wmax], {}], 2][[All, 1]] (* Jean-François Alcover, Oct 19 2021 *)
PROG
(Haskell)
a198384 n = a198384_list !! (n-1)
a198384_list = map (^ 2) a198388_list
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Oct 24 2011
EXTENSIONS
STATUS
approved