I’ve been set this problem by my teacher, and had no idea where to start. I have a Diophantine equation:
$$ \frac{x^2+y^2+z^2}{x+y+z}=2n $$
$x, y, z$ and $n$ must be distinct positive integers. I’ve found solutions where there is an equality for any of $x, y$ and $z$ but I haven’t been able to for distinct positive integers, and would appreciate help.
There are infinitely many non-trivial solutions $x=y=z$ with $x$ even and $n=\frac{x}{2}$:
$$ \frac{x^2+y^2+z^2}{x+y+z}=\frac{3x^2}{3x}=x=2n. $$ So they cannot be unique.
Edit: The title now says distinct integer solutions (in the body it is still says unique integer solutions. In this case consider, for example, $$ (x,y,z,n)=(18,12,8,7). $$ This solves your equation in distinct integers.