math.wiki
Geometry › Triangles › Pythagorean triples
Open on the map
Math 8 · 8.G.B.7

Pythagorean triples

Most right triangles have a side that is not a whole number. Which ones have three whole-number sides, how many are there, and can you list them all?

Where you are 18 in Triangles

Why this exists

Take a right triangle at random and the chances are that one of its sides is a number you cannot write down exactly. Two legs of 1 give a hypotenuse of \displaystyle \sqrt{2}. Legs of 1 and 2 give \displaystyle \sqrt{5}. Both are decimals that never end and never repeat.

A few right triangles behave better. Legs of 3 and 4 give a hypotenuse of exactly 5, with no root and no rounding anywhere. A builder with a tape measure and no calculator can use that: mark 3 along one wall and 4 along the other, and if the gap between the marks reads 5, the corner is square, by the converse of the Pythagorean theorem.

That raises three questions. Are there other triangles like it? If so, is there a way to make them on demand, instead of hunting? And does that way reach all of them? The answers are yes, yes and yes, and the method is short enough to write on one line. It also turns up a surprise: every one of these triangles has a side that is a multiple of 3, a side that is a multiple of 4, and a side that is a multiple of 5.

Definition

A Pythagorean triple is three positive whole numbers a, b and c that satisfy the Pythagorean equation

a^2 + b^2 = c^2

It is written (a, b, c), and by custom a < b < c. The number c is always the largest, because c^2 = a^2 + b^2 is bigger than either square alone. The two legs can never be equal: a = b would give c^2 = 2a^2, so \displaystyle c \div a = \sqrt{2}, and the square root of 2 is not a fraction.

Two things follow at once from the converse and from the theorem itself. Every triple is the set of sides of a right triangle, with c as its hypotenuse. And every right triangle whose three sides are whole numbers gives a triple. “Pythagorean triple” and “right triangle with whole-number sides” are two names for one thing.

The smallest examples are (3, 4, 5), (5, 12, 13), (8, 15, 17) and (7, 24, 25).

Triples come in families. If (a, b, c) is a triple and k is any positive whole number, then (ka, kb, kc) is a triple too, because

(ka)^2 + (kb)^2 = k^2\,(a^2 + b^2) = k^2 c^2 = (kc)^2

That is scaling a similar triangle: the new triangle has the same angles and every side is k times as long. Figure 1 shows k = 2.

4 3 5 8 6 10
Figure 1Doubling every side of the 3, 4, 5 triangle gives another triple, 6, 8, 10, with the same shape.

A triple is primitive when its three numbers have no common factor larger than 1, that is, when \gcd(a, b, c) = 1. So (3, 4, 5) is primitive and (6, 8, 10) is not. Every triple is a primitive triple multiplied by some k: divide all three numbers by their greatest common factor and what is left is primitive. That means the whole subject reduces to finding the primitive triples, and then scaling them.

Intuition

Why should whole numbers ever fit? Start from a different direction. Rearrange the equation as

a^2 = c^2 - b^2

A triple is a place where two square numbers are a perfect square apart.

Look at squares that are neighbors. Going from 4^2 = 16 to 5^2 = 25 adds 9. Draw it: a 4 by 4 square, and to grow it to 5 by 5 you wrap an L-shaped border around two of its sides, as in Figure 2. The border has 4 + 4 + 1 = 9 small squares.

4^2 = 16
4^2 + 9 = 5^2
9 = 3^2
Figure 2Going from 4^2 to 5^2 adds an L-shaped border of 9 squares, and 9 is itself a square.

In general, going from b^2 to (b + 1)^2 adds a border of b + b + 1 = 2b + 1 squares, which is (b + 1)^2 - b^2 = 2b + 1. Now ask when that border is itself a perfect square. Here it is 9 = 3^2, and that is exactly the statement 3^2 + 4^2 = 5^2.

