Skip to main content
OlympiadHQ

Browse · MathNet

Print

Belarus2022

Belarus 2022 algebra

Problem

Given different integers greater than . It turned out that among them the amount of odd numbers equals to the largest even number, and the amount of even numbers equals to the largest odd number. a) Find the smallest possible value of . b) Find the greatest possible value of .
Solution
a) The largest odd and even numbers are positive integers, since there are numbers of both parities. This means that the largest even number is not less than two, the largest even number is not less than one, and the total number of numbers is not less than three. Note that is possible if given numbers are , and .

b) Let be the largest odd number and be the largest even number. The number of even numbers does not exceed since they are all at most and at least . At the same time the number of odd numbers does not exceed since they are all no more than and no less than . Whence Summing up these equalities we get that . Let us estimate the largest possible value of the number depending on the sum . If then the first inequality of system (1) is equivalent to the inequality , so the left side is less than the right one by at least , the second inequality of system (1) is equivalent to and in it the left side is less than the right side by at least one. So the total number of numbers does not exceed .

If , then the first inequality in system (1) is equivalent to the inequality , so the left side is less than the right one by at least . So the total number of numbers does not exceed . Note that in this case is possible with and if given all odd numbers from to and all even numbers from to .

If then doesn't exceed . Thus, in all cases and the equality is attainable.
Final answer
a) 3; b) 19

Techniques

IntegersLinear and quadratic inequalitiesDivisibility / Factorization