Baudhayana (Pythagorean) triples
Some right triangles are unusually well-behaved: all three of their sides come out as whole numbers, with no square roots or decimals anywhere. The Egyptians used a loop of rope to build a perfect right angle at the corner of a temple; the Baudhāyana Śulba-sūtra in India listed the very same fact centuries before it carried the name "Pythagoras" in Greece. A Baudhāyana (Pythagorean) triple is any set of three positive whole numbers satisfying , so that they can literally be the three sides of a right-angled triangle. This article collects the standard triples every student should recognise on sight, explains what makes a triple primitive, shows how scaling multiplies triples into infinite families, and proves — with plain algebra — a formula that manufactures brand-new primitive triples from any two whole numbers you choose.
A Pythagorean triple satisfies ; a handful of primitive triples such as generate infinitely many more by scaling, and the formula generates fresh primitive ones directly.
The core idea
A Baudhāyana (Pythagorean) triple is an ordered set of positive integers that fits the relation
where: is always the largest of the three numbers (the hypotenuse), and are the two shorter sides (the legs). If three whole numbers satisfy this equation, they can serve as the side lengths of a genuine right-angled triangle — no measuring tape ever gives a fraction. The smallest and most famous example is : indeed . This is the same rope-and-knots triangle that ancient builders in both India and Egypt used to lay out perfect right angles long before algebra existed. Other standard triples worth memorising are
Primitive triples. A triple is called primitive if , and share no common factor greater than — their HCF is exactly . All five triples listed above are primitive. A triple that is not primitive, such as , is simply a scaled copy of a smaller primitive triple.
Scaling rule. If is a Pythagorean triple, then for any positive whole number , the triple is also a valid Pythagorean triple, because
where: is the scale factor. From , scaling by gives , , — an infinite family, all describing similar (same-shaped, differently sized) right triangles. Every Pythagorean triple is either primitive or a whole-number multiple of some primitive triple, so the primitive list is genuinely the complete "seed" set. Recognising a handful of standard triples by sight is a genuinely practical shortcut. The moment a triangle's sides look like or , you can tell instantly — without any lengthy calculation — that it must be right-angled, because these are simply scaled versions of the familiar triple. This quick-recognition skill is one of the most useful habits to carry forward from this topic, especially in multiple-choice or time-limited settings, where re-deriving a triple from scratch under time pressure wastes precious minutes. The figure below shows how one primitive triple sits at the root of a whole tree of scaled multiples, while the generating formula (met in the derivation next) reaches sideways to produce entirely new primitive roots.
Show, using only algebraic expansion that an eighth-grader already owns, that for any two positive whole numbers , the three quantities , , always satisfy exactly — so the formula is guaranteed to hand out a genuine Pythagorean triple no matter which and are picked, without ever needing to test the result by trial.
Step 1. Write down the three expressions to be tested: , , . The goal is to show by expanding both sides separately and comparing.
Step 2. Expand . Squaring a difference, .
Step 3. Expand . .
Step 4. Add . . The two middle terms combine because .
Step 5. Expand and compare. Squaring a sum, . This is identical, term for term, to the expression obtained for in Step 4. Hence for every choice of , which proves the formula always yields a valid Pythagorean triple. Check: gives ; gives ; gives , the same triple as with legs swapped.
Step 6. Notice what the derivation did not need. Nowhere in Steps 2–5 did the argument require and to be coprime, or to avoid being both odd, or to satisfy any condition beyond . The identity is a piece of pure algebra that holds for every such pair. What those extra conditions control is a different question — primitivity of the output, not its validity — which is why the formula is such a reliable triple-factory: plug in any two whole numbers with , and a genuine right-triangle triple falls out every time.
Worked example
Problem: Verify that is a Pythagorean triple and check whether it is primitive; then use the generating formula with to confirm it is produced by the same formula, and separately verify the scaled triple .
Step 1. Identify (the largest number), legs . Compute and . Since , is a valid triple.
Step 2. Check primitivity. Factors of : ; of : ; of : (prime). The only common factor is , so is primitive.
Step 3. Confirm via the generating formula. With : , , . This gives , the same triple as with the legs listed in the other order — the derivation above guarantees this works.
Step 4. Scale by : . Verify directly: , and . They match.
Final answer: is a primitive triple, matches the generating formula at , and its scaled multiple (with ) is also a confirmed Pythagorean triple.
Competitive stretch
Using in the generating formula: , , , giving — the same numbers as the standard triple , just with the legs swapped, since order of and never matters for the sum .
Common traps
- Assuming any three whole numbers form a triple: most sets do not satisfy ; always compute and compare both sides.
- Mislabelling which number is : the largest number must be tested as the hypotenuse, or the check will fail even for a genuine triple.
- Confusing "primitive" with "small": primitivity is about having no common factor, not about size — is primitive despite being numerically larger than the non-primitive .
- Requiring to satisfy no extra conditions: the formula works algebraically for any (the derivation makes no other assumption), though restricting to coprime and not both odd is what guarantees the result is primitive rather than a scaled copy.
- Forgetting that order of and does not matter: is symmetric in and , so and describe the exact same triangle; only is fixed as the largest number.
Ask the tutor: Want to pick your own and and have the tutor check whether your generated triple is primitive?
Why does scaling a triple always work, no matter what k is?
Because squaring distributes over multiplication: . Since the original triple already satisfies , this becomes , which is exactly the condition needed for to be a triple too. The proportional stretch keeps every angle the same, so you always land on a similar right triangle, just bigger or smaller.
Do I need to memorise the m, n generating formula for exams?
No — at this stage it is enrichment, not core testable content. What you are expected to do confidently is verify a given triple by checking , recall standard triples like , and , and scale a primitive triple by a whole number . The generating formula is worth understanding because it explains where new triples come from and why they never run out, but you will not be asked to apply it cold in a core-board exam — treat the derivation as insight, not a formula to drill.
If m and n can be any whole numbers, why do people restrict them to be coprime and not both odd?
The algebra in the derivation proves for any , so the triple is always valid. But if and share a common factor, or are both odd, the resulting turns out to have a common factor too — it is a scaled copy of a smaller primitive triple, not a fresh primitive one. Restricting to coprime not both odd is simply the extra condition that guarantees you land on a new primitive triple rather than rediscovering a multiple of one you already know.