2. Determine the four-digit number whose sum of digits is 17, if all digits are different and satisfy the equations
Problem 727
Official solution
Solution. Since and , we get .
For , we get , which is not possible, and for , we get , which is also not possible.
Let ; then , so from we get . From here it is clear that is an even number less than 4. The following cases are possible:
, but then
, this is not possible because .
, but then , so the number is not a four-digit number.
Thus, it is not possible for .
Let . Then , so from , we get . From here it is clear that is an odd number. The following cases are possible:
and the sum of the digits is 17;
which is not possible;
, but the sum of the digits is 19;
, but the sum of the digits is 20;
, which is not possible because according to the condition of the problem is a four-digit number.
Thus, the only solution is .