Triples and quadruples: from Pythagoras to Fermat (2023)

Triples and quadruples: from Pythagoras to Fermat (1)

Pythagoras' theorem. Image: Wapkaplet.

If there’s one bit of maths you remember from school it’s probably Pythagoras’ theorem. For a right-angled triangle with sides Triples and quadruples: from Pythagoras to Fermat (2), Triples and quadruples: from Pythagoras to Fermat (3), Triples and quadruples: from Pythagoras to Fermat (4), where Triples and quadruples: from Pythagoras to Fermat (5) is the side opposite the right angle, we have

Triples and quadruples: from Pythagoras to Fermat (6)

If three positive whole numbers Triples and quadruples: from Pythagoras to Fermat (7), Triples and quadruples: from Pythagoras to Fermat (8) and Triples and quadruples: from Pythagoras to Fermat (9) satisfy this equation — if they form the sides of a right-angled triangle — they are said to form a Pythagorean triple.

One question that intrigued Pythagoras himself, as well as other ancient Greek mathematicians, is how to generate Pythagorean triples. If I give you a positive number Triples and quadruples: from Pythagoras to Fermat (10), can you find two numbers Triples and quadruples: from Pythagoras to Fermat (11) and Triples and quadruples: from Pythagoras to Fermat (12) so that Triples and quadruples: from Pythagoras to Fermat (13), Triples and quadruples: from Pythagoras to Fermat (14) and Triples and quadruples: from Pythagoras to Fermat (15) form a Pythagorean triple? In this article we’ll explore this question, and we’ll also see how the idea extends to sets of four numbers, called Pythagorean quadruples.

Pythagorean triples

First of all, here are some examples of Pythagorean triples:

Triples and quadruples: from Pythagoras to Fermat (16)

Some Pythagorean triples.

The triples written in red are multiples of each other and so are the triples written in blue: you get Triples and quadruples: from Pythagoras to Fermat (17) Triples and quadruples: from Pythagoras to Fermat (18) and Triples and quadruples: from Pythagoras to Fermat (19) by multiplying the components of Triples and quadruples: from Pythagoras to Fermat (20) by 2, 3 and 4 respectively, and you get Triples and quadruples: from Pythagoras to Fermat (21) by multiplying the components of Triples and quadruples: from Pythagoras to Fermat (22) by 2.

In general, if Triples and quadruples: from Pythagoras to Fermat (23) is a positive whole number and Triples and quadruples: from Pythagoras to Fermat (24) is a Pythagorean triple, then so is Triples and quadruples: from Pythagoras to Fermat (25), since

Triples and quadruples: from Pythagoras to Fermat (26)

Geometrically, if one Pythagorean triple is a multiple of another, then the corresponding triangles are similar.

Triples and quadruples: from Pythagoras to Fermat (27)

Pythagoras as depicted by Raffaello Sanzio in his painting The school of Athens.

If a Pythagorean triple isn’t a multiple of another Pythagorean triple, then we say that it is a primitive triple. You can recognise a primitive Pythagorean triple by the fact that the numbers Triples and quadruples: from Pythagoras to Fermat (28) and Triples and quadruples: from Pythagoras to Fermat (29) do not have a common divisor. In our example Triples and quadruples: from Pythagoras to Fermat (30) is a primitive Pythagorean triple while Triples and quadruples: from Pythagoras to Fermat (31) Triples and quadruples: from Pythagoras to Fermat (32) and Triples and quadruples: from Pythagoras to Fermat (33) are not. Similarly Triples and quadruples: from Pythagoras to Fermat (34) is a primitive triple whereas Triples and quadruples: from Pythagoras to Fermat (35) is not.

(Video) Volume: Pythagorean Quadruple

If you're given a Pythagorean triple it's easy to generate new non-primitive ones simply by taking its multiples. But given just a number, can you find a Pythagorean triple with that number as one of its components? One method for doing this has been attributed to Pythagoras himself. First note that if

