Skip to lesson content

Lesson 6 of 9

The Baudhayana-Pythagoras Theorem · Lesson 6 of 9

Generating Triples and Exploring Higher Powers

“Use sums of odd numbers to generate primitive triples and explore how Fermat extended the question to higher powers.”

Learning Objectives

• Relate the sum of the first n odd numbers to n². • Use consecutive squares to build new integer triples. • Explain why the generated triples are primitive. • Recognise a limitation of this generation method. • State Fermat’s higher-power question with its correct restrictions.

Enlarging the triangle with sides 3, 4, and 5 gives many new lengths, but all of those triangles belong to one scaled family. How might you discover a genuinely different starting triple, such as 5, 12, and 13? Instead of searching through every possible triangle, look at a familiar number pattern: the way square numbers grow when you add successive odd numbers.

A square can be enlarged by attaching an L-shaped border of dots. The border contains an odd number of dots. Occasionally that odd number is itself a perfect square. At that moment, the growing-square picture becomes an equation in which two squares add to another square.

We will turn this observation into a method, explain which triples it produces, and then consider a related question about cubes and higher powers. Distinguish what you have proved from what you have merely noticed in examples.

The Sum of Consecutive Odd Numbers

Begin with one dot. Adding 3 dots makes a 2-by-2 square; adding the next 5 makes a 3-by-3 square. The successive totals are 1, 4, 9, 16, and so on. These are square numbers.

To grow a square of side n − 1 into a square of side n, add a new row of n dots and a new column of n − 1 further dots. The corner dot has already been counted in the row. The total added is n + (n − 1) = 2n − 1, the nth odd number.

The existing square contains (n − 1)² dots. Adding the border of 2n − 1 dots gives n² dots. This explains the identity (n − 1)² + (2n − 1) = n². It also explains why the sum of the first n odd numbers is n².

Growing a square by an odd borderLaTeX
The final odd number is 2n − 1, and there are n odd numbers in the sum.
A 4 × 4 square grows into a 5 × 5 square16 blue dots + 9 orange dots = 25 dots
An L-shaped border of nine dots changes a four-by-four square into a five-by-five square

The Difference Between Consecutive Squares

Subtract (n − 1)² from the growing-square equation. You obtain n² − (n − 1)² = 2n − 1. So the difference between consecutive squares is always an odd number.

You can check this algebraically. Expanding (n − 1)² gives n² − 2n + 1. Subtracting it from n² leaves 2n − 1. The dot picture and the algebra describe the same relationship in different forms.

Usually the added odd number is not a square: 7, for instance, is not a square. But 9, 25, 49, and 81 are both odd and square. These are the useful border sizes for generating triples.

Choosing an Odd Number That Is Also a Square

Choose the odd square 9 = 3². It is the fifth odd number, since 2 × 5 − 1 = 9. The growing-square identity with n = 5 gives 4² + 9 = 5². Replacing 9 by 3² gives 4² + 3² = 5².

Now choose 25 = 5². It is the thirteenth odd number because 2 × 13 − 1 = 25. The same identity gives 12² + 25 = 13², hence 12² + 5² = 13². We have generated a new primitive triple rather than scaled the original one.

The steps are: choose an odd square greater than 1, find its position among the odd numbers, and use that position for n. The resulting triangle has perpendicular sides equal to the chosen odd square’s root and n − 1, with hypotenuse n.

Generating the 5–12–13 triple

Problem
Use the odd square 25 to generate a triple.

  1. 1.Find n from 2n − 1 = 25: add 1 to get 2n = 26, then divide by 2 to get n = 13.
  2. 2.Substitute in (n − 1)² + (2n − 1) = n²: 12² + 25 = 13².
  3. 3.Replace 25 by 5²: 12² + 5² = 13².
  4. 4.Therefore (5, 12, 13) is the generated triple. Check: 25 + 144 = 169.
Generating a larger triple

Problem
Use the odd square 49.

  1. 1.Solve 2n − 1 = 49 to get 2n = 50 and n = 25.
  2. 2.The consecutive sides are n − 1 = 24 and n = 25.
  3. 3.Since 49 = 7², the identity gives 24² + 7² = 25².
  4. 4.The triple is (7, 24, 25); 576 + 49 = 625 confirms it.

Generating New Triples

For any odd positive integer m greater than 1, choose the border m². Solving 2n − 1 = m² gives n = (m² + 1)/2. The preceding side is n − 1 = (m² − 1)/2. Both are integers because an odd square plus or minus one is even.

You may use this expression as a shortcut after understanding the growing-square reasoning. Excluding m = 1 is necessary: it would give a zero side, and a triangle cannot have a side of length zero.

The odd-square constructionLaTeX
m is an odd integer greater than 1. This formula is a compact form of the consecutive-square construction, not a claim to generate every primitive triple.
Chosen odd number mOdd square m²Generated triple
39(3, 4, 5)
525(5, 12, 13)
749(7, 24, 25)
981(9, 40, 41)
11121(11, 60, 61)
13169(13, 84, 85)
15225(15, 112, 113)
A triple generated from 81

Problem
Generate and verify the triple from the odd square 81.

  1. 1.Solve 2n − 1 = 81 to obtain n = 41.
  2. 2.The consecutive entries are 40 and 41, and √81 = 9.
  3. 3.The triple is therefore (9, 40, 41).
  4. 4.Verify: 9² + 40² = 81 + 1600 = 1681 = 41².