The borders are the odd numbers 3, 5, 7, 9, 11, \dots, and some of those are squares: 9, 25, 49, and in fact the square of every odd number from 3 on. So each odd number a \ge 3 starts a triple. Set 2b + 1 = a^2 and solve for b:

b = \frac{a^2 - 1}{2}, \qquad c = b + 1 = \frac{a^2 + 1}{2}

This gives (3, 4, 5), (5, 12, 13), (7, 24, 25), (9, 40, 41) and on without end. Because a is odd, a^2 is odd, so a^2 - 1 is even and b is a whole number.

So there are infinitely many triples, and already two ways to grow them: scale one, or use the border. But (8, 15, 17) is in neither list: it is primitive, so it is not a multiple of anything smaller, and 17 is 2 more than 15, not 1 more. A single formula that reaches every triple needs a better idea, and it is in the next section.

Results

The generating formula. Let m and n be whole numbers with m > n > 0. Then

(a, b, c) = \left(m^2 - n^2,\ 2mn,\ m^2 + n^2\right)

is a Pythagorean triple. It is primitive exactly when m and n have no common factor and one of them is even and the other odd. Every primitive triple arises this way, from exactly one pair (m, n), once the even leg is the one written as 2mn. Every triple at all is k times a primitive one:

\left(k(m^2 - n^2),\ 2kmn,\ k(m^2 + n^2)\right)

Here are the primitive triples from the first pairs that qualify. The formula lists the legs in the order m^2 - n^2, 2mn, so the first leg can be the larger.

mnm^2 - n^22mnm^2 + n^2
21345
3251213
4115817
4372425
52212029
5494041
61351237
65116061
72452853
74335665
76138485
81631665

A few things can be read straight off the formula and the pattern it makes.

What every triple contains. In every primitive triple, exactly one leg is even and the hypotenuse is odd. In every Pythagorean triple, primitive or not:

  • one of the legs is a multiple of 3,
  • one of the legs is a multiple of 4,
  • one of the three numbers a, b, c is a multiple of 5.

Since 3, 4 and 5 share no factor, it follows that the product abc is a multiple of 60. Check it on (5, 12, 13): 5 \cdot 12 \cdot 13 = 780 = 13 \cdot 60.

One fact about common factors. If a prime p divides two of the numbers a, b, c in a triple, then it divides the third. So a primitive triple has no two of its numbers sharing a factor, which is stronger than saying the three have none in common.

Why it is true

The proof has two halves: the formula always works, and it reaches every primitive triple. Along the way the facts about 3, 4 and 5 fall out. It uses two small tools.

Tool 1: squares and remainders. Every whole number is even or odd. An even number is 2k, and its square is 4k^2, a multiple of 4. An odd number is 2k + 1, and its square is 4k^2 + 4k + 1, which leaves remainder 1 when divided by 4. So a square leaves remainder 0 or 1 when divided by 4, and never anything else. The same idea works for other divisors:

NumberSquareRemainder on division by 3
3k9k^20
3k + 19k^2 + 6k + 11
3k + 29k^2 + 12k + 41
NumberSquareRemainder on division by 5
5k25k^20
5k \pm 125k^2 \pm 10k + 11
5k \pm 225k^2 \pm 20k + 44

Tool 2: coprime factors of a square. If two positive whole numbers u and v have no common factor and uv is a perfect square, then u and v are each perfect squares. The reason is unique prime factorization: in a perfect square every prime appears an even number of times, and since each prime divides only one of u and v, all its copies sit in that one, so each of u and v has every exponent even.

The formula always gives a triple. Expand and add:

\begin{aligned} (m^2 - n^2)^2 &= m^4 - 2m^2n^2 + n^4 \\ (2mn)^2 &= 4m^2n^2 \\ \text{sum} &= m^4 + 2m^2n^2 + n^4 \\ &= (m^2 + n^2)^2 \end{aligned}

