proof of Pythagorean triplet
Consider the 4AB=(A+B)2-(A-B)2. Assume that A,B are coprime. (This is no : If d is the greatest common divisor
of A,B, then one can write A=dA′,B=dB′ to get 4d2(A′B′)2=d2((A′+B′)2-(A′-B′)2) and cancel d2.)
For 4AB,A+B,A-B to form a Pythagorean triple, each of A,B must be squares. So A=m2,B=n2 where m,n are coprime, n<m. So we have
a=2mn,b=m2-n2,c=m2+n2 | (1) |
and {a,b,c} are a Pythagorean triple. But this needn’t be primitive: If m,n are odd, then 2∣m2±n2, so not all of a,b,c are relatively prime.
Suppose 2mn,m2-n2,m2+n2 are pairwise coprime. Then gcd(2mn,m2+n2)=gcd(2mn,(m+n)2)=1=gcd(2mn,(m-n)2), and it follows that gcd(2mn,m+n)=1,gcd(2mn,m-n)=1. Thus gcd(2,m+n)=1, i.e. m±n is odd. Furthermore, gcd(2mn,m+n)=1 implies gcd(m,n)=1. And since the sum/difference of two integers is odd iff one is even, and the other is odd, only one of m,n is odd. Thus, gcd(m2-n2,m2+n2)=gcd(m2+n2,2n2)=1. Conversely, if m,n are coprime, and exactly one of m,n is odd, then gcd(2,m±n)=1; thus, 2mn,m2-n2 are coprime. From the fact that gcd(a+b,a-b)=gcd(a,b) if a,b have opposite parity and gcd(m2,n2)=1 it follows that m2-n2,m2+n2 are also coprime. And since gcd(2mn,m2+n2)=gcd(2mn,(m+n)2) and gcd(2mn,m+n)=1 it follows that 2mn,m2+n2 are coprime. So the conditions the Pythagorean triple {2mn,m2-n2,m2+n2} is primitive, gcd(2mn,m+n)=1 and m,n are coprime and exactly one of them is odd are equivalent
.
So if a,b,c satisfy a2+b2=c2 and a,b,c are pairwise coprime, then c is odd, and exactly one of a,b are odd and the other is even.
Let n,m be coprime positive integers of opposite parity, n<m. Set
n′=m+n,m′=n-m | (2) |
b=m′n′,c=n2+m22=m′2+n′22,a=n′2-m′22 | (3) |
since n=m′+n′2, m=n′-m′2. Clearly, gcd(m′,n′)=1.
Now we prove that any primitive Pythagorean triple can be generated choosing odd coprime integers.
Remark 1.
Let m,n be odd coprime integers, n<m. Let f1=n2-m22,f2=n2+m22. Then gcd(f1,f2)=1.
Proof.
Since gcd(n2,m2)=1=gcd(f1+f2,f1-f2), the statement follows from the fact that f1,f2 have opposite parity since in this case gcd(f1,f2)=gcd(f1+f2,f1-f2). Since 4∣n2-m2, f2 is odd, and since f1=f2+n2 and n is odd, f1,f2 have opposite parity. ∎
Substituting C=n2, B=m2 in BC=(C+B2)2-(C-B2)2 yields that mn,n2-m22,n2+m22 is a primitive Pythagorean triple.
To see that any primitive Pythagorean triple is of this form:
Theorem 1.
Let a,b be positive coprime integers satisfying a2+b2=c2. Then a,b have opposite parity, and c is odd. Furthermore (a,c)=(b,c)=1.
Proof.
a,b cannot both be even since gcd(a,b)=1. If both a,b were odd we had c2≡2(mod4) which is impossible since the square of any number is either congruent (http://planetmath.org/Congruences
) 0 or 1 modulo 4. Thus, must be odd. Now for any integers the congruence holds. Together with this gives , so have opposite parity.
∎
Suppose is odd. Since is a square, and and it follows that are coprime and consequently each of them is square. This gives where are odd coprime integers, and we get
(4) | |||||
(5) | |||||
(6) | |||||
(7) |
Now let be a square. Without loss of generality we can set , where are odd coprime integers. So we have , and since and are coprime, each of them must itself be a square. So we have
(8) |
where the right-hand side numbers are biquadratic integers. So the question if the area of a right triangle with integer sides is square is equivalent to asking if has a solution in positive integers.
Title | proof of Pythagorean triplet |
---|---|
Canonical name | ProofOfPythagoreanTriplet |
Date of creation | 2013-03-22 14:06:52 |
Last modified on | 2013-03-22 14:06:52 |
Owner | Thomas Heye (1234) |
Last modified by | Thomas Heye (1234) |
Numerical id | 12 |
Author | Thomas Heye (1234) |
Entry type | Proof |
Classification | msc 11D09 |
Related topic | ContraharmonicMeansAndPythagoreanHypotenuses |