Proof of the classification of Pythagorean triples
Builds on Pythagorean tripleCoprime integersGreatest common divisorEuclid's lemmaFundamental theorem of arithmeticP-adic valuationP-adic valuation of a product
Proof
Lemma. Let and be coprime positive integers such that is a square. Then and are squares.
- Let be a prime and the p-adic valuation. By the valuation of a product, , which is even since is a square.
- The prime does not divide both and . So is or equals . In both cases is even.
- By the fundamental theorem of arithmetic, . The same holds for .
Part 1: the formula gives primitive triples.
- Let be coprime with odd. Put , and . All three are positive.
- We have . So is a Pythagorean triple.
- Since is odd, one of is even and the other odd. So is odd.
- Let be a prime dividing and . Then divides and . As is odd, .
- By Euclid's lemma, and . This contradicts . So , and the triple is primitive.
Part 2: each primitive triple with even comes from exactly one pair.
- Let be primitive with even. A prime dividing and divides , hence by Euclid's lemma. So , and likewise .
- Since is even and , is odd. Then is odd, so is odd.
- Since , . Put and . These are positive integers, as and are odd.
- A common divisor of and divides and . So .
- We have , a square. By the lemma, and for positive integers and .
- Then , , and .
- Since , . A common divisor of and divides and , so . Since is odd, is odd.
- Any pair as in Part 1 that gives satisfies and . As , the pair is unique.
Part 3: every triple is a multiple of a primitive one.
- Let be a Pythagorean triple and . Put , and .
- Dividing by gives . A common divisor of makes a common divisor of , so . Thus is primitive.
- Not both of are even: else is even too, against step 18. Not both are odd: else , but squares are or modulo .
- So exactly one of and is even. After swapping the first two entries if needed, has even and Part 2 applies. Hence up to the order of the first two entries.
Idea
Write . In a primitive triple the halves and are coprime and multiply to a square, so each is a square and . This gives , and in terms of and . Dividing by the gcd reduces every triple to a primitive one.
Reading path
To understand this page from the ground up, read these 39 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof that the p-adic valuation of a product is the sum of the valuations, Proof of the fundamental theorem of arithmetic, Proof of the existence of prime factorization, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of a prime divisor.
Show the path as a graph
- no evidence level
- Definition by recursion concept
- Divisibility definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Greatest common divisor definition
- Prime number definition
- Successor function definition
- Coprime integers definition
- Pythagorean triple definition
- P-adic valuation definition
- Prime factorization definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Commutativity of addition statement
- Proof of strong induction from ordinary induction proof
- Strong induction statement
- Proof of the well-ordering principle from strong induction proof
- Well-ordering principle statement
- Proof of the division algorithm proof
- Proof of the existence of a prime divisor proof
- Division algorithm statement
- Existence of a prime divisor statement
- Proof of Bézout's identity proof
- Proof of the existence of prime factorization proof
- Bézout's identity statement
- Existence of prime factorization statement
- Proof of the generalized Euclid's lemma proof
- Generalized Euclid's lemma statement
- Proof of Euclid's lemma proof
- Euclid's lemma statement
- Proof of the fundamental theorem of arithmetic proof
- Proof that the p-adic valuation of a product is the sum of the valuations proof
- Fundamental theorem of arithmetic statement
- P-adic valuation of a product statement
- Proof of the classification of Pythagorean triples proof
Where this leads
6 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Pythagorean_triple, Proof of Euclid's formula
About this page
| Tag | 6BX1MKXX97 |
|---|---|
| URI | m2://6BX1MKXX97 |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11D09 |
| Proves | Classification of Pythagorean triples |
| Uses | Pythagorean triple, Coprime integers, Greatest common divisor, Euclid's lemma, Fundamental theorem of arithmetic, P-adic valuation, P-adic valuation of a product |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.