Why These Triples Are Primitive

Every generated triple contains n − 1 and n. Consecutive integers have no common factor greater than 1. If a number divided both, it would divide their difference, which is 1.

Any factor common to all three entries would have to divide these two consecutive entries. That is impossible unless the factor is 1. Therefore every triple produced by this method, with an odd m greater than 1, is primitive.

The chosen odd number m need not be prime. For m = 9, the triple (9, 40, 41) is primitive even though 9 is composite. Primitiveness concerns a shared factor of the complete triple.

What This Method Misses

A method that produces only primitive triples need not produce all primitive triples. Look at (8, 15, 17). It satisfies the theorem, and its entries have greatest common factor 1. Yet neither perpendicular side is one less than the hypotenuse: 17 − 15 = 2 and 17 − 8 = 9.

Our method always produces a side n − 1 and a hypotenuse n. The triple (8, 15, 17) does not have that pattern, so it cannot come from this particular construction. This is a counterexample to the claim that the method finds every primitive triple.

Nevertheless, there are infinitely many odd integers greater than 1, and their values of (m² + 1)/2 keep increasing. Thus this construction does produce infinitely many distinct primitive triples, even though some other primitive triples are missed.

Activity: generate, check, and compare

Use odd squares 49, 81, 121, 169, and 225 to generate five triples beyond the first two examples. Verify at least two by direct squaring. For each triple, point to the two consecutive entries and explain why they establish primitiveness. Then compare with (12,35,37): it is primitive, but its largest entry is not one more than either smaller entry, so this method misses it too.

A Long-Standing Open Problem

The equation x² + y² = z² has many positive-integer solutions. Fermat asked what happens if the power 2 is replaced by 3, 4, or a higher integer. Can two positive perfect cubes add to another positive perfect cube? Can two positive fourth powers add to a fourth power?

Trying the entries 3, 4, and 5 gives 3³ + 4³ = 27 + 64 = 91, whereas 5³ = 125. So a square-power triple does not automatically work for cubes. However, the failure of one example does not establish the failure of every possible example.

Fermat proposed the much stronger statement that xⁿ + yⁿ = zⁿ has no solutions in positive integers x, y, and z when n is an integer greater than 2. This is known as Fermat’s Last Theorem. A note he left claimed a proof, but no such proof by him was found. The problem resisted attempts for more than 300 years.

Andrew Wiles encountered the problem as a ten-year-old and later devoted years to it. His proof was completed in 1994. The problem is no longer open. Its proof uses mathematics far beyond what is needed here; the lesson is to understand the question and the difference between checking examples and proving a general statement.

Fermat’s Last TheoremLaTeX
There are no solutions with x, y, z positive integers and n an integer greater than 2. The restriction on n distinguishes this from right-triangle triples.
Why the restrictions matter

The word positive excludes zero. If zero were allowed, 0³ + 2³ = 2³ would be an immediate equality. The restriction to integers also matters; the theorem is not a statement that arbitrary real-number lengths cannot satisfy higher-power equations. Keep the conditions attached to the claim.

Quiz

Quick check

What is the nth odd number?

Quick check

Using the odd square 49, what is n in 2n − 1 = 49?

Quick check

Why are the generated triples primitive?

Quick check

Which primitive triple cannot be generated by this odd-square method?

Quick check

Which is the correct statement of Fermat’s result?

Practice Problems

Practice Problems
  1. Use 1 + 3 + 5 + 7 + 9 to explain the triple (3,4,5). Solution: 1. The first four odd numbers sum to 4² = 16. 2. Adding the fifth, 9 = 3², gives 5² = 25. 3. Thus 4² + 3² = 5².
  2. Generate a triple using the odd square 121. Solution: 1. Solve 2n − 1 = 121 to get n = 61. 2. The other consecutive entry is 60, and √121 = 11. 3. The triple is (11,60,61); 121 + 3600 = 3721 = 61².
  3. Generate a triple from m = 15 and explain whether it is primitive. Solution: 1. m² = 225, so n = (225 + 1)/2 = 113. 2. The triple is (15,112,113). 3. 112 and 113 are consecutive, so no factor greater than 1 divides all entries. It is primitive.
  4. Does the existence of the primitive triple (12,35,37) contradict our generation method? Solution: 1. Verify 12² + 35² = 144 + 1225 = 1369 = 37². 2. The method is valid but incomplete: it never claimed to produce all primitive triples. 3. Since neither 12 nor 35 equals 36, this triple lacks the consecutive-side pattern and is missed.
  5. A student checks ten cube examples and announces a proof of Fermat’s Last Theorem. Explain the gap and state the theorem correctly. Solution: 1. Ten failed examples leave infinitely many possible positive-integer choices unchecked. 2. A universal proof must cover every allowed choice, not only the tested ones. 3. The theorem states that xⁿ + yⁿ = zⁿ has no positive-integer solutions when n is an integer greater than 2.

Key Takeaways

Key Takeaways

• Adding the nth odd number grows (n − 1)² into n². • An odd border that is itself a square produces a sum of two squares equal to a square. • For odd m > 1, the method gives (m, (m² − 1)/2, (m² + 1)/2). • The generated triples are primitive because two entries are consecutive. • The method misses some primitive triples, including (8,15,17). • Fermat’s Last Theorem concerns positive-integer solutions at integer powers greater than two. • Checking examples supports a pattern but does not by itself prove a universal statement.