Generating triples
Problem
Generating Triples printable sheet
Charlie has been investigating square numbers. He decided to organise his work in a table:
Charlie noticed some special relationships between certain square numbers:
$$3^2+4^2=5^2$$ $$5^2+12^2=13^2$$
Sets of integers like ${3,4,5}$ and ${5,12,13}$ are called Pythagorean Triples, because they could be the lengths of the sides of a right-angled triangle.
He wondered whether he could find any more...
Can you extend Charlie's table to find any more sets of Pythagorean Triples where the hypotenuse is 1 unit longer than one of the other sides?
Do you notice any patterns?
Can you make any predictions?
Can you find a formula that generates Pythagorean Triples like Charlie's?
Can you prove that your formula works?
Alison has been working on Pythagorean Triples where the hypotenuse is 2 units longer than one of the other sides.
So far, she has found these:
$$4^2 + 3^2 = 5^2$$ $$6^2+8^2=10^2$$ $$8^2+15^2=17^2$$
Some of these are just scaled-up versions of Charlie's triples, but some of them are new and can't be divided by a common factor (these are called primitive triples).
Can you find more Pythagorean Triples like Alison's?
Can you find a formula for generating Pythagorean Triples like Alison's?
Can you prove that your formula works?
Here are some follow-up questions you might like to consider:
- Can you find Triples where the hypotenuse is 3 units longer than one of the other sides? Or 4 units longer? Or...?
- Can you say anything about when such triples will be primitive triples?
For a challenging extension investigation, why not take a look at Few and Far Between?
Getting Started
Where is the $5^2$?
Where is the $12^2$?
Where is the $13^2$?
Where might we find a similar set of related square numbers?
Student Solutions
Elliott from Wilson's school used a spreadsheet to find sets of triples where the hypotenuse is 1, 2, 3 and 4 units bigger than one of the other sides. He explains his method:
If you square each number, subtract one square from the square greater than it, then square root this number, you can find Pythagorean Triples. If the result is a whole number, the two numbers and the square rooted number make up a Pythagorean Triple.
For example, $24^2 = 576$, and $25^2 = 625$. $625-576 = 49 = 7^2$, so $(7, 24, 25)$ make up a Pythagorean Triple.
The first square, when the hypotenuse is one greater than the other side, is always odd, increasing by two each time.
$9^2 + 40^2 = 41^2$
$11^2 + 60^2 = 61^2$
$13^2 + 84^2 = 85^2$
If, instead of subtracting the square from the square one greater than it, you subtract it from the square two greater, you can work out the Pythagorean Triples similar to Alison's.
For example, $15^2 = 225$ and $17^2 = 289$. $289 - 225 = 64 = 8^2$ so $(8, 15, 17)$ makes up a Pythagorean Triple.
The first square number is always even and increases by two each time.
$10^2 + 24^2 = 26^2$
$12^2 + 35^2 = 37^2$
$14^2 + 48^2 = 50^2$
If the hypotenuse is three longer than a side, the shortest side increases by 6 each time (starting on 3) e.g. 3, 15, 21, 27 etc. If the hypotenuse is four units longer, the shortest side increases by 4 each time e.g. 4, 8, 12, 16 etc.
Michael from St Patrick's in Australia used the following method:
All of Charlie's triples have an even square in them. Using that, the triples for Charlie are
$1^2 + 0^2 = 1^2$
$3^2 + 4^2 = 5^2$
$5^2 + 12^2 = 13^2$
$7^2 + 24^2 = 25^2$
$9^2 + 40^2 = 41^2$
$11^2 + 60^2 = 61^2$
$13^2 + 84^2 = 85^2$
There is a pattern. The smaller, odd, square number will always rise by two. The larger, even, square number will go up by multiples of four in order, 4,8,12,16,20,24 etc. The answer will always be one square number more than the largest number in the equation.
The next equation in the pattern will be $15^2+112^2=113^2$. $15^2=225, 112^2=12544,$ and $113^2=12769$. $12544+225=12769$.
Thomas, also from St Patrick's sent us his work on Alison's Pythagorean triples:
The hypotenuse is two units longer than one of the other sides. Can you find a formula for generating Pythagorean Triples like Alison's? Can you prove that your formula works?
The three examples given are: 4 ²+3 ²=5 ² 6 ²+8 ²=10 ² 8 ²+15 ²=17 ² There is a pattern here (from left to right) the first number goes up by 2. The second number goes up by 5 then by 7 so it only makes sense that in the next equation the second number would be (15+9)=24. The third number again goes up by 5 then 7 so the third number should be (17+9) =26 Using this info I can make the accurate assumption that the next equation in line will be; 10 ²+24 ²=26 ². Now to prove this, 10 ²=100 and 24 ²=576 so 100+576=676. 26 ²=676. The next two equations in line will be 12 ²+35 ²=37 ² 14 ²+48 ²=50 ²
I wonder if you can explain why Michael's and Thomas's patterns generate Pythagorean triples?
Nathan from Rushmore School observed:
If $x+x+1=y^2$, $y,x,x+1$ make a Pythagorean triple.
Get two consecutive whole numbers that add up to a square number. For example, $4$ and $5$ - $4+5=9$ and $\sqrt9=3$ 3,4 and 5 make a Pythagorean triple. $12$ and $13$ - $12+13=25$ $\sqrt{25}=5$ 5,12 and 13 make a Pythagorean triple.
The inverse of this is get any odd number ($x$) and square it. Halve the square number and add/take away half to make $y$ and $z$. $x,y$ and $z$ will be Pythagorean triples.
Once you have these numbers you can multiply the triples by $n$ to make more Pythagorean triples.
Lucy from Belgium sent us her solution:
The formula is (2n+1) ² + (2n ²+2n) ² = (2n ²+2n+1) ²
I tried it a few times :
If n=1 => 3 ² + 4 ² = 5 ²
If n=5 => 11 ² + 60 ² = 61 ²
Finding that you need an odd square number as the difference between the two other numbers wasn't so difficult. And then I found that between 4 and 12 there were 8 units, between 12 and 24 there are 12 units, and then 16 units and 20 units and so on... Which meant that the n was multiplied each time with the previous number+2
n=1 was multiplied by 4 to get to 4
n=2 was multiplied by 6 to get to
12 n=3 was multiplied by 8 to get to 24 and so on again... in other words n was multiplied by the odd square number plus one => n(2n+2) => (2n ²+2n) the last number is just one unit more so that is (2n ²+2n+1)
Well done Lucy! Can you show algebraically that the expression will always give a Pythagorean triple?
We also received solutions from Niharika, Chuyi and Rajeev.
Teachers' Resources
Why do this problem?
This problem connects different areas of mathematics. Students are required to apply their knowledge of Pythagoras' theorem and properties of numbers, while using their algebra skills to make generalisations and prove their conjectures.
Possible approach
Set students to work in pairs looking for more Pythagorean triples. "At the end of the lesson, I want you to be able to explain a method for generating more Pythagorean triples where $b$ and $c$ differ by just 1, and to be able to explain how you know your method will always work."
For some students, it may be appropriate to nudge them towards algebraic representations to justify their findings. This could start with writing the relationship as $a^2 + b^2 = (b+1)^2$
to explain why $a$ needs to be an odd number.
Then students could move on to the more sophisticated idea of writing $a^2$ as $(2n+1)^2$ and using their results to find expressions for $b$ and $c$ in terms of $n$.
If more lesson time is available, students can go on to use their insights from investigating the case where $b$ and $c$ differ by 1 to explore triples where they differ by more than 1. There are some suggestions for follow-up questions in the problem.
Key questions
Possible support
What's Possible? offers a rich exploration of properties of square numbers that could be a good starting point for working on this problem.