This is the same identity as (x - y)(x + y) = x^2 - y^2 read in reverse, which is the difference of squares pattern. It needs only m > n > 0, so that the first number is positive.

The facts about common factors. Suppose a prime p divides a and b. Then p divides a^2 + b^2 = c^2, and a prime that divides a square divides the number, so p \mid c. Suppose instead p divides a and c. Then p divides c^2 - a^2 = b^2, so p \mid b. The case of b and c is the same. So a prime that divides two of the numbers divides all three.

Every primitive triple has an odd hypotenuse and one even leg. Let (a, b, c) be primitive. If c were even, then c^2 would leave remainder 0 on division by 4, so a^2 + b^2 would too. Each square leaves 0 or 1, and the only way two of those add to a multiple of 4 is 0 + 0. So a and b would both be even, and 2 would divide all three numbers, which a primitive triple does not allow. So c is odd. Then a^2 + b^2 is odd, which means one leg is odd and the other even. (Two odd legs would make a^2 + b^2 leave remainder 2, and c^2 never does.) Say a is odd and b is even.

Every primitive triple comes from the formula. From a^2 + b^2 = c^2,

b^2 = c^2 - a^2 = (c - a)(c + a)

Both c and a are odd, so c + a and c - a are even. Write c + a = 2u and c - a = 2v, with u > v > 0, and b = 2w. Then 4w^2 = 4uv, so

w^2 = uv

The numbers u and v have no common factor: a common divisor would divide u + v = c and u - v = a, but a and c share no factor. By Tool 2, both are squares. Write u = m^2 and v = n^2. Then

\begin{aligned} c &= u + v = m^2 + n^2 \\ a &= u - v = m^2 - n^2 \\ b &= 2w = 2mn \end{aligned}

and m > n > 0 because u > v > 0. The pair is unique, since m^2 = \dfrac{c + a}{2} and n^2 = \dfrac{c - a}{2} are fixed by the triple. The numbers m and n have no common factor, because a common divisor of m and n would divide u and v. And they are not both odd (then a = m^2 - n^2 would be even) and not both even, so one is even and one is odd.

Which pairs give primitive triples. A pair that fails the condition never gives a primitive triple: a common factor d > 1 of m and n makes d^2 divide all three numbers, and two odd numbers m, n make all three numbers even. Conversely, take a pair with no common factor and opposite parity. Then m^2 and n^2 have opposite parity, so a and c are both odd. A prime p dividing both would be odd and would divide c + a = 2m^2 and c - a = 2n^2, so it would divide m and n, which have no common factor. So a and c share no factor, and neither do all three. Scaling by k gives every other triple.

Divisible by 4. In a primitive triple the even leg is 2mn, and exactly one of m, n is even, so 2mn is a multiple of 2 \cdot 2 = 4. Scaling keeps it a multiple of 4.

Divisible by 5. Suppose none of a, b, c is a multiple of 5. By the second table, each square leaves remainder 1 or 4 on division by 5. Two such remainders add to 2, 5 or 8, which leave 2, 0 or 3, and none of those is 1 or 4, the only remainders c^2 can leave. That is a contradiction, so 5 divides at least one of the three numbers.

Divisible by 3. This one is Example 6.

Worked examples

Example 1

Checking a set of three numbers

Decide whether each of these is a Pythagorean triple: (a) (9, 40, 41), (b) (9, 12, 16), (c) (10, 24, 26). For each triple, say whether it is primitive.

Solution

The largest number is the candidate for c, because in a right triangle the hypotenuse is the longest side. Compute both sides of a^2 + b^2 = c^2 and compare.

(a) 9^2 + 40^2 = 81 + 1600 = 1681, and 41^2 = 1681. They match, so this is a triple. The number 41 is prime and does not divide 9, so the three have no common factor and the triple is primitive.

