Maths Olympiad Prep

Library / /21 of 31

Algebra Difficulty 6.6 National olympiad Prove it Belarus

Given n2n \ge 2 pairwise distinct integers bigger than a-a, such 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 minimal possible nn over all positive integers a2a \ge 2.

b) For each integer a2a \ge 2 find the maximal possible nn.

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 n=3n = 3 could be, for example, if a=3a = 3 and the numbers 1-1, 11 and 22 are given.

b) Let 2x+12x + 1 be the largest odd number and 2y2y be the largest even number. The number 2x+12x + 1 of even numbers does not exceed y+a+12y + \lfloor \frac{a+1}{2} \rfloor, since they are all at most 2y2y and at least a+1-a + 1. And the number 2y2y of odd numbers does not exceed x+1+a2x + 1 + \lfloor \frac{a}{2} \rfloor, because they are not greater than 2x+12x + 1 and not less than a+1-a + 1. Hence
{2x+1y+a+12,2yx+1+a2.(1) \begin{cases} 2x + 1 \le y + \lfloor \frac{a+1}{2} \rfloor, \\ 2y \le x + 1 + \lfloor \frac{a}{2} \rfloor. \end{cases} \quad (1)
Summing up these equalities we get x+ya+12+a2=ax + y \le \lfloor \frac{a+1}{2} \rfloor + \lfloor \frac{a}{2} \rfloor = a, therefore n=2x+1+2y2a+1n = 2x + 1 + 2y \le 2a + 1. If n=2a+1n = 2a + 1 then the inequalities in (1) must be the equalities and in this case
{3x=(x+y)+a12,3y=(x+y)+a+22. \begin{cases} 3x = (x + y) + \lfloor \frac{a-1}{2} \rfloor, \\ 3y = (x + y) + \lfloor \frac{a+2}{2} \rfloor. \end{cases}
However this is impossible, since the right-hand sides of these equalities give different remainders when divided by 33.

Since the number nn is odd and n<2a+1n < 2a + 1, then n2a1n \le 2a - 1. Let us show that this estimate is attainable. For even aa one can take x=a/21x = a/2 - 1 and y=a/2y = a/2, and for odd aa one can take x=y=(a1)/2x = y = (a - 1)/2, then the system (1) will be satisfied and, obviously, there will be corresponding nn-tuples of numbers satisfying the condition.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.