If $x = \frac{z}{4}$, and $y= \frac{z}{2}$, then $\frac{x}{y}+\frac{y}{z}+\frac{z}{x} = \frac{1}{2}+\frac{1}{2} + 4 = 5$. Thus, whenever $z = 4t, t \in \mathbb{N}$, the solution set $(x,y,z) = (t,2t,4t)$ satisfies, and thus are infinitely many forms of $x+y+z$ with the given constraints - notably of the form $7t$.
These aren't all the solutions, but it's at least one class.
EDIT: Doing some further work, we can utilize this method to greatly expand the solution class. Say that $x | z$ and that $\frac{x}{y} < 1, \frac{y}{z} < 1$. Thus, in order for the original equation to be an integer, $\frac{x}{y} + \frac{y}{z} = 1$. Then for some $m,n \in \mathbb{N}$ where $m< n$, $\frac{x}{y} = \frac{m}{n}, \frac{y}{z} = \frac{n-m}{n}$.
Thus $nx = my$ and $ny = (n-m)z$, implying that $y = (1-\frac{m}{n})z$ and that $x = (\frac{m}{n} - \frac{m^{2}}{n^{2}})z$. Therefore $x+y+z = (\frac{m}{n} - \frac{m^{2}}{n^{2}})z + (1-\frac{m}{n})z + z = (2-\frac{m^{2}}{n^{2}})z$. Set $z = n^{2}t$ and the sum becomes $(2n^{2}-m^{2})t$, where $m,n,t \in \mathbb{N}$.
Thus the solution set $(mnt - m^{2}t,n^{2}t-mnt,n^{2}t)$ suffices to greatly expand the number of possible sums of $x+y+z$. In short, any multiple of any integer of the form $2n^{2} - m^{2}$ where $m < n$ can be expressed as a sum of $x,y,$ and $z$.
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$.
$$\mathrm{GM}(x^2,y^2) = xy$$
$$\mathrm{AM}(x^2,y^2) = \frac{x^2+y^2}{2}$$
$$\mathrm{HM}(x^2,y^2) = \frac{2x^2y^2}{x^2+y^2}$$
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.
$$\mathrm{GM}(a,b) = txy$$
$$\mathrm{AM}(a,b) = t\frac{x^2+y^2}{2} = (x^2+y^2)^2$$
$$\mathrm{HM}(a,b) = t\frac{2x^2y^2}{x^2+y^2} = 4x^2y^2$$
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$
$$t = 10$$
$$a = 10$$
$$b = 40$$
$$\mathrm{GM}(10,40) = 20$$
$$\mathrm{AM}(10,40) = 25$$
$$\mathrm{HM}(10,40) = 16$$
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.
Best Answer
Assuming $x\geq y$ We have it that $$ 5(x+y)=7(x-y) $$
and that $x+y\leq25$
Continuing with the above equality we get $$ 5x+5y=7x-7y $$
$$ 2x=12y $$ $$ x=6y $$
hence the solutions are $(1,6),(2,12),(3,18)$