(b) 9^2 + 12^2 = 81 + 144 = 225, but 16^2 = 256. They do not match, so this is not a triple, and sides of 9, 12 and 16 do not make a right triangle. A close call does not count: the set (9, 12, 15) would be a triple, since 225 = 15^2.

(c) 10^2 + 24^2 = 100 + 576 = 676, and 26^2 = 676. It is a triple. All three numbers are even, so it is not primitive. Dividing by 2 gives (5, 12, 13), so this is 2 times a primitive triple.

Example 2

Scaling a triple

(a) A right triangle has whole-number sides and is similar to the 5, 12, 13 triangle. Its shortest side is 30. Find the other two sides. (b) A right triangle with whole-number sides is similar to the 3, 4, 5 triangle and has hypotenuse 35. Find its legs.

Solution

Similar right triangles have sides in the same ratios, so each is the original multiplied by one scale factor k, and (ka, kb, kc) is again a triple.

(a) The shortest side of (5, 12, 13) is 5, and 30 = 6 \cdot 5, so k = 6. The triangle is (30, 72, 78). Check: 30^2 + 72^2 = 900 + 5184 = 6084 = 78^2.

(b) The hypotenuse of (3, 4, 5) is 5, and 35 = 7 \cdot 5, so k = 7. The legs are 7 \cdot 3 = 21 and 7 \cdot 4 = 28. Check: 21^2 + 28^2 = 441 + 784 = 1225 = 35^2.

Example 3

Making triples from the formula

(a) Use m = 5 and n = 2. (b) Use m = 5 and n = 3. (c) Find the pair (m, n) that gives the triple (9, 40, 41).

Solution

(a) Put the numbers into (m^2 - n^2,\ 2mn,\ m^2 + n^2):

\begin{aligned} m^2 - n^2 &= 25 - 4 = 21 \\ 2mn &= 2 \cdot 5 \cdot 2 = 20 \\ m^2 + n^2 &= 25 + 4 = 29 \end{aligned}

The triple is (20, 21, 29). Check: 400 + 441 = 841 = 29^2. Here m and n have no common factor and one is odd, one even, so it is primitive.

(b) Now m^2 - n^2 = 25 - 9 = 16, 2mn = 30 and m^2 + n^2 = 34. The triple is (16, 30, 34), and it is a triple, as the formula promises. It is not primitive: every number is even, and it is 2 times (8, 15, 17). Both m and n were odd, which is what breaks the condition.

(c) The proof gives the pair directly. For a primitive triple with odd leg a and hypotenuse c,

\begin{aligned} m^2 &= \frac{c + a}{2} = \frac{41 + 9}{2} = 25 \\ n^2 &= \frac{c - a}{2} = \frac{41 - 9}{2} = 16 \end{aligned}

so m = 5 and n = 4. Check: 2mn = 40.

Example 4

When the hypotenuse is just above a leg

(a) A right triangle has whole-number sides. Its hypotenuse is 1 more than one leg, and the other leg is 21. Find the triangle. (b) The same, but the hypotenuse is 2 more than one leg, and the other leg is 20.

Solution

Call the leg the hypotenuse is close to b, and the other leg a. If the hypotenuse is c = b + d, then

a^2 = c^2 - b^2 = (b + d)^2 - b^2 = 2bd + d^2

(a) Here d = 1 and a = 21, so 441 = 2b + 1 and 2b = 440, giving b = 220 and c = 221. This is the border method of Figure 2 with a^2 = 441 as the border. Check: 21^2 + 220^2 = 441 + 48400 = 48841 = 221^2.

(b) Here d = 2 and a = 20, so 400 = 4b + 4, which gives 4b = 396, b = 99 and c = 101. Check: 20^2 + 99^2 = 400 + 9801 = 10201 = 101^2.

Example 5

Every triple with a given leg

Find every Pythagorean triple in which one of the legs is 15.

Solution

Let the other leg be b and the hypotenuse c. Then 15^2 = c^2 - b^2, and the difference of squares factors the right side:

