login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A096907
Primitive Pythagorean Quadruples a^2+b^2+c^2=d^2, 0<a<=b<=c<=d, gcd(a,b,c,d)=1, sorted by d, then c, then b; sequence gives a values.
14
1, 2, 4, 1, 6, 2, 3, 2, 2, 8, 1, 6, 6, 1, 8, 4, 4, 4, 6, 3, 3, 12, 9, 7, 10, 2, 2, 2, 12, 11, 3, 14, 6, 6, 5, 17, 8, 7, 4, 8, 4, 1, 15, 6, 1, 6, 8, 12, 3, 3, 19, 14, 2, 13, 2, 10, 23, 12, 9, 4, 4, 18, 7, 9, 2, 6, 2, 20, 4, 16, 13, 8, 5, 18, 18, 6, 11, 2, 6, 23, 12, 9, 4, 15, 12, 4, 22, 14, 1, 14
OFFSET
1,2
LINKS
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, 1]] (* Ivan Neretin, May 24 2015 *)
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Ray Chandler, Aug 15 2004
STATUS
approved