Add odd numbers: 1 = 1², 1 + 3 = 2², 1 + 3 + 5 = 3². The sum of the first n odd numbers is n², and the nth odd number is 2n − 1.
The first n − 1 odd numbers add to (n − 1)², so
(n − 1)² + (2n − 1) = n²
(You can also get this by expanding (n − 1)² and adding 2n − 1.) Now, if the odd number 2n − 1 is itself a square, this is a square plus a square making a square!
Example 1: 9 = 3² is the 5th odd number (2 × 5 − 1). With n = 5: 4² + 3² = 5², the triple (3, 4, 5).
Example 2: 25 = 5² is the 13th odd number. With n = 13: 12² + 5² = 13², the triple (5, 12, 13).
Your turn: 49 = 7² is the 25th odd number, giving (7, 24, 25); 81 = 9² is the 41st, giving (9, 40, 41).
In every triple made this way, the longest side is one more than another side. So not every primitive triple comes from this method: (8, 15, 17) does not.
Tap the diagram to enlarge it
- 1 + 3 + … + (2n − 1) = n²
- (n − 1)² + (2n − 1) = n²
- Odd square 2n − 1 gives a triple