Triples and quadruples: from Pythagoras to Fermat (36)

then

Triples and quadruples: from Pythagoras to Fermat (37)

Now consider the two expressions

Triples and quadruples: from Pythagoras to Fermat (38)

and

Triples and quadruples: from Pythagoras to Fermat (39)

They differ by exactly Triples and quadruples: from Pythagoras to Fermat (40) so the two expressions

Triples and quadruples: from Pythagoras to Fermat (41)

and

Triples and quadruples: from Pythagoras to Fermat (42)

differ by Triples and quadruples: from Pythagoras to Fermat (43)

Triples and quadruples: from Pythagoras to Fermat (44)

Plato (left) with Aristotle (right) as depicted by Raffaello Sanzio in his painting The school of Athens.

Therefore, if we choose

Triples and quadruples: from Pythagoras to Fermat (45)

and

Triples and quadruples: from Pythagoras to Fermat (46)

we have

Triples and quadruples: from Pythagoras to Fermat (47)

For the numbers Triples and quadruples: from Pythagoras to Fermat (48), Triples and quadruples: from Pythagoras to Fermat (49) and Triples and quadruples: from Pythagoras to Fermat (50) to represent a Pythagorean triple we need

Triples and quadruples: from Pythagoras to Fermat (51)

and

Triples and quadruples: from Pythagoras to Fermat (52)

to be whole numbers. This means that both

Triples and quadruples: from Pythagoras to Fermat (53)

and

Triples and quadruples: from Pythagoras to Fermat (54)

need to be even, which in turn implies that Triples and quadruples: from Pythagoras to Fermat (55) needs to be odd. But the square of a number is odd only if the number itself is odd, so this method only works for odd Triples and quadruples: from Pythagoras to Fermat (56).

(Video) All possible pythagorean triples, visualized

There is however an easy way to derive a formula for even values from the above. If Triples and quadruples: from Pythagoras to Fermat (57), Triples and quadruples: from Pythagoras to Fermat (58) and Triples and quadruples: from Pythagoras to Fermat (59) form a Pythagorean triple of the form described above, then so do

Triples and quadruples: from Pythagoras to Fermat (60)
Triples and quadruples: from Pythagoras to Fermat (61)
Triples and quadruples: from Pythagoras to Fermat (62)

This method for generating triples from even numbers Triples and quadruples: from Pythagoras to Fermat (63) has been attributed to Plato. Here is a list of Pythagorean triples generated from both even and odd numbers using these two methods:

Triples and quadruples: from Pythagoras to Fermat (64)

Since the methods give us a triple for every positive whole number we see that there are infinitely many Pythagorean triples. But can these methods generate all of them? The answer is no. For example, the triple Triples and quadruples: from Pythagoras to Fermat (65) is absent from the list above. A general formula was described by Euclid in his famous book The Elements. Take any two positive whole numbers Triples and quadruples: from Pythagoras to Fermat (66) and Triples and quadruples: from Pythagoras to Fermat (67) with Triples and quadruples: from Pythagoras to Fermat (68). Similarly to our reasoning above, notice that

Triples and quadruples: from Pythagoras to Fermat (69)

and

Triples and quadruples: from Pythagoras to Fermat (70)

differ by Triples and quadruples: from Pythagoras to Fermat (71) So setting

Triples and quadruples: from Pythagoras to Fermat (72)
Triples and quadruples: from Pythagoras to Fermat (73)
Triples and quadruples: from Pythagoras to Fermat (74)

gives

Triples and quadruples: from Pythagoras to Fermat (75)

Since Triples and quadruples: from Pythagoras to Fermat (76) and Triples and quadruples: from Pythagoras to Fermat (77) are positive whole numbers and Triples and quadruples: from Pythagoras to Fermat (78) all three numbers Triples and quadruples: from Pythagoras to Fermat (79), Triples and quadruples: from Pythagoras to Fermat (80) and Triples and quadruples: from Pythagoras to Fermat (81) are also positive whole numbers, so we have a Pythagorean triple. Every primitive Pythagorean triple can be generated from a unique pair of numbers Triples and quadruples: from Pythagoras to Fermat (82) and Triples and quadruples: from Pythagoras to Fermat (83), one of which is even. And once you have the primitive ones you can generate all Pythagorean triples simply by multiplying. So Euclid’s formula really does give you all the triples there are.

Pythagorean quadruples

Now let’s look at Pythagorean quadruples which consist of four positive whole numbers instead of three. In a Pythagorean quadruple the sum of squares of first three numbers gives us the square of the fourth:

Triples and quadruples: from Pythagoras to Fermat (84)

Triples and quadruples: from Pythagoras to Fermat (85)

Geometrically we can think of a Pythagorean quadruples in terms of a rectangular box with sides Triples and quadruples: from Pythagoras to Fermat (86), Triples and quadruples: from Pythagoras to Fermat (87) and Triples and quadruples: from Pythagoras to Fermat (88). The length of the diagonal of this box is

Triples and quadruples: from Pythagoras to Fermat (89)

Hence the sides together with the diagonal form a Pythagorean quadruple. This is why Pythagorean quadruples are also called Pythagorean boxes.As before, if Triples and quadruples: from Pythagoras to Fermat (90) is a Pythagorean quadruple, then so is Triples and quadruples: from Pythagoras to Fermat (91) for any positive whole number Triples and quadruples: from Pythagoras to Fermat (92). If the greatest common divisor of Triples and quadruples: from Pythagoras to Fermat (93), Triples and quadruples: from Pythagoras to Fermat (94) and Triples and quadruples: from Pythagoras to Fermat (95) is 1 then the quadruple is called primitive. Here are some examples of Pythagorean quadruples with members that are multiples of each other in the same colour (red, blue or green):

Triples and quadruples: from Pythagoras to Fermat (96)

Some Pythagorean quadruples.

We can generate a Pythagorean quadruple from any two numbers Triples and quadruples: from Pythagoras to Fermat (97) and Triples and quadruples: from Pythagoras to Fermat (98) simply by noting that

(Video) Pythagorean Triples

Triples and quadruples: from Pythagoras to Fermat (99)

Thus, setting

Triples and quadruples: from Pythagoras to Fermat (100) and Triples and quadruples: from Pythagoras to Fermat (101) gives us a Pythagorean quadruple.

This also gives us a way of generating a Pythagorean quadruple from a single even number Triples and quadruples: from Pythagoras to Fermat (102). Firstly, note that if Triples and quadruples: from Pythagoras to Fermat (103) is even, then Triples and quadruples: from Pythagoras to Fermat (104) is even. Now find two numbers Triples and quadruples: from Pythagoras to Fermat (105) and Triples and quadruples: from Pythagoras to Fermat (106) so that Triples and quadruples: from Pythagoras to Fermat (107) Set

Triples and quadruples: from Pythagoras to Fermat (108)
Triples and quadruples: from Pythagoras to Fermat (109)
Triples and quadruples: from Pythagoras to Fermat (110)

and

Triples and quadruples: from Pythagoras to Fermat (111)

Then

Triples and quadruples: from Pythagoras to Fermat (112)

gives us our Pythagorean quadruple. For example, if Triples and quadruples: from Pythagoras to Fermat (113), then Triples and quadruples: from Pythagoras to Fermat (114) so choose Triples and quadruples: from Pythagoras to Fermat (115) and Triples and quadruples: from Pythagoras to Fermat (116) We get the quadruple Triples and quadruples: from Pythagoras to Fermat (117) with

Triples and quadruples: from Pythagoras to Fermat (118)

For Triples and quadruples: from Pythagoras to Fermat (119) we have Triples and quadruples: from Pythagoras to Fermat (120) We now have two choices as Triples and quadruples: from Pythagoras to Fermat (121) and Triples and quadruples: from Pythagoras to Fermat (122) The first choice gives the quadruple Triples and quadruples: from Pythagoras to Fermat (123) with

Triples and quadruples: from Pythagoras to Fermat (124)

The second choice gives the quadruple Triples and quadruples: from Pythagoras to Fermat (125) with

Triples and quadruples: from Pythagoras to Fermat (126)

You can continue to generate quadruples from even numbers Triples and quadruples: from Pythagoras to Fermat (127) in this way.

Can we generate all Pythagorean quadruples?

Not all Pythagorean quadruples are of the form

Triples and quadruples: from Pythagoras to Fermat (128)

so not all of them can be generated using the method we just described — we need to be a little cleverer. Suppose that you’re given two numbers Triples and quadruples: from Pythagoras to Fermat (129) and Triples and quadruples: from Pythagoras to Fermat (130) Now find a number Triples and quadruples: from Pythagoras to Fermat (131) which divides Triples and quadruples: from Pythagoras to Fermat (132) but so that Triples and quadruples: from Pythagoras to Fermat (133) If Triples and quadruples: from Pythagoras to Fermat (134) and Triples and quadruples: from Pythagoras to Fermat (135) are both even, then we also require that Triples and quadruples: from Pythagoras to Fermat (136) itself is even.

Triples and quadruples: from Pythagoras to Fermat (137)

Euclid (the man with the compass) as depicted by Raffaello Sanzio in his painting The school of Athens.

Now let

Triples and quadruples: from Pythagoras to Fermat (138)

Then

Triples and quadruples: from Pythagoras to Fermat (139) Triples and quadruples: from Pythagoras to Fermat (140) Triples and quadruples: from Pythagoras to Fermat (141)
Triples and quadruples: from Pythagoras to Fermat (142) Triples and quadruples: from Pythagoras to Fermat (143) Triples and quadruples: from Pythagoras to Fermat (144)
Triples and quadruples: from Pythagoras to Fermat (145) Triples and quadruples: from Pythagoras to Fermat (146) Triples and quadruples: from Pythagoras to Fermat (147)
Triples and quadruples: from Pythagoras to Fermat (148) Triples and quadruples: from Pythagoras to Fermat (149) Triples and quadruples: from Pythagoras to Fermat (150)

So letting

Triples and quadruples: from Pythagoras to Fermat (151)

we have

(Video) The Pythagoras Theorem and Negative Pythagorean Quadruples

Triples and quadruples: from Pythagoras to Fermat (152)

But are Triples and quadruples: from Pythagoras to Fermat (153), Triples and quadruples: from Pythagoras to Fermat (154), Triples and quadruples: from Pythagoras to Fermat (155) and Triples and quadruples: from Pythagoras to Fermat (156) positive whole numbers? This is why we’ve imposed conditions on Triples and quadruples: from Pythagoras to Fermat (157) You can show that as long as Triples and quadruples: from Pythagoras to Fermat (158) and Triples and quadruples: from Pythagoras to Fermat (159) are either both even, or if one is even and one is odd, then the conditions ensure that Triples and quadruples: from Pythagoras to Fermat (160), Triples and quadruples: from Pythagoras to Fermat (161), Triples and quadruples: from Pythagoras to Fermat (162) and Triples and quadruples: from Pythagoras to Fermat (163) are positive whole numbers.

(Click here to see why.)

If Triples and quadruples: from Pythagoras to Fermat (164) and Triples and quadruples: from Pythagoras to Fermat (165) are both odd it is impossible to generate a Pythagorean quadruple from them by this method.

But the important point is that you can construct every primitive Pythagorean quadruple from two numbers Triples and quadruples: from Pythagoras to Fermat (166) and Triples and quadruples: from Pythagoras to Fermat (167) in the way we’ve just shown. And again, once you have the primitive ones, you can get all the others just by multiplying.

Generating a series of squares

