Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 8 Maths Pythagoras

Testing for Pythagorean Triads

20 practice questions 2 video lessons Theory + worked examples

A Pythagorean triad is a set of three whole numbers, such as \((5, 12, 13)\), where the squares of the two smaller numbers add up to the square of the largest. In NSW Year 8 maths, triads give right-angled triangles whose sides are all whole numbers (NESA outcome MA4‑PYT‑C‑01).

You will test sets of numbers, including sets not written in order, and give a reason for each answer. You will find a missing number in a triad, build new triads by multiplying \((3, 4, 5)\) or \((8, 15, 17)\) by a whole number, and see why adding two triads does not work. Tilers and landscapers use triads to set out square corners with no rounding. It is part of Year 8 Pythagoras.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • Testing for Pythagorean Triads - Video - Testing for Pythagorean Triads - Example 1 Watch
  • Testing for Pythagorean Triads - Video - Testing for Pythagorean Triads - Example 2 Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A Pythagorean triad is three whole numbers \(a\), \(b\), \(c\) with \(a^2 + b^2 = c^2\), where \(c\) is the largest. A triad gives a right-angled triangle whose sides are all whole numbers. This Year 8 maths page shows how to test a set, find a missing number and build new triads.

Three whole numbers \(a\), \(b\) and \(c\) are a Pythagorean triad when \(a^2 + b^2 = c^2\), where \(c\) is the largest of the three. For example \((3, 4, 5)\): \(9 + 16 = 25\).

The test. Pick out the largest number: that is \(c\). Square the two smaller numbers and add. Square the largest number. Equal means yes; not equal means no.

Any order. The largest number is \(c\) wherever it is written: \((53, 28, 45)\) is tested as \(28^2 + 45^2\) against \(53^2\).

Whole numbers only. Decimals such as \(1.5\), \(2\), \(2.5\) fit \(a^2 + b^2 = c^2\) and make a right-angled triangle, but they are not a triad.

Multiples. Multiply all three numbers of a triad by the same whole number and you get another triad: doubling \((3, 4, 5)\) gives \((6, 8, 10)\). Adding two triads does not give a triad.

Missing number. Missing the largest: add the squares of the two smaller, then take the square root. Missing a smaller one: subtract from the square of the largest, then take the square root. A whole-number answer makes a triad.

A pattern. Start with an odd number \(n\). The middle number is \((n^2 - 1) \div 2\) and the largest is one more. Starting with \(3\) gives \((3, 4, 5)\); starting with \(9\) gives \((9, 40, 41)\).

Squares on the sides of a 3, 4, 5 triangle A right-angled triangle with sides 3, 4 and 5. Squares on the shorter sides have areas 9 and 16; the square on the longest side has area 25. 16 9 25
Squares drawn on the sides of a \(3\), \(4\), \(5\) triangle. The two green areas add to \(9 + 16 = 25\), the red area. Three whole numbers that do this are a triad.

Common Pythagorean triads (and their multiples):

TriadCheckA multiple
\((3, 4, 5)\)\(9 + 16 = 25\)\((6, 8, 10)\)
\((5, 12, 13)\)\(25 + 144 = 169\)\((10, 24, 26)\)
\((8, 15, 17)\)\(64 + 225 = 289\)\((16, 30, 34)\)
\((7, 24, 25)\)\(49 + 576 = 625\)\((14, 48, 50)\)
\((9, 40, 41)\)\(81 + 1600 = 1681\)\((18, 80, 82)\)
\((20, 21, 29)\)\(400 + 441 = 841\)\((40, 42, 58)\)
Add the squares, not the numbers. \(5 + 7 = 12\), but \(5^2 + 7^2 = 74\) and \(12^2 = 144\), so \((5, 7, 12)\) is not a triad.
Close is not equal. For \((8, 9, 12)\): \(64 + 81 = 145\) but \(12^2 = 144\). One apart is still a no.

How to test for a Pythagorean triad

  1. Check all three are whole numbers.
  2. Pick the largest as \(c\).
  3. Work out \(a^2 + b^2\) and \(c^2\).
  4. Compare: equal means it is a triad.

How to find a missing number

  1. Largest missing: \(c = \sqrt{a^2 + b^2}\).
  2. Smaller missing: \(a = \sqrt{c^2 - b^2}\).
  3. Check the answer is a whole number.
