Browse · MathNet
Print28th Hellenic Mathematical Olympiad
Greece algebra
Problem
We consider the set of four digit positive integers with digits different than zero and pairwise different. We also consider the integers and we suppose that . Find the greatest and the lowest value of the difference , as well as the corresponding four digit integers for which these values are obtained.
Solution
We consider the decimal representation of the integers Therefore it is enough to find the greatest and the lowest values of the expression: Since are digits pairwise different and no zero, we must have . The expression gets its maximal value when the integers and take their maximal value and moreover . That is, becomes maximal when and . The difference becomes maximal when and . Hence , and . The expression gets its minimal value when the integers and take their minimal values. The minimal value of the difference is and so the pair has as possible values: For all the above possible values of the pair , the value of is: The lowest value of the difference is , for and . Taking in mind that the digits must be different we find the following table of possible values:
| 3192 | 2913 | 279 |
| 4193 | 3914 | 279 |
| 5194 | 4915 | 279 |
| 6195 | 5916 | 279 |
| 7196 | 6917 | 279 |
| 8197 | 7918 | 279 |
Final answer
Greatest difference: 8532, achieved by x = 9821 and y = 1289. Lowest difference: 279, achieved by the pairs (x, y) = (3192, 2913), (4193, 3914), (5194, 4915), (6195, 5916), (7196, 6917), (8197, 7918).
Techniques
IntegersFactorization techniques