Pythagorean Triples
Three integers a, b, and c that satisfy a^{2} + b^{2} = c^{2} are called Pythagorean Triples. There are infinitely many such numbers and there also exists a way to generate all the triples. Let n and m be integers, n>m. Then define
(*)  a = n^{2}  m^{2}, b = 2nm, c = n^{2} + m^{2}. 
The three number a, b, and c always form a Pythagorean triple. The proof is simple:

The formulas were known to Euclid and used by Diophantus to obtain Pythagorean triples with special properties. However, he never raised the question whether in this way one can obtain all possible triples.
The fact is that for m and n coprime of different parities, (*) yields coprime numbers a, b, and c. Conversely, all coprime triples can indeed be obtained in this manner. All others are multiples of coprime triples: ka, kb, kc.
As an aside, those who mastered the arithmetic of complex numbers might have noticed that
(n + im)^{2} = (n^{2}  m^{2}) + i2mn. 
Which probably indicates that (*) has a source in trigonometry. But the proof below only uses simple geometry and algebra.
First of all, note that if a^{2} + b^{2} = c^{2}, then
Rational numbers approximate irrational to any degree of accuracy. Therefore, the set of rational pairs is dense in the whole plane. So, perhaps, one might expect that any curve should contain a lot of rational pairs or meander wildly to avoid them. But this is not the case. The recent proof of Fermat's Last Theorem lets us claim that the curves
Let t be defined by
(1)  t = y/(x+1). 
Then t(x+1) = y and
t^{2}(x + 1)^{2} = y^{2} = 1  x^{2} = (1 + x)(1  x). 
We are not interested in negative x. So let's cancel (1+x) on both sides. The result is
t^{2}(x + 1) = (1  x). 
Solving for x we get
(2)  x = (1  t^{2})/(1 + t^{2}) 
From y = t(1+x) we also obtain
(3)  y = 2t/(1 + t^{2}) 
Formulas (1)(3) show that t is rational iff both x and y are rational.
There is another way to look at the just described configuration.
The configuration consists of the unit circle centered at the origin and a straight line passing through the point
The applet below illustrates this concept. Several attributes are modifiable:
 Drag the hollow circle on the slanted line to change its slope.
 The line may or may not be snapped to the grid.
 Change the scale by dragging point (1,0).
 Drag the center of the coordinates to any desired position.
 Drag the text box when it gets in the way.
Remark
When the dot on the line is not confined to the grid, the dot appears to move freely. However, its center's location is naturally restricted to the pixels of your screen. The pixels may be many but, nonetheless, they are arranged into a rectangular grid. Relative to the grid of the applet's coordinate axes, pixels are located at the points with rational coordinates with the denominator always equal to the number of pixels between two ticks on either axis. The slope t is then also rational and leads to a Pythagorean Triple as above.
References
 K. Devlin, Mathematics: The Science of Patterns, Scientific American Library, 1997
 S. Lang, The Beauty of Doing Mathematics, SpringerVerlag, 1985
 W. Sierpinski, Pythagorean Triangles, Dover, 2003
 Proof of the formula
 Norm of Gaussian integers
 Gaussian integers
 Divisibilty in Pythagorean Triples
 The Trinary Tree(s) underlying Primitive Pythagorean Triples
 Pythagorean Triples and Perfect Numbers
 Pythagorean Triples Calculator
Contact Front page Contents Algebra Pythagorean Theorem
Copyright © 19962018 Alexander Bogomolny63967489 