Example 1 — A triad
Test \((17, 144, 145)\) to decide whether it is a Pythagorean triad.
Solution
\(17^2 + 144^2\)\(=\)\(289 + 20\,736\)
\(\)\(=\)\(21\,025\)
\(145^2\)\(=\)\(21\,025\)
17+144=21025=145

Equal, so \((17, 144, 145)\) is a Pythagorean triad.

Example 2 — Not a triad
Test \((11, 110, 111)\) to decide whether it is a Pythagorean triad.
Solution
\(11^2 + 110^2\)\(=\)\(121 + 12\,100\)
\(\)\(=\)\(12\,221\)
\(111^2\)\(=\)\(12\,321\)
11+110=12221 but 111=12321

\(12\,221 \ne 12\,321\), so \((11, 110, 111)\) is not a triad.

Example 3 — Not written in order
Is \((20, 12, 15)\) a Pythagorean triad?
Solution

The largest number is \(20\), so \(20\) is \(c\), even though it is written first.

\(12^2 + 15^2\)\(=\)\(144 + 225 = 369\)
\(20^2\)\(=\)\(400\)
12+15=369 but 20=400

\(369 \ne 400\), so it is not a triad.

Example 4 — A bigger triad
\((12, 35, 37)\) is a triad.
(i) Multiply each number by \(3\).
(ii) Show that the new set is a triad.
Solution
\(12^2 + 35^2\)\(=\)\(144 + 1225\)
\(\)\(=\)\(1369 = 37^2\)
\(36^2 + 105^2\)\(=\)\(1296 + 11\,025\)
\(\)\(=\)\(12\,321\)
\(111^2\)\(=\)\(12\,321\)
36+105=12321=111

(i) \((36, 105, 111)\)
(ii) Both sides give \(12\,321\), so it is a triad.

Example 5 — A missing number
\((48, x, 73)\) is a Pythagorean triad. Find \(x\).
Solution

\(73\) is the largest, so the missing number is a smaller one: subtract.

\(x^2\)\(=\)\(73^2 - 48^2\)
\(\)\(=\)\(5329 - 2304 = 3025\)
\(x\)\(=\)\(\sqrt{3025} = 55\)
x =5329−2304=3025, x =55

\(x = 55\). Check: \(48^2 + 55^2 = 2304 + 3025 = 5329 = 73^2\).

Example 6 — A pattern and a limit
(i) Use the odd-number pattern to find the triad that starts with \(13\).
(ii) How many triads \((20k, 21k, 29k)\), with \(k\) a whole number from \(1\), have a largest number less than \(100\)?
Solution
\((13^2 - 1) \div 2\)\(=\)\(168 \div 2\)
\(\)\(=\)\(84\)
\(13^2 + 84^2\)\(=\)\(169 + 7056\)
\(\)\(=\)\(7225 = 85^2\)
(169−1)÷2=84, so (13,84,85)29 k <100 gives k =1,2,3

(i) \((13, 84, 85)\)
(ii) \(29 \times 3 = 87 < 100\) but \(29 \times 4 = 116\), so \(k = 1, 2, 3\): \(3\) triads.

Common pitfalls

Adding the numbers instead of their squares. \(3 + 4 = 7\), not \(5\). Square first.
Not using the largest as c. Sort the numbers before you test.
Adding two triads. Adding \((3, 4, 5)\) and \((9, 40, 41)\) number by number gives \((12, 44, 46)\), and \(12^2 + 44^2 = 2080 \ne 2116 = 46^2\).
Counting decimals as a triad. A triad must be three whole numbers.

Frequently asked questions

What is a Pythagorean triad?

Three whole numbers \(a\), \(b\), \(c\) with \(a^2 + b^2 = c^2\), such as \((3, 4, 5)\).

How do you test for a Pythagorean triad?

Square the two smaller numbers and add. If the total equals the square of the largest, it is a triad.

Is a multiple of a triad also a triad?

Yes. Multiplying \((12, 35, 37)\) by \(2\) gives \((24, 70, 74)\), and \(576 + 4900 = 5476 = 74^2\).

How do you find a missing number in a triad?

Add the squares and take the root for the largest; subtract and take the root for a smaller one.

Why are triads useful?

They give right-angled triangles with whole-number sides, so builders can set out a square corner with no rounding.