Skip to main content
OlympiadHQ

Browse · MathNet

Print

National Olympiad Final Round

Estonia algebra

Problem

Positive integer is obtained by reordering the digits in a positive integer . Which of the following claims are definitely true?

a) The sums of the digits of numbers and are equal. b) The sums of the digits of numbers and are equal. c) The sums of the digits of numbers and are equal.
Solution
Call digits small and digits large. Denote the digits of -digit number from right to left by . Denote by the sum of all digits of and by the number of large digits of .

a) If is small then or depending on whether is small or large. Similarly if is large then or depending on whether is small or large. In other words, when multiplying by , each large digit necessitates decreasing of the digit at its place by and increasing of the preceding digit by in comparison with a small digit. Hence, for every natural number , . As and , we have .

b) If and then but .

c) Obviously . By part a), on the other hand, , holding for every natural number . Hence . The digit is large if and only if the digit is odd, because a carry during multiplying by can be at most . Thus is the number of odd digits of , implying . Consequently, .
Final answer
a and c

Techniques

IntegersInvariants / monovariantsOther