Besides Euclid's formula, many other formulas for generating Pythagorean triples have been developed.
Euclid's, Pythagoras', and Plato's formulas Euclid's, Pythagoras' and Plato's formulas for calculating triples have been described here: The methods below appear in various sources, often without attribution as to their origin.
Fibonacci's method Leonardo of Pisa (c. 1170 – c. 1250) described this method for generating primitive triples using the sequence of consecutive odd integers 1,3,5,7,9,11,… and the fact that the sum of the first n terms of this sequence is n2. If k is the n-th member of this sequence then n=(k+1)/2. Choose any odd square number k from this sequence (k=a2) and let this square be the n-th term of the sequence. Also, let b2 be the sum of the previous n−1 terms, and let c2 be the sum of all n terms. Then we have established that a2+b2=c2 and we have generated the primitive triple [a, b, c] = [a, (a2−1)/2, (a2+1)/2]. This method produces an infinite number of primitive triples, but not all of them. EXAMPLE: Choose k=9=32=a2. This odd square number is the fifth term of the sequence, because 5=n=(a2+1)/2. The sum of the previous 4 terms is b2=42 and the sum of all n=5 terms is c2=52 giving us a2+b2=c2 and the primitive triple [a, b, c] = [3, 4, 5].
Sequences of mixed numbers Michael Stifel published the following method in 1544. Consider the sequence of mixed numbers 113,225,337,449,… with an=n+n2n+1. To calculate a Pythagorean triple, take any term of this sequence and convert it to an improper fraction (for mixed number 113, the corresponding improper fraction is 43). Then its numerator and denominator are the sides, b and a, of a right triangle, and the hypotenuse is b + 1. For example:
113→[3,4,5],225→[5,12,13],337→[7,24,25],449→[9,40,41],… Jacques Ozanam republished Stifel's sequence in 1694 and added the similar sequence 178,21112,31516,41920,… with an=n+4n+34n+4. As before, to produce a triple from this sequence, take any term and convert it to an improper fraction. Then its numerator and denominator are the sides, b and a, of a right triangle, and the hypotenuse is b + 2. For example:
178→[8,15,17],21112→[12,35,37],31516→[16,63,65],41920→[20,99,101],… With a the shorter and b the longer legs of a triangle and c its hypotenuse, the Pythagoras family of triplets is defined by c − b = 1, the Plato family by c − b = 2, and the Fermat family by |a − b| = 1. The Stifel sequence ( equivalent to triples { k^2+(k+1)^2 -1, 2 k + 1, k^2+(k+1)^2 } for natural number k ) produces all primitive triplets of the Pythagoras family, and the Ozanam sequence ( equivalent to triples { 4 k^2- 1, 4 k, 4 k^2 + 1 } for k >1 ) produces all primitive triples of the Plato family. The triplets of the Fermat family must be found by other means.
Dickson's method Leonard Eugene Dickson (1920) attributes to himself the following method for generating Pythagorean triples. To find integer solutions to x2+y2=z2, find positive integers r, s, and t such that r2=2st is a perfect square. Then:
x=r+s,y=r+t,z=r+s+t. From this we see that r is any even integer and that s and t are factors of r2/2. This method does not yield all Pythagorean triples ([5, 12, 13] is not generated, for instance). When s and t are coprime, the triple will be primitive. A simple proof of Dickson's method has been presented by Josef Rukavicka, J. (2013). Example: Choose r = 6. Then r2/2 = 18. The three factor-pairs of 18 are (1, 18), (2, 9), and (3, 6). All three factor pairs will produce triples using the above equations.
s = 1, t = 18 produces the triple [7, 24, 25] because x = 6 + 1 = 7, y = 6 + 18 = 24, z = 6 + 1 + 18 = 25. s = 2, t = 9 produces the triple [8, 15, 17] because x = 6 + 2 = 8, y = 6 + 9 = 15, z = 6 + 2 + 9 = 17. s = 3, t = 6 produces the triple [9, 12, 15] because x = 6 + 3 = 9, y = 6 + 6 = 12, z = 6 + 3 + 6 = 15. (Since s and t are not coprime, this triple is not primitive.)
Generalized Fibonacci sequence
Method I For Fibonacci numbers starting with F1 = 0 and F2 = 1 and with each succeeding Fibonacci number being the sum of the preceding two, one can generate a sequence of Pythagorean triples starting from (a3, b3, c3) = (4, 3, 5) via
(an,bn,cn)=(an−1+bn−1+cn−1,F2n−1−bn−1,F2n) for n ≥ 4.
Method II A Pythagorean triple can be generated using any two positive integers by the following procedures using generalized Fibonacci sequences. For initial positive integers hn and hn+1, if hn + hn+1 = hn+2 and hn+1 + hn+2 = hn+3, then
(2hn+1hn+2,hnhn+3,2hn+1hn+2+hn2) is a Pythagorean triple.
Method III The following is a matrix-based approach to generating primitive triples with generalized Fibonacci sequences. Start with a 2 × 2 array and insert two coprime positive integers (q,q′) in the top row. Place the even integer (if any) in the left-hand column.
[qq′∙∙] Now apply the following "Fibonacci rule" to get the entries in the bottom row:
q′+q=pq+p=p′→[qq′pp′] Such an array may be called a "Fibonacci Box". Note that q′, q, p, p′ is a generalized Fibonacci sequence. Taking column, row, and diagonal products we obtain the sides of triangle [a, b, c], its area A, and its perimeter P, as well as the radii ri of its incircle and three excircles as follows:
a=2qpb=q′p′c=pp′−qq′=qp′+q′pradii→(r1=qq′,r2=qp′,r3=q′p,r4=pp′)A=qq′pp′P=r1+r2+r3+r4 The half-angle tangents at the acute angles are q/p and q′/p′. EXAMPLE: Using coprime integers 9 and 2.
[29∙∙]→[291113] The column, row, and diagonal products are: (columns: 22 and 117), (rows: 18 and 143), (diagonals: 26 and 99), so
a=2(22)=44b=117c=(143−18)=(26+99)=125radii→(r1=18,r2=26,r3=99,r4=143)A=18(143)=2574P=(18+26+99+143)=286 The half-angle tangents at the acute angles are 2/11 and 9/13. Note that if the chosen integers q and q′ are not coprime, then the same procedure leads to a non-primitive triple.
Pythagorean triples and Descartes' circle equation This method of generating primitive Pythagorean triples also provides integer solutions to Descartes' Circle Equation,
… excerpt ends here. Continue reading the full article.