225 = (c - b)(c + b)

So c - b and c + b are two whole numbers with product 225, and c - b is the smaller one, because b > 0. They cannot be equal, which would make b = 0. Given such a pair, add and halve to get c, subtract and halve to get b. The factor pairs of 225 with the smaller one first are 1 \cdot 225, 3 \cdot 75, 5 \cdot 45 and 9 \cdot 25. Every factor is odd, so each sum and difference is even and the halves are whole.

c - bc + bcbtriple
1225113112(15, 112, 113)
3753936(15, 36, 39)
5452520(15, 20, 25)
925178(8, 15, 17)

There are exactly four triples with a leg of 15. Only (8, 15, 17) and (15, 112, 113) are primitive. The other two are 3 times (5, 12, 13) and 5 times (3, 4, 5).

Example 6

A multiple of 3 in every triple

Show that in every Pythagorean triple at least one leg is a multiple of 3, and check it on (8, 15, 17) and (20, 21, 29).

Solution

A whole number is 3k, 3k + 1 or 3k + 2 for some whole k. The table in the proof shows their squares: 9k^2 is a multiple of 3, while 9k^2 + 6k + 1 = 3(3k^2 + 2k) + 1 and 9k^2 + 12k + 4 = 3(3k^2 + 4k + 1) + 1 each leave remainder 1. So a square leaves remainder 0 or 1 when divided by 3, and it leaves 0 exactly when the number is a multiple of 3.

Suppose neither leg were a multiple of 3. Then a^2 and b^2 would each leave remainder 1, so c^2 = a^2 + b^2 would leave remainder 2. But c^2 leaves only 0 or 1. That is a contradiction, so at least one leg is a multiple of 3.

Check: in (8, 15, 17) the leg 15 = 3 \cdot 5. In (20, 21, 29) the leg 21 = 3 \cdot 7.

Example 7

Counting primitive triples

How many primitive triples have a hypotenuse smaller than 50? List them.

Solution

A primitive triple corresponds to exactly one pair (m, n) with m > n > 0, no common factor, and opposite parity, and its hypotenuse is m^2 + n^2. So list the pairs with m^2 + n^2 < 50, going through m in turn.

  • m = 2: n = 1 works, c = 5.
  • m = 3: n = 2 works, c = 13. (n = 1 is odd like 3.)
  • m = 4: n = 1 gives c = 17 and n = 3 gives c = 25. (n = 2 shares the factor 2.)
  • m = 5: n = 2 gives c = 29 and n = 4 gives c = 41. (n = 1 and n = 3 are odd.)
  • m = 6: n = 1 gives c = 37. The next, n = 5, gives c = 61, too big, and n = 2, 3, 4 share a factor with 6.
  • m = 7: the smallest allowed n is 2, giving c = 53, which is already too big, and larger m only make c bigger.

That is seven triples, with hypotenuses 5, 13, 17, 25, 29, 37, 41:

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

Boundaries

Whole numbers only. A triple needs all three numbers whole, and the right triangle with legs 1 and 2 is not one, because its hypotenuse is \displaystyle \sqrt{5}. Right triangles with fractional or decimal sides are not lost, though. Multiply every side by a common denominator and a triple appears: sides 0.09, 0.4, 0.41 become 9, 40, 41 after multiplying by 100. A right triangle is out of reach only when its sides are not in a whole-number ratio, as with 1, 2, \displaystyle \sqrt{5}.

The equation has to hold exactly. Three whole numbers that nearly fit are not a triple, and do not make a right triangle. The sides 4, 5, 6 give 16 + 25 = 41 against 36.

The formula needs the multiplier. Without the factor k, the formula does not reach every triple. (9, 12, 15) is not (m^2 - n^2,\ 2mn,\ m^2 + n^2) for any whole m and n, and is reached only as k = 3 applied to (3, 4, 5).

