Veronica observes that and and wonders how many numbers there are with such that and , with and decimal digits (the cases in which one or more of the digits are equal to zero are also considered valid).
Problem 606
Pick one
Official solution
Solution:
The answer is . Since is obviously a multiple of 3, so is the sum of its digits . Moreover, we know that and that ; by subtraction, therefore, . On the other hand turns out to be a multiple of 3, so must be divisible by 27. The only possibilities are therefore and a simple calculation reveals that they indeed verify the curious property that Veronica noticed.
Second solution.
We observe that , and by construction the expression is equal to . One thus obtains , that is ; from this it is immediate to deduce that the values sought are .
Third solution.
Since we have , and similarly . The hypothesis tells us that , and dividing by 37 one obtains . This means that the number formed by the first 2 digits of is equal to 8 times the units digit; since, as already observed, does not exceed 3, the only possibilities are , which correspond to (not acceptable), and .