A386944 Long legs of Pythagorean triples of the form (u^2 - v^2, 2*u*v, u^2 + v^2), ordered by increasing hypotenuse (A386943).
8, 16, 24, 30, 32, 36, 48, 48, 42, 60, 70, 64, 80, 72, 96, 96, 90, 84, 108, 120, 100, 112, 126, 120, 110, 140, 135, 128, 160, 154, 168, 160, 144, 144, 192, 198, 192, 180, 182, 216, 224, 168, 216, 240, 196, 200, 234, 224, 252, 189, 240, 210, 286, 288, 220, 280, 280
Offset: 1
Examples
The nonprimitive Pythagorean triple (6, 8, 10) is of the form (u^2 - v^2, 2*u*v, u^2 + v^2): From u = 3 and v = 1 follows u^2 - v^2 = 8 (long leg), 2*u*v = 6 (short leg), u^2 - v^2 = 10 (hypotenuse). Therefore, 8 is a term.
Links
- Felix Huber, Table of n, a(n) for n = 1..10000
- Eric Weisstein's World of Mathematics, Pythagorean Triple
Programs
-
Maple
A386944:=proc(N) # To get all hypotenuses <= N local i,l,u,v; l:=[]; for u from 2 to floor(sqrt(N-1)) do for v to min(u-1,floor(sqrt(N-u^2))) do if gcd(u,v)>1 or is(u-v,even) then l:=[op(l),[u^2+v^2,max(2*u*v,u^2-v^2),min(2*u*v,u^2-v^2)]] fi od od; l:=sort(l); return seq(l[i,2],i=1..nops(l)); end proc; A386944(296);
Comments