ArticleslgStudy

mathematics

Pythagorean triple

Pythagorean triple is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Pythagorean triple rather than just read about it. In short: A Pythagorean triple consists of three positive integers a, b, and c, such that a2 + b2 = c2. Such a triple is commonly written (a, b, c), a well-known example is (3, 4, 5).

Pythagorean triple — main illustration
Pythagorean triple — illustration

Key takeaways

  • Pythagorean triple belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Pythagorean triple to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Pythagorean triple from memory before moving on to harder problems.

Reference excerpt

A Pythagorean triple consists of three positive integers a, b, and c, such that a2 + b2 = c2. Such a triple is commonly written (a, b, c), a well-known example is (3, 4, 5). If (a, b, c) is a Pythagorean triple, then so is (ka, kb, kc) for any positive integer k. A triangle whose side lengths are a Pythagorean triple is a right triangle and called a Pythagorean triangle. A primitive Pythagorean triple is one in which a, b and c are coprime (that is, they have no common divisor larger than 1). For example, (3, 4, 5) is a primitive Pythagorean triple whereas (6, 8, 10) is not. Every Pythagorean triple can be scaled to a unique primitive Pythagorean triple by dividing (a, b, c) by their greatest common divisor. Conversely, every Pythagorean triple can be obtained by multiplying the elements of a primitive Pythagorean triple by a positive integer (the same for the three elements). The name is derived from the Pythagorean theorem, stating that every right triangle has side lengths satisfying the formula a 2 + b 2 = c 2 {\displaystyle a^{2}+b^{2}=c^{2}} ; thus, Pythagorean triples describe the three integer side lengths of a right triangle. However, right triangles with non-integer sides do not form Pythagorean triples. For instance, the triangle with sides a = b = 1 {\displaystyle a=b=1} and c = 2 {\displaystyle c={\sqrt {2}}} is a right triangle, but ( 1 , 1 , 2 ) {\displaystyle (1,1,{\sqrt {2}})} is not a Pythagorean triple because the square root of 2 is not an integer. Moreover, 1 {\displaystyle 1} and 2 {\displaystyle {\sqrt {2}}} do not have an integer common multiple because 2 {\displaystyle {\sqrt {2}}} is irrational. Pythagorean triples have been known since ancient times. The oldest known record comes from Plimpton 322, a Babylonian clay tablet from about 1800 BC, written in a sexagesimal number system. When searching for integer solutions, the equation a2 + b2 = c2 is a Diophantine equation. Thus Pythagorean triples are among the oldest known solutions of a nonlinear Diophantine equation.

Examples

There are 16 primitive Pythagorean triples of numbers up to 100:

Other small Pythagorean triples such as (6, 8, 10) are not listed because they are not primitive; for instance (6, 8, 10) is a multiple of (3, 4, 5). Each of these points (with their multiples) forms a radiating line in the scatter plot to the right. These are the remaining primitive Pythagorean triples of numbers up to 300:

Generating a triple

Euclid's formula is a fundamental formula for generating Pythagorean triples given an arbitrary pair of integers m and n with m > n > 0. The formula states that the integers

a = m 2 − n 2 , b = 2 m n , c = m 2 + n 2 {\displaystyle a=m^{2}-n^{2},\ \,b=2mn,\ \,c=m^{2}+n^{2}}

form a Pythagorean triple. For example, the integers

m = 2 , n = 1 {\displaystyle m=2,\ \,n=1}

generate the primitive triple (3, 4, 5):

a = 2 2 − 1 2 = 3 , b = 2 × 2 × 1 = 4 , c = 2 2 + 1 2 = 5. {\displaystyle a=2^{2}-1^{2}=3,\ \,b=2\times 2\times 1=4,\ \,c=2^{2}+1^{2}=5.}

The triple generated by Euclid's formula is primitive if and only if m and n are coprime and exactly one of them is even. When both m and n are odd, then a, b, and c will be even, and the triple will not be primitive; however, dividing a, b, and c by 2 will still yield a primitive triple when m and n are both odd and coprime. Every primitive triple arises (after the exchange of a and b, if a is even) from a unique pair of coprime numbers m, n, one of which is even. It follows that there are infinitely many primitive Pythagorean triples. This relationship of a, b and c to m and n from Euclid's formula is referenced throughout the rest of this article. Despite generating all primitive triples, Euclid's formula does not produce all triples—for example, (9, 12, 15) cannot be generated using integer m and n. This can be remedied by inserting an additional parameter k to the formula: every Pythagorean triple is generated uniquely by

a = k ⋅ ( m 2 − n 2 ) , b = k ⋅ ( 2 m n ) , c = k ⋅ ( m 2 + n 2 ) {\displaystyle a=k\cdot (m^{2}-n^{2}),\ \,b=k\cdot (2mn),\ \,c=k\cdot (m^{2}+n^{2})}

… excerpt ends here. Continue reading the full article.

Illustrations

Pythagorean triple: Animation demonstrating the smallest Pythagorean triple, 32 + 42 = 52
Animation demonstrating the smallest Pythagorean triple, 32 + 42 = 52
Pythagorean triple: Scatter plot of the legs (a, b) of the first Pythagorean triples with a and b less than 6000. Negative values are included to illustrate the parabolic patterns. The "rays" are a result of the fact that if (a, b, c) is a Pythagorean triple, then so is (2a, 2b, 2c), (3a, 3b, 3c) and, more generally, (ka, kb, kc) for any positive integer k.
Scatter plot of the legs (a, b) of the first Pythagorean triples with a and b less than 6000. Negative values are included to illustrate the parabolic patterns. The "rays" are a result of the fact that if (a, b, c) is a Pythagorean triple, then so is (2a, 2b, 2c), (3a, 3b, 3c) and, more generally, (ka, kb, kc) for any positive integer k.
Pythagorean triple: The primitive Pythagorean triples. The odd leg a is plotted on the horizontal axis, the even leg b on the vertical. The curvilinear grid is composed of curves of constant m − n and of constant m + n in Euclid's formula.
The primitive Pythagorean triples. The odd leg a is plotted on the horizontal axis, the even leg b on the vertical. The curvilinear grid is composed of curves of constant m − n and of constant m + n in Euclid's formula.
Pythagorean triple: A plot of triples generated by Euclid's formula maps out part of the z2 = x2 + y2 cone. A constant m or n traces out part of a parabola on the cone.
A plot of triples generated by Euclid's formula maps out part of the z2 = x2 + y2 cone. A constant m or n traces out part of a parabola on the cone.
Pythagorean triple: 3,4,5 maps to x,y point (4/5,3/5) on the unit circle
3,4,5 maps to x,y point (4/5,3/5) on the unit circle

Worked examples

Example 1 — a first encounter with Pythagorean triple

Start with the simplest possible case. Write down what Pythagorean triple claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Pythagorean triple before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Pythagorean triple ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Pythagorean triple

In research
Pythagorean triple appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Pythagorean triple in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Pythagorean triple is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic problems of plane geometry, Diophantine equations, Pythagorean theorem, so understanding it makes those chapters shorter.
In everyday life
Look for Pythagorean triple outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Pythagorean triple” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Pythagorean triple in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Pythagorean triple means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Pythagorean triple out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Pythagorean triple in simple terms?

A Pythagorean triple consists of three positive integers a, b, and c, such that a2 + b2 = c2. Such a triple is commonly written (a, b, c), a well-known example is (3, 4, 5).

Why does Pythagorean triple matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Pythagorean triple?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Pythagorean triple.

Tags

  • Arithmetic problems of plane geometry
  • Diophantine equations
  • Pythagorean theorem
  • Squares in number theory

Keep exploring