HOME

TheInfoList



OR:

500px, Berggrens's tree of primitive Pythagorean triples. In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, a tree of primitive Pythagorean triples is a data tree in which each node branches to three subsequent nodes with the infinite set of all nodes giving all (and only) primitive
Pythagorean triple A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , and a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A primitive Pythagorean triple is ...
s without duplication. A Pythagorean triple is a set of three positive
integer An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
s ''a, b,'' and ''c'' having the property that they can be respectively the two legs and the
hypotenuse In geometry, a hypotenuse is the longest side of a right-angled triangle, the side opposite the right angle. The length of the hypotenuse can be found using the Pythagorean theorem, which states that the square of the length of the hypotenuse equa ...
of a
right triangle A right triangle (American English) or right-angled triangle (British), or more formally an orthogonal triangle, formerly called a rectangled triangle ( grc, ὀρθόσγωνία, lit=upright angle), is a triangle in which one angle is a right an ...
, thus satisfying the equation a^2+b^2=c^2; the triple is said to be primitive
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bicondi ...
the
greatest common divisor In mathematics, the greatest common divisor (GCD) of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers ''x'', ''y'', the greatest common divisor of ''x'' and ''y'' is ...
of ''a, b,'' and ''c'' is one. Primitive Pythagorean triple ''a, b,'' and ''c'' are also pairwise
coprime In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equivale ...
. The set of all primitive Pythagorean triples has the structure of a rooted
tree In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
, specifically a
ternary tree : In computer science, a ternary tree is a tree data structure in which each node has at most three child nodes, usually distinguished as "left", “mid” and "right". Nodes with children are parent nodes, and child nodes may contain references t ...
, in a natural way. This was first discovered by B. Berggren in 1934. F. J. M. Barning showed that when any of the three
matrices Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** ''The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
: \begin A = \begin 1 & -2 & 2 \\ 2 & -1 & 2 \\ 2 & -2 & 3 \end & B = \begin 1 & 2 & 2 \\ 2 & 1 & 2 \\ 2 & 2 & 3 \end & C = \begin -1 & 2 & 2 \\ -2 & 1 & 2 \\ -2 & 2 & 3 \end \end is multiplied on the right by a
column vector In linear algebra, a column vector with m elements is an m \times 1 matrix consisting of a single column of m entries, for example, \boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end. Similarly, a row vector is a 1 \times n matrix for some n, c ...
whose components form a Pythagorean triple, then the result is another column vector whose components are a different Pythagorean triple. If the initial triple is primitive, then so is the one that results. Thus each primitive Pythagorean triple has three "children". All primitive Pythagorean triples are descended in this way from the triple (3, 4, 5), and no primitive triple appears more than once. The result may be graphically represented as an infinite ternary tree with (3, 4, 5) at the root node (see classic tree at right). This tree also appeared in papers of A. Hall in 1970 and A. R. Kanga in 1990. In 2008 V. E. Firstov showed generally that only three such trichotomy trees exist and give explicitly a tree similar to Berggren's but starting with initial node (4, 3, 5).


Proofs


Presence of exclusively primitive Pythagorean triples

It can be shown inductively that the tree contains primitive Pythagorean triples and nothing else by showing that starting from a primitive Pythagorean triple, such as is present at the initial node with (3, 4, 5), each generated triple is both Pythagorean and primitive.


Preservation of the Pythagorean property

If any of the above matrices, say ''A'', is applied to a triple (''a'', ''b'', ''c'')T having the Pythagorean property ''a''2 + ''b''2 = ''c''2 to obtain a new triple (''d'', ''e'', ''f'')T = ''A''(''a'', ''b'', ''c'')T, this new triple is also Pythagorean. This can be seen by writing out each of ''d'', ''e'', and ''f'' as the sum of three terms in ''a'', ''b'', and ''c'', squaring each of them, and substituting ''c''2 = ''a''2 + ''b''2 to obtain ''f''2 = ''d''2 + ''e''2. This holds for ''B'' and ''C'' as well as for ''A''.


Preservation of primitivity

