A096909 Primitive Pythagorean Quadruples a^2+b^2+c^2=d^2, 0
2, 6, 7, 8, 7, 9, 12, 11, 14, 12, 12, 15, 17, 18, 16, 16, 19, 20, 18, 18, 22, 16, 20, 22, 23, 23, 25, 26, 21, 24, 24, 21, 22, 27, 30, 20, 25, 28, 28, 31, 32, 32, 26, 30, 30, 33, 27, 28, 28, 36, 26, 29, 29, 34, 34, 35, 24, 31, 32, 33, 39, 30, 30, 38, 39, 42, 42, 29, 35, 37, 40
Offset: 1
Links
- Ivan Neretin, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Pythagorean Quadruple.
Programs
-
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, 3]] (* Ivan Neretin, May 24 2015 *)