# Pythagorean means

In mathematics, the three classical Pythagorean means are the arithmetic mean (AM), the geometric mean (GM), and the harmonic mean (HM). These means were studied with proportions by Pythagoreans and later generations of Greek mathematicians because of their importance in geometry and music.

## Definition

They are defined by:
${\begin{aligned}\operatorname {AM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\frac {x_{1}+\;\cdots \;+x_{n}}{n}}\\[9pt]\operatorname {GM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\sqrt[{n}]{\left\vert x_{1}\times \,\cdots \,\times x_{n}\right\vert }}\\[9pt]\operatorname {HM} \left(x_{1},\;\ldots ,\;x_{n}\right)&={\frac {n}{\displaystyle {\frac {1}{x_{1}}}+\;\cdots \;+{\frac {1}{x_{n}}}}}\end{aligned}}$

## Properties

Each mean, M{\textstyle \operatorname {M} }, has the following properties:

### First-order homogeneity

    $\operatorname {M} (bx_{1},\,\ldots ,\,bx_{n})=b\operatorname {M} (x_{1},\,\ldots ,\,x_{n})$

### Invariance under exchange

    $\operatorname {M} (\ldots ,\,x_{i},\,\ldots ,\,x_{j},\,\ldots )=\operatorname {M} (\ldots ,\,x_{j},\,\ldots ,\,x_{i},\,\ldots )$
    for any $i$ and $j$.

### Monotonicity

    $a\leq b\rightarrow \operatorname {M} (a,x_{1},x_{2},\ldots x_{n})\leq \operatorname {M} (b,x_{1},x_{2},\ldots x_{n})$

### Idempotence

    $\forall x,\;M(x,x,\ldots x)=x$
Monotonicity and idempotence together imply that a mean of a set always lies between the extremes of the set: $\min(x_{1},\,\ldots ,\,x_{n})\leq \operatorname {M} (x_{1},\,\ldots ,\,x_{n})\leq \max(x_{1},\,\ldots ,\,x_{n}).$
The harmonic and arithmetic means are reciprocal duals of each other for positive arguments, $\operatorname {HM} \left({\frac {1}{x_{1}}},\,\ldots ,\,{\frac {1}{x_{n}}}\right)={\frac {1}{\operatorname {AM} \left(x_{1},\,\ldots ,\,x_{n}\right)}},$
while the geometric mean is its own reciprocal dual: $\operatorname {GM} \left({\frac {1}{x_{1}}},\,\ldots ,\,{\frac {1}{x_{n}}}\right)={\frac {1}{\operatorname {GM} \left(x_{1},\,\ldots ,\,x_{n}\right)}}.$

## Inequalities among means

There is an ordering to these means (if all of the $x_{i}$ are positive) $\min \leq \operatorname {HM} \leq \operatorname {GM} \leq \operatorname {AM} \leq \max$ with equality holding if and only if the $x_{i}$ are all equal.
This is a generalization of the inequality of arithmetic and geometric means and a special case of an inequality for generalized means. The proof follows from the arithmetic–geometric mean inequality, $\operatorname {AM} \leq \max$, and reciprocal duality ($\min$ and $\max$ are also reciprocal dual to each other).
The study of the Pythagorean means is closely related to the study of majorization and Schur-convex functions. The harmonic and geometric means are concave symmetric functions of their arguments, and hence Schur-concave, while the arithmetic mean is a linear function of its arguments and hence is both concave and convex.

## History

Almost everything that we know about the Pythagorean means came from arithmetic handbooks written in the first and second century. Nicomachus of Gerasa says that they were "acknowledged by all the ancients, Pythagoras, Plato and Aristotle." Their earliest known use is a fragment of the Pythagorean philosopher Archytas of Tarentum:
   There are three means in music: one is arithmetic, second is the geometric, third is sub-contrary, which they call harmonic. The mean is arithmetic when three terms are in proportion such that the excess by which the first exceeds the second is that by which the second exceeds the third. In this proportion it turns out that the interval of the greater terms is less, but that of the lesser terms greater. The mean is the geometric when they are such that as the first is to the second, so the second is to the third. Of these terms the greater and the lesser have the interval between them equal. Subcontrary, which we call harmonic, is the mean when they are such that, by whatever part of itself the first term exceeds the second, by that part of the third the middle term exceeds the third. It turns out that in this proportion the interval between the greater terms is greater and that between the lesser terms is less.
The name "harmonic mean", according to Iamblichus, was coined by Archytas and Hippasus. The Pythagorean means also appear in Plato's Timaeus. Another evidence of their early use is a commentary by Pappus.
   It was [...] Theaetetus who distinguished the powers which are commensurable in length from those which are incommensurable, and who divided the more generally known irrational lines according to the different means, assigning the medial lines to geometry, the binomial to arithmetic, and the apotome to harmony, as is stated by Eudemus, the Peripatetic.
The term "mean" (Ancient Greek μεσότης, mesótēs) appears in the Neopythagorean arithmetic handbooks in connection with the term "proportion" (Ancient Greek ἀναλογία, analogía).

## Smallest distinct positive integer means

Of all pairs of different natural numbers of the form (a, b) such that a < b, the smallest (as defined by least value of a + b) for which the arithmetic, geometric and harmonic means are all also natural numbers are (5, 45) and (10, 40).