The matrices ''A'', ''B'', and ''C'' are all unimodular—that is, they have only integer entries and their determinants are ±1. Thus their inverses are also unimodular and in particular have only integer entries. So if any one of them, for example ''A'', is applied to a primitive Pythagorean triple (''a'', ''b'', ''c'')T to obtain another triple (''d'', ''e'', ''f'')T, we have (''d'', ''e'', ''f'')T = ''A''(''a'', ''b'', ''c'')T and hence (''a'', ''b'', ''c'')T = ''A''−1(''d'', ''e'', ''f'')T. If any prime factor were shared by any two of (and hence all three of) ''d'', ''e'', and ''f'' then by this last equation that prime would also divide each of ''a'', ''b'', and ''c''. So if ''a'', ''b'', and ''c'' are in fact pairwise coprime, then ''d'', ''e'', and ''f'' must be pairwise coprime as well. This holds for ''B'' and ''C'' as well as for ''A''.


Presence of every primitive Pythagorean triple exactly once

To show that the tree contains every primitive Pythagorean triple, but no more than once, it suffices to show that for any such triple there is exactly one path back through the tree to the starting node (3, 4, 5). This can be seen by applying in turn each of the unimodular inverse matrices ''A''−1, ''B''−1, and ''C''−1 to an arbitrary primitive Pythagorean triple (''d'', ''e'', ''f''), noting that by the above reasoning primitivity and the Pythagorean property are retained, and noting that for any triple larger than (3, 4, 5) exactly one of the inverse transition matrices yields a new triple with all positive entries (and a smaller hypotenuse). By induction, this new valid triple itself leads to exactly one smaller valid triple, and so forth. By the finiteness of the number of smaller and smaller potential hypotenuses, eventually (3, 4, 5) is reached. This proves that (''d'', ''e'', ''f'') does in fact occur in the tree, since it can be reached from (3, 4, 5) by reversing the steps; and it occurs uniquely because there was only one path from (''d'', ''e'', ''f'') to (3, 4, 5).


Properties

The transformation using matrix ''A'', if performed repeatedly from (''a'', ''b'', ''c'') = (3, 4, 5), preserves the feature ''b'' + 1 = ''c''; matrix ''B'' preserves ''a'' – ''b'' = ±1 starting from (3, 4, 5); and matrix ''C'' preserves the feature ''a'' + 2 = ''c'' starting from (3, 4, 5). A geometric interpretation for this tree involves the
excircle In geometry, the incircle or inscribed circle of a triangle is the largest circle that can be contained in the triangle; it touches (is tangent to) the three sides. The center of the incircle is a triangle center called the triangle's incenter. ...
s present at each node. The three children of any parent triangle “inherit” their inradii from the parent: the parent’s excircle radii become the inradii for the next generation. For example, parent (3, 4, 5) has excircle radii equal to 2, 3 and 6. These are precisely the inradii of the three children (5, 12, 13), (15, 8, 17) and respectively. If either of ''A'' or ''C'' is applied repeatedly from any Pythagorean triple used as an initial condition, then the dynamics of any of ''a'', ''b'', and ''c'' can be expressed as the dynamics of ''x'' in : x_ - 3x_ + 3x_ - x_n = 0 \, which is patterned on the matrices' shared characteristic equation :\lambda ^3 -3 \lambda ^2 + 3 \lambda -1 = 0. \, If ''B'' is applied repeatedly, then the dynamics of any of ''a'', ''b'', and ''c'' can be expressed as the dynamics of ''x'' in : x_ - 5x_ - 5x_ + x_n = 0, \, which is patterned on the characteristic equation of ''B''. Moreover, an infinitude of other third-order univariate
difference equations In mathematics, a recurrence relation is an equation according to which the nth term of a sequence of numbers is equal to some combination of the previous terms. Often, only k previous terms of the sequence appear in the equation, for a paramete ...
can be found by multiplying any of the three matrices together an arbitrary number of times in an arbitrary sequence. For instance, the matrix ''D'' = ''CB'' moves one out the tree by two nodes (across, then down) in a single step; the characteristic equation of ''D'' provides the pattern for the third-order dynamics of any of ''a'', ''b,'' or ''c'' in the non-exhaustive tree formed by ''D''.


