# Do there exist pairs of distinct real numbers whose arithmetic, geometric and harmonic means are all integers?

I self-realized an interesting property today that all numbers $(a,b)$ belonging to the infinite set have their AM and GM both integers.

Now I wonder if there exist distinct real numbers $(a,b)$ such that their arithmetic mean, geometric mean and harmonic mean (AM, GM, HM) all three are integers. Also, I wonder if a stronger result for $(a,b)$ both being integers exists.

I tried proving it, but I did not find it easy. For the AM, it is easy to assume a real $a$ and an AM $m_1$ such that the second real $b$ equals $2m_1-a$. For the GM, we get a condition that $m_2=\sqrt{(2m_1-a)a}$. If $m_2$ is an integer, then… what? I am not sure exactly how we can restrict the possible values of $a$ and $m_1$ in this manner.

Expanding on Christian Blatter’s answer.

There are a few key points.

• The arithmetic mean of two rational numbers is always rational.
• The harmonic mean of two non-zero rational numbers is always rational.
• The geometric mean of two squared positive integers is always an integer.
• For all three types of mean if we multiply every input by a positive real value we also multiply the result by that same value.

These key points lead to a strategy for finding numbers whose am, gm and hm are all integers.

• pick a pair of integers whose GM is an integer.
• calculate the AM and HM
• multiply through by the denominators of the AM and HM.

Now to work this through, pick any two distinct positive integers $x$ and $y$.

Let $t = 2(x^2 + y^2)$ Let $a=tx^2$ Let $b=ty^2$. Since only addition, multiplication and squaring of positive integers is involved it is clear that $t$, $a$ and $b$ are all positive integers. It is also clear that a and b are distinct.

Again since all these values can be calculated merely by adding, multiplying and squaring positive integers they are all positive integers.

Lets plug in some numbers, for example $x=1$ and $y=2$

Indeed we can extend this techiquie to find an arbitary size list of integers the AM, GM, and HM of any subset of which are integers. Just start with integers of the form $x^{n!}$ so the GMs are all integers. Then work out the AMs and HMs and multiply through.