TITLE: Find all positive integers $x, y, z$ so that $(x+2y)(y+2z)(z+2x)$ is equal to prime power
QUESTION [6 upvotes]: Find all positive integers $x, y, z$ so that $(x+2y)(y+2z)(z+2x)$ is equal to prime power.
My try
Since $x, y, z$ are positive integers it follows that $x+2y, y+2z, z+2x \geq 3$. We have following system of equations:
$$\begin{align}
x+2y &= p^r \tag{1}\label{eq1} \\
y+2z &= p^s \tag{2}\label{eq2} \\
z+2x &= p^t \tag{3}\label{eq3}
\end{align}$$
Where $p$ is prime number and $r, s, t$ are positive integers.
Solving this system of equations for $x, y, z$ gives us $x=\frac{4p^t-2p^s+p^r}{9}$, $y=\frac{4p^r-2p^t+p^s}{9}$, $z=\frac{4p^s-2p^r+p^t}{9}$. Since $x, y, z$ are integers following equations must hold:
$$\begin{align}
4p^t-2p^s+p^r &\equiv 0 \pmod 9 \\
4p^r-2p^t+p^s &\equiv 0 \pmod 9 \\
4p^s-2p^r+p^t &\equiv 0 \pmod 9
\end{align}$$
I don't know how to continue from there. Can somebody help?

REPLY [5 votes]: Suppose we have a solution $(x, y, z)$. Note that if $d = \gcd(x, y, z) > 1$, then $d$ must also be a power of $p$, and we get a smaller solution $(x', y', z') = (x/d, y/d, z/d)$ with $\gcd(x', y', z') = 1$. 
Thus without loss of generality we can assume our solution has $\gcd(x, y, z) = 1$. Now, if $p \neq 3$, then by the formulas $x = (4p^t - 2p^s + p^r)/9$, etc., we must have that $x, y, z$ are divisible by $p$, contradicting $\gcd(x, y, z) = 1$. It follows that there can only be solutions in the case $p = 3$. 
Now suppose without loss of generality that $z$ is the largest of $x, y, z$. Again write 
$$x + 2y = 3^r \qquad y + 2z = 3^s \qquad z + 2x = 3^t.$$
Since $y \leq z$, we have $3^s \leq 3z$, and similarly since $x \leq z$, we have $3^t \leq 3z$. But then $3^{s-1} \leq z < z + 2x = 3^t$, so $s \leq t$, and conversely, $2(3^{t-1}) \leq 2z < y + 2z = 3^s$, so $t \leq s$, and thus we must have $s = t$. This gives $y + 2z = z + 2x$, hence $z = 2x - y \leq 2x$, so $3^t \leq 4x$, and $x \geq 3^t/4$. It follows that $3^r = x + 2y > 3^t/4 > 3^{t-2}$, so $r \geq t-1$. In the other direction, since $z-x=x-y$ and $z \geq x$, we have $x \geq y$, hence $3^r = x + 2y \leq z + 2x = 3^t$, so $r \leq t$.
Thus our only solutions for $(r, s, t)$ are of the forms $(t, t, t)$ and $(t-1, t, t)$. In the case $(t, t, t)$, it immediately follows that $x = y = z$, hence $(x, y, z) = (1, 1, 1)$. Solving the second case for $x, y, z$ gives
$$(x, y, z) = (3^{t-3}(12-6+1), 3^{t-3}(4-6+3), 3^{t-3}(12-2+3)) = (3^{t-3} \cdot 7, 3^{t-3}, 3^{t-3} \cdot 13)$$
and since we assumed $\gcd(x, y, z) = 1$, our solution is $(7, 1, 13)$. 
Now relaxing the assumption that $z$ was the largest, so we allow for cyclic shifts, the solutions with $\gcd(x, y, z) = 1$ are exactly $(1, 1, 1), (7, 1, 13), (1, 13, 7), (13, 7, 1)$. Relaxing the other assumption that $\gcd(x, y, z) = 1$, the general solutions are exactly all scalings of these primitive solutions by a power of $3$.