Two familiar triangles are never triples. A triangle with angles 45^\circ, 45^\circ, 90^\circ has sides in the ratio \displaystyle 1 : 1 : \sqrt{2}, and one with angles 30^\circ, 60^\circ, 90^\circ has sides in the ratio \displaystyle 1 : \sqrt{3} : 2. Any whole-number multiple of either has an irrational side, so neither shape has a triple, as special right triangles show.

The exponent has to be 2. This lesson is about a^2 + b^2 = c^2. For every whole-number exponent n \ge 3, the equation a^n + b^n = c^n has no solution at all in positive whole numbers. That is Fermat’s Last Theorem, a deep result that was proved only in the 1990s, by methods far beyond this lesson. Nothing here depends on it.

Where this goes next

A triple makes every length in a picture whole. On a grid, the distance from the origin to the point (20, 21) is exactly 29, because the horizontal and vertical steps form a triple, and that is what the distance formula computes. The same thinking finds clean lengths in the figures of applications of the theorem.

Divide a triple by its hypotenuse and the equation becomes

\left(\frac{a}{c}\right)^2 + \left(\frac{b}{c}\right)^2 = 1

which says that the point \big(\tfrac{a}{c}, \tfrac{b}{c}\big) lies on the unit circle, the circle of radius 1, and both its coordinates are fractions. Figure 3 shows four of them. Going the other way, take a point on the quarter circle strictly between the axes with both coordinates fractions, and put them over their smallest common denominator c. The numerators are positive whole numbers a, b with a^2 + b^2 = c^2, and the three share no common factor. So these points and the primitive triples, with the order of the legs counted, match one for one, and the generating formula, its two legs taken in either order, lists every such point. (Points on the axes, such as (1, 0), give no triangle.)

\left(\tfrac{12}{13},\tfrac{5}{13}\right)
\left(\tfrac{4}{5},\tfrac{3}{5}\right)
\left(\tfrac{3}{5},\tfrac{4}{5}\right)
\left(\tfrac{5}{13},\tfrac{12}{13}\right)
Figure 3Dividing a triple by its hypotenuse gives a point on the circle of radius 1 with fractions for both coordinates.

The remainder arguments in this lesson are a first taste of modular arithmetic, where “leaves remainder 1 on division by 3” becomes a full language. And asking which whole numbers fit an equation, then finding one formula that lists all the answers, is what number theory spends much of its time on.

Exercises

Checking triples

  1. Is (12, 35, 37) a Pythagorean triple? If so, is it primitive?
  2. Is (9, 40, 42) a Pythagorean triple? Could three sticks of those lengths make a right triangle?
  3. Which of (11, 60, 61), (15, 36, 39) and (16, 30, 35) are Pythagorean triples? For each one that is, say whether it is primitive.
  4. A right triangle has legs 10 and 24. Find its hypotenuse, and say which primitive triple it is a multiple of.
  5. A rectangle is 40 cm by 75 cm. Is its diagonal a whole number of centimeters?

Scaling

  1. The triple (8, 15, 17) is multiplied by a whole number so that one of its legs becomes 45. Find the new triple.
  2. A right triangle has whole-number sides, hypotenuse 100, and is similar to the 3, 4, 5 triangle. Find its legs.
  3. Find every Pythagorean triple with hypotenuse 50.
  4. Find every Pythagorean triple with hypotenuse 65.

Using the formula

  1. Use m = 8 and n = 3 to make a triple. Write it with the smaller leg first.
  2. Use m = 7 and n = 4 to make a triple.
  3. Use m = 4 and n = 2. Why is the result not primitive, and which primitive triple is it a multiple of?
  4. Find the pair (m, n) that gives the primitive triple (28, 45, 53).
  5. Find the pair (m, n) that gives the primitive triple (13, 84, 85).
  6. Find every primitive triple in which the even leg is 60.

