Professional Documents
Culture Documents
edu/~rsimms
n in {1,2,3,4,...} t = floor( (3+sqrt(8*n-7))/2 ) s = n -(t^2-3*t+2)/2 x = 2*s*t y = t^2 -s^2 z = t^2 +s^2 {x,y,z} is a Pythagorean triple examples: 1 -> {3,4,5} 2 -> {6,8,10} (a multiple of #1) 3 -> {12,5,13} 4 -> {8,15,17} 5 -> {16,12,20} (a multiple of #1)
[ Figure 1 ]
More detailed explaination. I recieved formulas from Jay McKinley X > 2 can be in a Pythagorean triple. that show that any integer
However, not all triples can be found this way, e.g. 20, 21, 29
Further consideration
Now if we wish to attempt to eliminate non-primitive Pythagorean triples (those not all divisible by any one number >1) then we need to eliminate the numbers that give an s-t pair that are both odd or both even, since such pairs produce Pythagorean triples that are divisible by 2. The pattern of elimination is like that of the squares of one color on a chess board. The sequence of numbers to choose from is then {1,3,4,6,8,10,11,13,15,17,19,21,22,24,26,28,...} where the pattern is 2 odd, 4 even, 6 odd, 8 even, etc. To further eliminate numbers that yield non-primitive Pythagorean triples requires inspection, since the rule is that s and t must be co-prime and not both odd and no elimination pattern could yield co-prime s and t pairs, at least none that could be encoded into a formula. Among those numbers already given, 13 is the only one that still results in s and t with a common factor greater than 1.