OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Pythagorean Quadruple.
MATHEMATICA
mx = 50; res = {}; Do[If[GCD[b, c, d] > 1, Continue[]]; If[IntegerQ[a = Sqrt[d^2 - b^2 - c^2]] && a > 0 && a <= b, AppendTo[res, {a, b, c, d}]], {d, mx}, {c, d}, {b, c}]; res[[All, 2]] (* Ivan Neretin, May 24 2015 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Ray Chandler, Aug 15 2004
STATUS
approved