
93.3. Find all solutions of the system of equations

$$
\left\{\begin{aligned}
s(x)+s(y) & =x \\
x+y+s(z) & =z \\
s(x)+s(y)+s(z) & =y-4
\end{aligned}\right.
$$

where $x, y$, and $z$ are positive integers, and $s(x), s(y)$, and $s(z)$ are the numbers of digits in the decimal representations of $x, y$, and $z$, respectively.


Solution. The first equation implies $x \geq 2$ and the first and third equation together imply

$$
s(z)=y-x-4
$$

So $y \geq x+5 \geq 7$. From (1) and the second equation we obtain $z=2 y-4$. Translated to the values of $s$, these equation imply $s(x) \leq s(2 y) \leq s(y)+1$ and $s(x) \leq s(y)$. We insert these inequalitien in the last equation of the problem to obtain $y-4 \leq 3 s(y)+1$ or $y \leq 3 s(y)+5$. Since $10^{s(y)-1} \leq y$, the only possible values of $s(y)$ are 1 and 2 . If $s(y)=1$, then $7 \leq y \leq 3+5=8$. If $y=7, x$ must be 2 and $z=2 \cdot 7-4=10$. But this does not fit in the second equation: $2+7+2 \neq 10$. If $y=8$, then $z=12, x=2$. The triple $(2,8,12)$ satisfies all the equations of the problem. If $s(y)=2$, then $y \leq 6+5=11$. The only possibilities are $y=10$ and $y=11$. If $y=10$, then $z=16$ and $x \leq 5$. The equation $s(x)+s(y)+s(z)=y-4=6$ is not satisfied. If $y=11$, then $z=18$ and $x \leq 6$. Again, the third equation is not satisfied. So $x=2, y=8$, and $z=12$ is the only solution.
