Browse · MathNet
PrintEstonian Math Competitions
Estonia algebra
Problem
(a) Find the largest number expressible as the difference of two two-digit numbers obtained from each other by changing the order of digits. (b) The same question with three-digit instead of two-digit numbers.
Solution
(a) Let the given two-digit number be . The only number that can be obtained by changing the order of digits is . The difference of these numbers is . To obtain the largest difference, must be as large as possible and as small as possible. Since is impossible, we must have and giving . Hence the desired largest difference is .
(b) Let the given three-digit number be . Interchanging the last two digits can change it by less than . Interchanging the first two digits can change the number by at most by part (a) of the problem. It remains to study cases where changing the order of digits results in , or .
The difference of numbers and is . To obtain the largest difference, and must be as large as possible and as small as possible. Since is the first digit of the number, is impossible, whence the largest difference is obtained if and . This difference is .
The difference of numbers and is . To obtain the largest difference, must be as large as possible and both and as small as possible, i.e., , and . This difference is .
* The difference of numbers and is . To obtain the largest difference, must be as large as possible and as small as possible. Since , the largest difference is obtained if and . Then the difference of the three-digit numbers is .
Consequently, the desired largest difference is .
(b) Let the given three-digit number be . Interchanging the last two digits can change it by less than . Interchanging the first two digits can change the number by at most by part (a) of the problem. It remains to study cases where changing the order of digits results in , or .
The difference of numbers and is . To obtain the largest difference, and must be as large as possible and as small as possible. Since is the first digit of the number, is impossible, whence the largest difference is obtained if and . This difference is .
The difference of numbers and is . To obtain the largest difference, must be as large as possible and both and as small as possible, i.e., , and . This difference is .
* The difference of numbers and is . To obtain the largest difference, must be as large as possible and as small as possible. Since , the largest difference is obtained if and . Then the difference of the three-digit numbers is .
Consequently, the desired largest difference is .
Final answer
(a) 72; (b) 801
Techniques
IntegersFactorization techniques