Math Lab
Home/Class VIII/Ch 9/Pythagorean triples

Pythagorean triples

A Pythagorean triple is a set of three positive integers (a,b,c)(a, b, c) that satisfy a2+b2=c2a^2 + b^2 = c^2. They are special because they form right triangles with all-integer sides , a coincidence that has fascinated mathematicians for thousands of years.

Concept

Primitive triples. A triple is primitive if a,b,ca, b, c share no common factor. The smallest few are:

(3,4,5),(5,12,13),(8,15,17),(7,24,25),(20,21,29),(9,40,41),(12,35,37),(3, 4, 5), (5, 12, 13), (8, 15, 17), (7, 24, 25), (20, 21, 29), (9, 40, 41), (12, 35, 37), \dots

Multiples. Multiplying every member of a triple by the same integer gives another triple. So (3,4,5)(6,8,10)(9,12,15)(15,20,25)(3, 4, 5) \to (6, 8, 10) \to (9, 12, 15) \to (15, 20, 25), etc. Each represents the same right triangle, just at different scales.

A formula for triples. Choose any two positive integers m>nm > n with no common factor and not both odd. Then

a=m2n2,b=2mn,c=m2+n2a = m^2 - n^2, \quad b = 2mn, \quad c = m^2 + n^2

is always a primitive Pythagorean triple.

Examples.

mmnna=m2n2a = m^2 - n^2b=2mnb = 2mnc=m2+n2c = m^2 + n^2
2211334455
33225512121313
44111515881717
44337724242525
5522212120202929

Quick check. For m=2,n=1m=2, n=1: a=3,b=4,c=5a=3, b=4, c=5. And 9+16=259+16=25. ✓

Why it works. Compute a2+b2a^2 + b^2:

(m2n2)2+(2mn)2=m42m2n2+n4+4m2n2=m4+2m2n2+n4=(m2+n2)2=c2.(m^2 - n^2)^2 + (2mn)^2 = m^4 - 2m^2 n^2 + n^4 + 4 m^2 n^2 = m^4 + 2m^2 n^2 + n^4 = (m^2 + n^2)^2 = c^2.

So the identity a2+b2=c2a^2 + b^2 = c^2 comes from a clean algebraic identity. Beautiful.

Where triples appear. Carpenters use the "33-44-55" rule to check that a corner is exactly 9090^\circ: measure 33 units along one wall, 44 along the other, and if the diagonal is 55, the angle is square. This trick has been used in temple-building and bridge-building for thousands of years.

Worked examples

Example 1. Verify that (7,24,25)(7, 24, 25) is a triple.

  • 72+242=49+576=625=2527^2 + 24^2 = 49 + 576 = 625 = 25^2. ✓

Example 2. Find a triple using m=4,n=3m = 4, n = 3.

  • a=169=7a = 16 - 9 = 7, b=212=24b = 2 \cdot 12 = 24, c=16+9=25c = 16 + 9 = 25. (The (7,24,25)(7,24,25) triple.)

Example 3. Is (20,21,29)(20, 21, 29) a triple? Generate it with m,nm, n.

  • 400+441=841=292400 + 441 = 841 = 29^2. ✓
  • m=5,n=2m = 5, n = 2: a=254=21,b=20,c=29a = 25 - 4 = 21, b = 20, c = 29. ✓

Example 4. Is (6,8,10)(6, 8, 10) primitive?

  • GCD of 6,8,106, 8, 10 is 22, so divide by 22: (3,4,5)(3, 4, 5) is the primitive form. So (6,8,10)(6,8,10) is not primitive.

Try it yourself

  1. Verify (8,15,17)(8, 15, 17) is a Pythagorean triple.
  2. Generate the triple from m=5,n=4m = 5, n = 4.
  3. Is (9,12,15)(9, 12, 15) a primitive triple?
  4. Find the next triple after (9,40,41)(9, 40, 41) from the table (try m=7,n=2m = 7, n = 2).
  5. Show (11,60,61)(11, 60, 61) is a triple. With what m,nm, n?
  6. Carpenter's check: how would you confirm a corner is 9090^\circ using a tape measure?
  7. Generate a triple from m=6,n=5m = 6, n = 5.
  8. List all primitive triples with c<30c < 30.

Activity / Insight

Corner check. Use a long ruler or measuring tape to verify the right angle at a corner of your classroom or kitchen. Measure 33 ft along one wall, 44 ft along the perpendicular wall, and check that the diagonal is exactly 55 ft. If it is, the corner is perfectly 9090^\circ. If not, the wall is slightly skewed. This is exactly how surveyors check building corners.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Pythagorean triples
5 questions · pick the best answer
Q1

Which is a Pythagorean triple?

Q2

Triple from m=3,n=2m=3, n=2

Q3

Is (9,12,15)(9,12,15) primitive?

Q4

Largest member of triple from m=4,n=1m=4, n=1

Q5

Verify (20,21,29)(20, 21, 29) by adding squares of the legs: