Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Pythagorean Triple

created by Woundweavr

(thing) by nealesa (6.7 y) (print)   ?   (I like it!) Sat Nov 13 1999 at 14:30:28

A group of three positive integers, that, once plugged into the Pythagorean Theorum satisfy the a^2+b^2=c^2, a and b existing as the two shorter sides or bases of the triangle, while the longest side or the hypotenuse equals c as shown:
**|\
**|*\
**|**\
a*|***\
**|****\
**|_____\
b ex. a=3, b=4, c=5: 3^2+4^2=5^2 =>9+16=25 (NOTE: these three numbers can be substituted for any multiples of theses numbers.)

(thing) by Noether (2.9 y) (print)   ?   (I like it!) 1 C! Wed Jul 26 2000 at 7:57:30

As has been mentioned already, a Pythagorean triple is a triple (a,b,c) of positive integers with c2=a2+b2. Such a triple corresponds to a a right angled triangle with sides of length a,b and c (with c the hypotenuse) by Pythagoras's Theorem.

If (a,b,c) is such a triple then so is (na,nb,nc) for any positive integer n. So we define a Pythagorean triple to be primitive if a,b and c have no common factor. Obviously if we want to compute all Pythagorean triples we just have to consider the primitive ones.

The Alexandrian Diophantus considered the problem of determining all such triples some time around 250 AD. Here's the result.

Theorem Let x,y be coprime positive integers such that x-y is odd. Then (x2-y2,2xy,x2+y2) is a primitive Pythagorean triple and all such triples arise this way.

See also the proof of Diophantus' theorem on Pythagorean triples.


(idea) by abiessu (46.6 min) (print)   ?   (I like it!) 2 C!s Tue Sep 04 2001 at 18:00:08

Roger Vogeler came up with a way to generate every primitive Pythagorean Triple from (3,4,5):

Inscribe a unit circle inside a 2x2 square, both centered on the origin. For this w/u, I'll use the top right corner of the square as the reference point P. Let the point on the circle which touches the bottom side of the square be the reference point Q. The line PQ crosses the circle in two places. One place is at the point Q. The other point is (4/5,3/5), the Pythagorean Fraction equivalent to 2pq/(p2+q2) and (p2-q2)/(p2+q2) for p=2, q=1 (x and y from above). Now inscribe a rectangle inside the circle where one of the corners is (4/5,3/5), and the sides of the rectangle are parallel to the circumscribed square. Lines from P to the other three corners of this rectangle yield the triples (5,12,13), (8,15,17) and (20,21,29). The p,q values of these are (3,2), (4,1) and (5,2) respectively.

                            this intersection is the point
                                    (20/29,21/29)
                                          |
                                          |
                                          |
                                          |
 _______________________________________\_|_/_____ P (the point (1,1))
 |               ,.onOK@@@@@HQme.,       \|/    ,|
 |          ,.szF'`             `'Tux.,   V  ,oO/|
 |        ,z'`                       `'c,  ,oO`/ |
 |      ,x'`                           `'w,'` /  |
 |    .u'`                             ,oO'n./  /|     this intersection is the point
 |   dy------------------------------,oO`---qb <-|--------- (4/5,3/5)
 |  /7|                            ,O'`    /|VA \|
 | 4y |                         ,oO'      / | \D |
 |,I' |                       ,oO`       /  | `U,|
 |dp  |                     ,O'`        /   |  qb|
 ,j'  |                  ,oO'          /    |  `t,
 AV   |                ,oO`           /     |   VA
 69   |              ,O'`.           /      |   96
 VA   |           ,oO'(the origin)  /       |   AV
 `t,  |         ,oO`               /        |  ,j'
 |qb  |       ,O'`                /         |  dp|
 |`I, |    ,oO'                  /          | ,U'|
 | \D |  ,oO`                   /           | 4y |
 |  VA|,O'`                    /            |/7  |
 |   qb'______________________/_____________dy   |
 |    `'n.                   /           .u'`    |
 |      `'w,                /          ,x'`      |
 |        `'c,             /         ,z'`        |
 |          `'Tux.,       /     ,.szF'`          |
 |               `'TTOK@@@@@HQTT'`               |
                         Q (the point (0, -1))

From the above, it can be shown that every primitive (p,q) pair generates three new primitive (p,q) pairs and that no pair is repeated. (p,q) generates the following three (p,q) pairs:

(p+2q,q), (2p+q,p), (2p-q,p)

This is a three-way tree. If (p,q) are not (2,1), then it can be shown that the pair which generated (p,q) is (abs(p-2q),q) or (q,abs(p-2q)) (it is helpful to have p>q).

It is also interesting to note that, for every odd n=ab where gcd(a,b) is 1 and a>b>1, n appears at least twice in the form p2-q2.

Reference:

Conway, John H. The Book of Numbers. Springer Verlag. New York: 1996. Pp. 172-3.


Given the recent question of copyright, I thought I'd mention that I have contacted Roger Vogeler directly, and while he made no comment about this site or this writeup, he seemed generally encouraging of my efforts to understand this particular theorem. In particular, aside from the general idea all content in this writeup is my own, including the textart.


(idea) by .derf (2.6 y) (print)   ?   (I like it!) Thu Nov 22 2001 at 15:20:07

Now it's possible to construct an infinitely many Pythagorean Triples (they should really be called Babylonian Triples) by simply multiplying all the variables in the equation by another number:

(da)2 + (db)2 = (dc)2

But the resultant triple will not be a primitive Pythagorean Triple (PPT). To find PTTs, you need to put in a little more thought. a2 can be factored into (c-b)(c+b). For instance for the triple (15, 8, 17),

152 = 172 - 82 = (17-8)(17+8) = 9*25 .

If you test this with more triples, you will find that c - b and c + b are always squares. As a result, c + b can be represented as s2 and c - b can be represented as t2

So a, as it is the square root of (c - b)(c + b), must equal st.

Therefore, all PPTs can be expressed in the following form:

a = st

b = (s2 - t2)/2

c = (s2 + t2)/2

Where s > t and s and t are a non-zero integers.

You can use this equation to construct very large PPTs, on a calculator I was able to find that:

602 + 912 = 1092

And

1202 + 2092 = 2412

The great book that taught me this: Silverman, Joseph H. A Friendly Introduction to Number Theory (2nd ed). Upper Saddle River, New Jersey: Prentice Hall, 2001.


printable version
chaos

proof of Diophantus' theorem on Pythagorean triples All primes greater than 3 are of the form 6k-1 or 6k+1 The Pythagorean Theorem: A Vast Right Triangle Conspiracy? hard interview questions
coprime Pythagorean triples solution If cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl Pierre de Fermat
Pythagorean Theorem primitive Pythagorean comma number theory
The Law of Cosines Pythagorean integer 69
anti-divisor Pythagorean Identities elliptic rotation Mersenne prime
The math Project triangle mathematics parabola
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
What you are reading:
Mary Magdalene
Saint Isidore of Seville
Aurora
Chinese Exclusion Act of 1882
A community without shame has no future
Dragon
My mom is my dad is my daughter is dead
What Everything does better than anything else
Cypherpunk
Markov chain
Canal Street
prison rape
piano outside in the snow. and she was spinning
New Writeups
aneurin
Earl of Landaff(person)
Heitah
Pseudocide(idea)
XWiz
Google Knol(lede)
Mythi
July 24, 2008(personal)
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
santo
The Host(review)
Everything 2 is brought to you by the letter C and The Everything Development Company