Families and patterns

  1. A right triangle has whole-number sides. Its hypotenuse is 1 more than one leg, and its other leg is 15. Find the triangle.
  2. A right triangle has whole-number sides. Its hypotenuse is 2 more than one leg, and its other leg is 16. Find the triangle.
  3. A right triangle has whole-number sides and perimeter 40. Find its sides.

Reasoning

  1. Show that the area of a right triangle with whole-number sides is a whole number.
  2. Show that every whole number n \ge 3 is a leg of some Pythagorean triple. Treat odd and even n separately.
  3. Show that 3 never divides the hypotenuse of a primitive triple.
  4. Explain why (9, 12, 15) cannot come from the formula with whole numbers m and n, and how it is reached instead.
  5. Explain why no Pythagorean triple has a leg equal to 1.
Answers
  1. Yes, and it is primitive. 12^2 + 35^2 = 144 + 1225 = 1369 = 37^2. The number 37 is prime and does not divide 12, so the three numbers have no common factor.
  2. No. 9^2 + 40^2 = 81 + 1600 = 1681, but 42^2 = 1764. Sticks of 9, 40 and 42 could not make a right triangle: the longest, 42, would be the hypotenuse, and then the equation would have to hold.
  3. (11, 60, 61) is a primitive triple: 121 + 3600 = 3721 = 61^2, and 61 is prime. (15, 36, 39) is a triple, not primitive: 225 + 1296 = 1521 = 39^2, and it is 3 times (5, 12, 13). (16, 30, 35) is not a triple: 256 + 900 = 1156, which is 34^2, not 35^2 = 1225.
  4. The hypotenuse is 26, and the triple is 2 times (5, 12, 13). 10^2 + 24^2 = 100 + 576 = 676 = 26^2, and dividing all three numbers by 2 gives (5, 12, 13).
  5. Yes, it is 85 cm. The diagonal squared is 40^2 + 75^2 = 1600 + 5625 = 7225 = 85^2. The sides are 5 times 8 and 5 times 15, so the triple is 5 times (8, 15, 17).
  6. (24, 45, 51). The leg 45 is 3 \cdot 15, so multiply by 3. Check: 24^2 + 45^2 = 576 + 2025 = 2601 = 51^2.
  7. The legs are 60 and 80. Since 100 = 20 \cdot 5, scale (3, 4, 5) by 20.
  8. (14, 48, 50) and (30, 40, 50). Every triple is k times a primitive triple with hypotenuse c', where kc' = 50. A primitive hypotenuse is odd, so c' is 5 or 25. For m^2 + n^2 = 5 the only pair is (2, 1), giving (3, 4, 5) and k = 10. For m^2 + n^2 = 25 the only pair is (4, 3), since 9 + 16 is the only way to write 25 as two positive squares, giving (7, 24, 25) and k = 2.
  9. Four triples: (16, 63, 65), (25, 60, 65), (33, 56, 65) and (39, 52, 65). The odd divisors of 65 above 1 are 5, 13 and 65. For c' = 5 there is (3, 4, 5) with k = 13, giving (39, 52, 65). For c' = 13 there is (5, 12, 13) with k = 5, giving (25, 60, 65). For c' = 65, m^2 + n^2 = 65 has the two pairs (8, 1) and (7, 4), since 65 = 64 + 1 = 49 + 16, and both pairs qualify, giving (16, 63, 65) and (33, 56, 65).
  10. (48, 55, 73). m^2 - n^2 = 64 - 9 = 55, 2mn = 48, m^2 + n^2 = 73. Check: 48^2 + 55^2 = 2304 + 3025 = 5329 = 73^2.
  11. (33, 56, 65). m^2 - n^2 = 49 - 16 = 33, 2mn = 56, m^2 + n^2 = 65. Check: 33^2 + 56^2 = 1089 + 3136 = 4225 = 65^2.
  12. The triple is (12, 16, 20). It is not primitive because m = 4 and n = 2 are both even, so they share the factor 2, which breaks the condition. It is 4 times (3, 4, 5), which comes from (m, n) = (2, 1). Doubling both m and n multiplies the triple by 4.
  13. (m, n) = (7, 2). m^2 = (53 + 45) / 2 = 49 and n^2 = (53 - 45) / 2 = 4. Check: 2mn = 2 \cdot 7 \cdot 2 = 28.
  14. (m, n) = (7, 6). m^2 = (85 + 13) / 2 = 49 and n^2 = (85 - 13) / 2 = 36. Check: 2mn = 2 \cdot 7 \cdot 6 = 84.
  15. Four triples: (11, 60, 61), (91, 60, 109), (221, 60, 229) and (899, 60, 901). The even leg is 2mn = 60, so mn = 30. The pairs with m > n and product 30 are (30, 1), (15, 2), (10, 3) and (6, 5). Each has no common factor and opposite parity, so all four count, giving (899, 60, 901), (221, 60, 229), (91, 60, 109) and (11, 60, 61).
  16. (15, 112, 113). With d = 1, 15^2 = 2b + 1, so 225 = 2b + 1, b = 112 and c = 113. Check: 225 + 12544 = 12769 = 113^2.
  17. (16, 63, 65). With d = 2, 16^2 = 4b + 4, so 256 = 4b + 4, b = 63 and c = 65. Check: 256 + 3969 = 4225 = 65^2.
  18. (8, 15, 17), with perimeter 8 + 15 + 17 = 40. A primitive triple from (m, n) has perimeter 2m^2 + 2mn = 2m(m + n), so a triple that is k times it has perimeter 2km(m + n) = 40, and km(m + n) = 20. The values of m(m + n) for the smallest qualifying pairs are 6 for (2, 1), 15 for (3, 2), 20 for (4, 1), and then 28 or more. Only 20 divides 20 and k = 1 works, giving (m, n) = (4, 1), legs 15 and 8, and hypotenuse 17.
  19. Every triple is k times a primitive triple (a', b', c'), and a primitive triple has exactly one even leg. So ab = k^2 a'b' is even, and the area \dfrac{ab}{2} is a whole number. For example, (3, 4, 5) has area 6 and (5, 12, 13) has area 30.
  20. For odd n, the border method gives \big(n,\ (n^2 - 1)/2,\ (n^2 + 1)/2\big): both new numbers are whole because n^2 is odd, and (n^2 - 1)/2 \ge 4. For even n = 2t with t \ge 2, take (2t,\ t^2 - 1,\ t^2 + 1). It works because (2t)^2 + (t^2 - 1)^2 = t^4 + 2t^2 + 1 = (t^2 + 1)^2, and t^2 - 1 \ge 3 is positive. For example n = 6 gives (6, 8, 10) and n = 10 gives (10, 24, 26).
  21. Suppose 3 \mid c. Then c^2 leaves remainder 0 on division by 3, so a^2 + b^2 does too. Each square leaves 0 or 1, and the only way two of those add to a multiple of 3 is 0 + 0. So 3 divides a and b as well, and 3 divides all three numbers, which a primitive triple does not allow.
  22. The even leg 12 would be 2mn, so mn = 6, and the whole-number pairs with m > n and mn = 6 are (6, 1) and (3, 2). They give (35, 12, 37) and (5, 12, 13), and neither is (9, 12, 15). The triple has the common factor 3, so it is not primitive. It is reached by the multiplier: (9, 12, 15) = 3 \cdot (3, 4, 5), which uses k = 3 and (m, n) = (2, 1).
  23. Suppose 1^2 + b^2 = c^2. Then 1 = c^2 - b^2 = (c - b)(c + b). Since b \ge 1 and c > b, c + b \ge 3 and c - b \ge 1, so the product is at least 3, not 1. No such whole numbers exist.
kg1128 · updated 2026-09-30 · CC-BY-SA-4.0