Maths Olympiad Prep

Library / /15 of 15

Combinatorics Difficulty 7.8 National Olympiad, round 2 Prove it Argentina

On the table there are 20132013 cards with 1,2,,20131, 2, \ldots, 2013 written on them; the cards are face down (the numbers on them cannot be seen). It is allowed to select any set of cards, to ask if the arithmetic mean of the numbers on them is an integer, and to receive a truthful answer.

a) Find all numbers that can be determined with certainty by asking such questions.

b) We want to divide the cards into groups such that the contents of each group as a whole is known although the values of the individual cards in it might not be. (For instance, to find a group of three cards containing 1,2,31, 2, 3 without knowing which number is on which card.) What maximum number of such groups can be obtained?

Solution

Replace 20132013 by a general odd number 2k12k-1, k2k \ge 2. The sum S=1+2++(2k1)S = 1+2+\dots+(2k-1) equals k(2k1)k(2k-1). For part a), the only number that can be determined with certainty is kk, the one in the middle. To find kk, ignore a card with an unknown number xx on it, thus forming a set of 2k22k-2 cards, and ask about their average. It is an integer if and only if 2k22k-2 divides Sx=k(2k1)x=k(2k2)+(kx)S-x = k(2k-1) - x = k(2k-2) + (k-x), i.e. if and only if 2k22k-2 divides kxk-x. Now 1x2k11 \le x \le 2k-1 gives kxk1<2k2|k-x| \le k-1 < 2k-2 (by k2k \ge 2), thus x=kx = k is the only possibility. Hence applying the procedure to each card will exhibit kk.

Conversely, suppose that the card with a number mm can be determined with certainty by asking a sequence of questions. Imagine that the number jj on each card is replaced by 2kj2k-j; the numbers 1,2,,2k11, 2, \ldots, 2k-1 are written on the cards again. Now ask the same sequence of questions. Since the average of 2kj,,2kj2k-j, \ldots, 2k-j is integer if and only if the average of j1,,jnj_1, \ldots, j_n is, the answers will be the same as with the initial situation. Hence the questions that initially find the card with mm will find the card with 2km2k-m in the new situation; so 2km=m2k-m = m and m=km = k. This completes a).

b) Let the cards be divided into groups so that the contents of each group as a whole is known. Since kk is the unique number that can be found with certainty, all groups contain at least 22 cards each except possibly one, which contains the card with kk and has size 11. It follows that the number of groups is at most 12((2k1)1)+1=k\frac{1}{2} ((2k-1)-1)+1 = k. We prove that kk groups can be obtained. More precisely, excluding the card with kk, the remaining cards can be divided into k1k-1 pairs such that each pair contains numbers of the form j,2kjj, 2k-j, j=1,,k1j=1, \ldots, k-1. Call such cards complementary.

Note that, once kk is found, one can determine the parity of the number on each card. Let e.g. kk be odd. Choose any card xx and ask about the two cards k,xk, x. If their average is an integer then xx is odd, otherwise is even. The case of even kk is analogous.

Let us show now how to find the complementary pairs Cj={j,2kj}C_j = \{j, 2k-j\}, j=1,,k1j=1, \ldots, k-1. Start with C1={1,2k1}C_1 = \{1, 2k-1\} and C2={2,2k2}C_2 = \{2, 2k-2\}. Take a pair of cards with different parity and unknown sum yy; yy is odd. Ask about the average of the remaining 2k32k-3 cards. It is an integer if and only if 2k32k-3 divides Sy=k(2k1)y=k(2k3)+2kyS-y = k(2k-1)-y = k(2k-3) + 2k - y, hence if and only if 2k32k-3 divides 2ky2k-y. Note that 3y4k33 \le y \le 4k-3, yielding 2ky2k3|2k-y| \le 2k-3. So the answer is yes if and only if 2ky{0,±(2k3)}2k-y \in \{0, \pm(2k-3)\}. Because 2ky2k-y is odd (as yy is), we obtain 2ky=±(2k3)2k-y = \pm(2k-3), yielding y=3y=3 or y=4k3y=4k-3. These are the extremal values of the sum yy; they are achieved only if the numbers in the pair are 1,21, 2 or 2k2,2k12k-2, 2k-1 respectively.

By repeating this procedure with all pairs of cards with different parity we find the two pairs 1,21, 2 and 2k2,2k12k-2, 2k-1 (without knowing which one is which). Thus a group containing the 44 cards 1,2,2k2,2k11, 2, 2k-2, 2k-1 is determined. It has 22 odd and 22 even numbers, and the parity of the number on each card is known. Hence the two odd cards in the group form the complementary pair C1={1,2k1}C_1 = \{1, 2k-1\}, the two even cards form C2={2,2k2}C_2 = \{2, 2k-2\}.

Suppose that the complementary pairs C1,,C2jC_1, \ldots, C_{2j} are determined for some jj such that 2jk12j \le k-1. We show how to find C2j+1C_{2j+1} and C2j+2C_{2j+2}. One may assume 2jk32j \le k-3. Indeed if 2j=k12j = k-1 (with kk odd) then all complementary pairs are already found. If 2j=k22j = k-2 (with kk even) then there is only 11 complementary pair left, Ck1C_{k-1}. But once Ck1,,Ck2C_{k-1}, \ldots, C_{k-2} are known, so is Ck1C_{k-1}.

Exclude the 4j4j numbers C1,,C2jC_1, \ldots, C_{2j}. There remain 2k4j12k-4j-1 numbers with sum S4jkS-4jk. Again take a pair of cards with different parity and unknown odd sum yy; note that 4j+3y4k4j34j+3 \le y \le 4k-4j-3. Like before ask about the average of the remaining 2k4j32k-4j-3 cards. It is an integer if and only if 2k4j32k-4j-3 divides (S4jk)y=k(2k1)4jky=k(2k4j3)+(2ky)(S-4jk)-y = k(2k-1)-4jk-y = k(2k-4j-3)+(2k-y), i.e., if and only if 2k4j32k-4j-3 divides 2ky2k-y. Now 4j+3y4k4j34j+3 \le y \le 4k-4j-3 gives 2ky2k4j3|2k-y| \le 2k-4j-3. So the answer is yes if and only if 2ky{0,±(2k4j3)}2k-y \in \{0, \pm(2k-4j-3)\}. Because 2ky2k-y is odd, we obtain 2ky=±(2k4j3)2k-y = \pm(2k-4j-3), yielding y=4j+3y=4j+3 or y=4k4j3y=4k-4j-3. These are the extremal values of yy, achieved only if the numbers in the pair are 2j+1,2j+22j+1, 2j+2 or 2k2j2,2k2j12k-2j-2, 2k-2j-1 respectively.

Hence the procedure applied to all pairs of the kind considered, yields a group containing the 44 cards 2j+1,2j+2,2k2j2,2k2j12j+1, 2j+2, 2k-2j-2, 2k-2j-1. The two odd cards in the group form the complementary pair C2j+1={2j+1,2k2j1}C_{2j+1} = \{2j+1, 2k-2j-1\}, the two even ones form C2j+2={2j+2,2k2j2}C_{2j+2} = \{2j+2, 2k-2j-2\}.

We presented an inductive argument which divides all cards different from kk into complementary pairs. This completes the solution.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.