ArticleslgStudy

mathematics

Tree of primitive Pythagorean triples

Tree of primitive Pythagorean triples is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Tree of primitive Pythagorean triples rather than just read about it. In short: A tree of primitive Pythagorean triples is a mathematical tree in which each node represents a primitive Pythagorean triple and each primitive Pythagorean triple is represented by exactly one node. In two of these trees, Berggren's tree and Price's tree, the root of the tree is the triple (3, 4, 5), and each node has exactly three children, generated from it by linear transformations.

Tree of primitive Pythagorean triples — main illustration
Tree of primitive Pythagorean triples — illustration

Key takeaways

  • Tree of primitive Pythagorean triples belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Tree of primitive Pythagorean triples to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Tree of primitive Pythagorean triples from memory before moving on to harder problems.

Reference excerpt

A tree of primitive Pythagorean triples is a mathematical tree in which each node represents a primitive Pythagorean triple and each primitive Pythagorean triple is represented by exactly one node. In two of these trees, Berggren's tree and Price's tree, the root of the tree is the triple (3, 4, 5), and each node has exactly three children, generated from it by linear transformations. A Pythagorean triple is a set of three positive integers a, b, and c having the property that they can be respectively the two legs and the hypotenuse of a right triangle, thus satisfying the equation a2+b2=c2; the triple is said to be primitive if and only if the greatest common divisor of a, b, and c is one. With primitive Pythagorean triples, a, b, and c are also pairwise coprime. The set of all primitive Pythagorean triples has the structure of a rooted tree, specifically a ternary tree, 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

A=[1−222−122−23]B=[122212223]C=[−122−212−223] is multiplied on the right by a column vector 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 a2 + b2 = c2 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 c2 = a2 + b2 to obtain f2 = d2 + e2. 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 excircles 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 (21, 20, 29) 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

xn+3−3xn+2+3xn+1−xn=0 which is patterned on the matrices' shared characteristic equation

λ3−3λ2+3λ−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

xn+3−5xn+2−5xn+1+xn=0, which is patterned on the characteristic equation of B. Moreover, an infinitude of other third-order univariate difference equations 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

Using two parameters Another approach to the dynamics of this tree relies on the standard formula for generating all primitive Pythagorean triples:

a=m2−n2, b=2mn, c=m2+n2, with m > n > 0 and m and n coprime and of opposite parity (i.e., not both odd). Pairs (m, n) can be iterated by pre-multiplying them (expressed as a column vector) by any of

… excerpt ends here. Continue reading the full article.

Illustrations

Tree of primitive Pythagorean triples: Berggrens's tree of primitive Pythagorean triples.
Berggrens's tree of primitive Pythagorean triples.
Tree of primitive Pythagorean triples: Price's tree of primitive Pythagorean triples.
Price's tree of primitive Pythagorean triples.

Worked examples

Example 1 — a first encounter with Tree of primitive Pythagorean triples

Start with the simplest possible case. Write down what Tree of primitive Pythagorean triples claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Tree of primitive Pythagorean triples before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Tree of primitive Pythagorean triples ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Tree of primitive Pythagorean triples

In research
Tree of primitive Pythagorean triples appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Tree of primitive Pythagorean triples in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Tree of primitive Pythagorean triples is common in secondary-school and first-year university syllabi. It links to neighbouring topics Diophantine equations, Trees (data structures), so understanding it makes those chapters shorter.
In everyday life
Look for Tree of primitive Pythagorean triples outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Tree of primitive Pythagorean triples” →

How to study Tree of primitive Pythagorean triples in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Tree of primitive Pythagorean triples means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Tree of primitive Pythagorean triples out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Tree of primitive Pythagorean triples in simple terms?

A tree of primitive Pythagorean triples is a mathematical tree in which each node represents a primitive Pythagorean triple and each primitive Pythagorean triple is represented by exactly one node. In two of these trees, Berggren's tree and Price's tree, the root of the tree is the triple (3, 4, 5)…

Why does Tree of primitive Pythagorean triples matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Tree of primitive Pythagorean triples?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Tree of primitive Pythagorean triples.

Tags

  • Diophantine equations
  • Trees (data structures)

Keep exploring