Alternative methods of generating the tree

500px, Price's tree of primitive Pythagorean triples. Another approach to the dynamics of this tree relies on the standard formula for generating all primitive Pythagorean triples: :a = m^2 - n^2, \, :b = 2mn, \, :c = m^2 + n^2, \, with ''m'' > ''n'' > 0 and ''m'' and ''n'' coprime and of opposite parity. Pairs (''m'', ''n'') can be iterated by pre-multiplying them (expressed as a column vector) by any of : \begin \begin 2 & -1 \\ 1 & 0 \end, & \begin 2 & 1 \\ 1 & 0 \end, & \begin 1 & 2 \\ 0 & 1 \end, \end each of which preserves the inequalities, coprimeness, and opposite parity. The resulting ternary tree, starting at (2,1), contains every such (''m'', ''n'') pair exactly once, and when converted into (''a'', ''b'', ''c'') triples it becomes identical to the tree described above. Another way of using two underlying parameters to generate the tree of triplesMitchell, Douglas W., "An alternative characterisation of all primitive Pythagorean triples", ''Mathematical Gazette'' 85, July 2001, 273–275. uses an alternative formula for all primitive triples: :a = uv, \, :b = \frac, :c = \frac, with ''u'' > ''v'' > 0 and ''u'' and ''v'' coprime and ''both odd''. Pairs (''u'', ''v'') can be iterated by pre-multiplying them (expressed as a column vector) by any of the above 2 × 2 matrices, all three of which preserve the inequalities, coprimeness, and the odd parity of both elements. When this process is begun at (3, 1), the resulting ternary tree contains every such (''u'', ''v'') pair exactly once, and when converted into (''a'', ''b'', ''c'') triples it becomes identical to the tree described above.


A different tree

Alternatively, one may also use 3 different matrices found by Price. These matrices ''A', B', C and their corresponding linear transformations are shown below. : \overset \left \begin a \\ b \\ c \end \right\left \begin a_1 \\ b_1 \\ c_1 \end \right\quad \text\overset \left \begin a \\ b \\ c \\ \end \right\left \begin a_2 \\ b_2 \\ c_2 \end \right\quad \text\overset \left \begin a \\ b \\ c \\ \end \right\left \begin a_3 \\ b_3 \\ c_3 \end \right/math> Price's three linear transformations are : \begin & \begin +2a+b-c=a_1 \quad & -2a+2b+2c=b_1 \quad & -2a+b+3c=c_1 & \quad \to \left \texta_1,\textb_1,\textc_1 \right\end \\ & \begin +2a+b+c=a_2 \quad & +2a-2b+2c=b_2 \quad & +2a-b+3c=c_2 & \quad \to \left \texta_2,\textb_2,\textc_2 \right\end \\ & \begin +2a-b+c=a_3 \quad & +2a+2b+2c=b_3 \quad & +2a+b+3c=c_3 & \quad \to \left \texta_3,\textb_3,\textc_3 \right\end \\ & \end The 3 children produced by each of the two sets of matrices are not the same, but each set separately produces all primitive triples. For example, using , 12, 13as the parent, we get two sets of three children: : \begin & \left 5,12,13 \right& \\ A & B & C \\ \left 45,28,53 \right& \left 55,48,73 \right& \left 7,24,25 \right\end \quad \quad \quad \quad \quad \quad \begin & \left 5,12,13 \right& \\ A' & B' & C' \\ \left 9,40,41 \right& \left 35,12,37\right& \left 11,60,61 \right\end


Notes and references


External links


The Trinary Tree(s) underlying Primitive Pythagorean Triples
at
cut-the-knot Alexander Bogomolny (January 4, 1948 July 7, 2018) was a Soviet-born Israeli-American mathematician. He was Professor Emeritus of Mathematics at the University of Iowa, and formerly research fellow at the Moscow Institute of Electronics and Math ...
* Frank R. Bernhart, and H. Lee Price, "Pythagoras' garden, revisited", Australian Senior Mathematics Journal 01/2012; 26(1):29-4

* {{MathWorld , urlname=PythagoreanTriple , title=Pythagorean Triple Diophantine equations Trees (data structures)