Another nice thing to notice is that using our mechanism for generating triples, we can make sums of squares of any length. Let’s start with the triple Triples and quadruples: from Pythagoras to Fermat (168) We can generate another triple starting with the number 5: it’s Triples and quadruples: from Pythagoras to Fermat (169) Thus we have

Triples and quadruples: from Pythagoras to Fermat (170)

and

Triples and quadruples: from Pythagoras to Fermat (171)

Rearranging the second equation gives

Triples and quadruples: from Pythagoras to Fermat (172)

Substituting this into the first equation and rearranging gives

Triples and quadruples: from Pythagoras to Fermat (173)

so we have the quadruple Triples and quadruples: from Pythagoras to Fermat (174) Proceeding in a similar way, always using the biggest of the current set of numbers to generate a new triple, we can construct the quintuple Triples and quadruples: from Pythagoras to Fermat (175) and the sextuple Triples and quadruples: from Pythagoras to Fermat (176) and so on, ad infinitum.

Cubes and beyond

Pythagorean quadruples consist of a sum of squares, but what if we look at sums of cubes of the form

Triples and quadruples: from Pythagoras to Fermat (177)

These are called cubic quadruples. Here are a few examples (again, quadruples written in red, blue or green are multiples of each other).

Triples and quadruples: from Pythagoras to Fermat (178)

Some cubic quadruples.

We won’t explore how to generate them here, but instead ask a question that turns out to be more interesting: are there also cubic triples? This question is the subject of one of the most famous results in mathematics: Fermat’s last theorem. The theorem says that there are no three positive whole numbers Triples and quadruples: from Pythagoras to Fermat (179), Triples and quadruples: from Pythagoras to Fermat (180) and Triples and quadruples: from Pythagoras to Fermat (181) such that

Triples and quadruples: from Pythagoras to Fermat (182)

In fact, the theorem says more than that: for any positive whole number Triples and quadruples: from Pythagoras to Fermat (183) greater than two it is impossible to find three positive whole numbers Triples and quadruples: from Pythagoras to Fermat (184), Triples and quadruples: from Pythagoras to Fermat (185) and Triples and quadruples: from Pythagoras to Fermat (186) such that

Triples and quadruples: from Pythagoras to Fermat (187)

The result was made famous by the French mathematician Pierre deFermat in 1637. Fermat wrote in the margin of his book that he had "discovered a truly marvelous proof of this, which this margin is too narrow to contain". For over 300 years mathematicians desperately tried to reconstruct this marvellous proof, but they didn't succeed. It was not until 1995 that the mathematician Andrew Wiles proved the result, using sophisticated mathematics Fermat could not possibly have known about.

Further reading

You can read more about Fermat's last theorem on Plus.

About the author

Triples and quadruples: from Pythagoras to Fermat (188)

(Video) The Difference of Two Squares and Fermat Bateman Quadruples

Chandrahas Halai is a mathematics enthusiast from the land of the Shulba sutras, the Bakhshali manuscript, and mathematicians like Aryabhatt, Brahmagupta, Bhaskaracharya, Ramanujan and many more. He is a consultant in the field of computer aided engineering, engineering optimisation, computer science and operations research. He writes research papers, articles and books on mathematics, physics, engineering, computer science and operations research.In his spare time he likes doing nature photography and painting.

Videos

1. Murgu Quadruplets Change Pythagoras Triple Place - #Group_Theory New Concepts Divergence #Abel_Prize
(Ion Murgu)
2. Pythagorean Theorem but in 3 dimensions
(blackpenredpen)
3. #Murgu_Quadruplets Replace Solved #Pythagoras_Triples on #Youtube_Mathe #youtube_education #Maths
(Ion Murgu)
4. The Complex Pythagorean Triples
(Richard Southwell)
5. Fermat's Last Theorem: Why Cubes Generate Quadruples
(Alastair Bateman)
6. Fermat's Last Theorem and the Differences of the Cubes
(Alastair Bateman)
Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated: 06/09/2023

Views: 5675

Rating: 4.4 / 5 (65 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.