Browse · MathNet
PrintGirls European Mathematical Olympiad
North Macedonia counting and probability
Problem
Let be positive integers with . Anastasia partitions the integers into pairs. Boris then chooses one integer from each pair and finds the sum of these chosen integers. Prove that Anastasia can select the pairs so that Boris cannot make his sum equal to .
Solution
Define the following ordered partitions:
For each we will compute the possible values for the expression , where , are the chosen integers. Here denotes the -th coordinate of the ordered partition . We will denote by the number .
Consider the partition and a certain choice with corresponding . We find that Hence, if or , this partition gives a positive answer.
Consider the partition and a certain choice with corresponding . We find that Hence, if and , this partition solves the problem.
* Consider the partition and a certain choice with corresponding . We set We also put , and note that . Note also that if , then . Hence, for all it holds that Hence, which can only be congruent to modulo if all are equal, which forces or . Since , it holds that Hence if and , then cannot be equal to , so partition suffices for such .
Note that all are treated in one of the cases above, so we are done.
Solution 1B:
Consider the partition . We consider possible sums mod . For the first pairs, the elements of each pair are congruent mod , so the sum of one element of each pair is (mod ) congruent to , which is congruent to 1 if is odd and if is even. Now the elements of the last pair are congruent to and , so any achievable value of is congruent to 0 or 1 if is odd, and to 0 or 1 plus if is even. If is even then , which is not congruent to 0 or 1. If is odd then and , neither of which can equal 0 or 1 plus .
Solution 1C:
Similarly, consider the partition this considering sums of elements of pairs mod . If is odd, the sum is congruent to 1 or 2; if is even, to 1 or 2 plus . If is even then , and this can only be congruent to 1 or 2 when . If is odd, and are congruent to 1 and 2, and these can only be congruent to 1 or 2 plus when . Now the cases of and need considering separately (by finding explicit partitions excluding each ).
Solution 2:
This solution does not use modulo arguments. Use only from the solution 1A to conclude that . Now consider the partition . If 1 is chosen from the first pair, the sum is at most ; if is chosen, the sum is at least . So either or . Now consider the partition . Sums of one element from each of the last pairs are in the range from each to inclusive. Sums of one element from each of the first two pairs are and . In the first case we have in the second and in the third . So these three partitions together have eliminated all .
For each we will compute the possible values for the expression , where , are the chosen integers. Here denotes the -th coordinate of the ordered partition . We will denote by the number .
Consider the partition and a certain choice with corresponding . We find that Hence, if or , this partition gives a positive answer.
Consider the partition and a certain choice with corresponding . We find that Hence, if and , this partition solves the problem.
* Consider the partition and a certain choice with corresponding . We set We also put , and note that . Note also that if , then . Hence, for all it holds that Hence, which can only be congruent to modulo if all are equal, which forces or . Since , it holds that Hence if and , then cannot be equal to , so partition suffices for such .
Note that all are treated in one of the cases above, so we are done.
Solution 1B:
Consider the partition . We consider possible sums mod . For the first pairs, the elements of each pair are congruent mod , so the sum of one element of each pair is (mod ) congruent to , which is congruent to 1 if is odd and if is even. Now the elements of the last pair are congruent to and , so any achievable value of is congruent to 0 or 1 if is odd, and to 0 or 1 plus if is even. If is even then , which is not congruent to 0 or 1. If is odd then and , neither of which can equal 0 or 1 plus .
Solution 1C:
Similarly, consider the partition this considering sums of elements of pairs mod . If is odd, the sum is congruent to 1 or 2; if is even, to 1 or 2 plus . If is even then , and this can only be congruent to 1 or 2 when . If is odd, and are congruent to 1 and 2, and these can only be congruent to 1 or 2 plus when . Now the cases of and need considering separately (by finding explicit partitions excluding each ).
Solution 2:
This solution does not use modulo arguments. Use only from the solution 1A to conclude that . Now consider the partition . If 1 is chosen from the first pair, the sum is at most ; if is chosen, the sum is at least . So either or . Now consider the partition . Sums of one element from each of the last pairs are in the range from each to inclusive. Sums of one element from each of the first two pairs are and . In the first case we have in the second and in the third . So these three partitions together have eliminated all .
Techniques
Games / greedy algorithmsInvariants / monovariantsColoring schemes, extremal argumentsTechniques: modulo, size analysis, order analysis, inequalities