Maths Olympiad Prep

Library / /17 of 23

Combinatorics Difficulty 8.8 Shortlist Prove it United States

Twenty-one girls and twenty-one boys took part in a mathematical competition. It turned out that

a. each contestant solved at most six problems, and

b. for each pair of a girl and a boy, there was at least one problem that was solved by both the girl and the boy.

Prove that there is a problem that was solved by at least three girls and at least three boys.

Solution

First Solution. (By Zhiqiang Zhang, China) We proceed indirectly. Assume that no problem is both girl-easy and boy-easy.

Lemma 1. Let A={p1,p2,,pk}A = \{p_1, p_2, \dots, p_k\} denote the set of all girl-hard problems. Let B={pk+1,pk+2,,pk+m}B = \{p_{k+1}, p_{k+2}, \dots, p_{k+m}\} denote the set of all boy-hard problems that are not in AA. Then k11k \ge 11, m11m \ge 11, and consequently,
k+m22.(1) k + m \geq 22. \tag{1}
Proof. By our assumption, each problem is either girl-hard, boy-hard, or both. Thus, if PP is the set of all the problems, then AB=PA \cup B = P. A boy contestant bb can solve at most 6 problems in set AA, so there are at most 26=122 \cdot 6 = 12 girls who each solved a problem in AA that bb solved. By condition (b), there are at least 211221 - 12 girls who each solved a problem in BB that bb solved. It follows that each boy must solve some problems in set BB. But each problem in set BB can be solved by at most 2 boys, implying that 212m21 \le 2m and hence m11m \ge 11. In exactly the same way, we can prove that k11k \ge 11. ■

For 1ik+m1 \le i \le k+m, let xix_i be the number of contestants who solved problem pip_i. In the light of condition (a), we have
x1+x2++xk+m6×42.(2) x_1 + x_2 + \dots + x_{k+m} \le 6 \times 42. \tag{2}
For each piP=ABp_i \in P = A \cup B, let qiq_i be the number of girl and boy pairs (g,b)(g, b) such that girl gg and boy bb both solved pip_i. By condition (b), i=1k+mqi212\sum_{i=1}^{k+m} q_i \ge 21^2. For each i=1,2,,k+mi = 1, 2, \dots, k+m, note that xi2x_i \ge 2 because each problem was solved by at least one girl and one boy. Therefore,
qimax{(xi1)×1,(xi2)×2}2xi3. q_i \le \max\{(x_i - 1) \times 1, (x_i - 2) \times 2\} \le 2x_i - 3.
Hence, by (2) we obtain
212i=1k+mqi(2x13)+(2x23)++(2xk+m3)=2(x1+x2++xk+m)3(k+m)2×6×423(k+m), \begin{align*} 21^2 &\le \sum_{i=1}^{k+m} q_i \le (2x_1 - 3) + (2x_2 - 3) + \dots + (2x_{k+m} - 3) \\ &= 2(x_1 + x_2 + \dots + x_{k+m}) - 3(k+m) \\ &\le 2 \times 6 \times 42 - 3(k+m), \end{align*}
or
k+m21,k+m \le 21,
contradicting (1).

Thus, our assumption was wrong and there is a problem solved by at least three girls and three boys.

Second Solution. (By Gabriel Carroll and Liang Xiao, China) Let pp be the number of problems. For the sake of contradiction, we assume that no problem is both girl-easy and boy-easy. As in the first solution, we prove that this assumption implies both that p22p \ge 22 and that p21p \le 21, which is impossible.

Lemma 2. There are at least 11 girl-easy problems and 11 boy-easy problems.

Proof. Suppose some girl solves no boy-easy problems. Then every problem she solves was solved by at most two boys. Since she solves at most six problems, at most 12 boys solve a problem that she solves, contradicting condition (b). Thus, every girl solved a boy-easy problem. Since each boy-easy problem was solved by at most two girls, there must be at least 212=11\lceil \frac{21}{2} \rceil = 11 boy-easy problems. Likewise, there are at least 11 girl-easy problems. ■

By our assumption, there is no problem that is both boy-easy and girl easy. Thus, there are at least 22 problems, that is,
p22.(3) p \ge 22. \tag{3}
Assume that the iith problem was solved by gig_i girls and bib_i boys. For each ii, either gi{1,2}g_i \in \{1,2\}, or gi>2g_i > 2 and bi2b_i \le 2. Consider the quantity
Q=(gi2)(bi2). Q = (g_i - 2)(b_i - 2).
If gi=2g_i = 2, then Q=0Q = 0; if gi=1g_i = 1, then Q=2bi1Q = 2 - b_i \le 1 since bi1b_i \ge 1 by assumption; finally, if gi>2g_i > 2 and bi2b_i \le 2, then Q0Q \le 0. In any case, we have Q=(gi2)(bi2)1Q = (g_i - 2)(b_i - 2) \le 1, that is,
gibi2gi+2bi3.(4) g_i b_i \le 2g_i + 2b_i - 3. \quad (4)
Now gibig_i b_i counts the number of pairs (g,b)(g, b) in which girl gg and boy bb both solved problem ii. It is given that every possible pair (g,b)(g, b) is counted for some ii, so
i=1pgibi212.(5) \sum_{i=1}^{p} g_i b_i \ge 21^2. \quad (5)
On the other hand, everyone solved at most six problems, so i=1pgi216\sum_{i=1}^{p} g_i \le 21 \cdot 6, and likewise i=1pbi216\sum_{i=1}^{p} b_i \le 21 \cdot 6. Thus, by (4) and (5), we obtain
212i=1pgibii=1p(2gi+2bi3)=2(i=1pgi+i=1pbi)3p2(216+216)3p=21243p. \begin{aligned} 21^2 &\le \sum_{i=1}^{p} g_i b_i \le \sum_{i=1}^{p} (2g_i + 2b_i - 3) \\ &= 2 \left( \sum_{i=1}^{p} g_i + \sum_{i=1}^{p} b_i \right) - 3p \\ &\le 2(21 \cdot 6 + 21 \cdot 6) - 3p = 21 \cdot 24 - 3p. \end{aligned}
It follows that 3p2124212=2133p \le 21 \cdot 24 - 21^2 = 21 \cdot 3, or
p21,(6) p \le 21, \quad (6)
contradicting (3).

Thus, our initial assumption was wrong, and there is a problem that was solved by three boys and three girls.

Third Solution. (Based on work by Ian Le) We provide an alternative proof of (6).

For each i=1,2,,pi = 1, 2, \dots, p, let ϵi=min{gi,bi}\epsilon_i = \min\{g_i, b_i\}, and let Mi=max{gi,bi}M_i = \max\{g_i, b_i\}. Note that ϵi\epsilon_i is either 1 or 2. Assume without loss of generality that ϵ1=ϵ2==ϵr=2\epsilon_1 = \epsilon_2 = \dots = \epsilon_r = 2 and that ϵr+1=ϵr+2==ϵp=1\epsilon_{r+1} = \epsilon_{r+2} = \dots = \epsilon_p = 1. Then, by (5),
441i=1pgibi=i=1pϵiMi=2i=1rMi+i=r+1pMi=2i=1pMii=r+1pMi. \begin{aligned} 441 &\le \sum_{i=1}^{p} g_i b_i = \sum_{i=1}^{p} \epsilon_i M_i = 2 \sum_{i=1}^{r} M_i + \sum_{i=r+1}^{p} M_i \\ &= 2 \sum_{i=1}^{p} M_i - \sum_{i=r+1}^{p} M_i. \end{aligned}
Note that Mi1M_i \ge 1. It follows that
4412i=1pMip+r.(7) 441 \le 2 \sum_{i=1}^{p} M_i - p + r. \qquad (7)
On the other hand, since each girl or boy solved at most 6 problems, we must have i=1p(gi+bi)2621=252\sum_{i=1}^{p}(g_i + b_i) \le 2 \cdot 6 \cdot 21 = 252, or
252i=1p(gi+bi)=i=1p(ϵi+Mi)=p+r+i=1pMi. 252 \ge \sum_{i=1}^{p} (g_i + b_i) = \sum_{i=1}^{p} (\epsilon_i + M_i) = p + r + \sum_{i=1}^{p} M_i.
Multiplying by 2 on both sides of this inequality and rearranging gives
2i=1pMip+r22523pr=5043pr.(8) 2 \sum_{i=1}^{p} M_i - p + r \le 2 \cdot 252 - 3p - r = 504 - 3p - r. \quad (8)
Combining (7) and (8), we obtain 4415043pr441 \le 504 - 3p - r, or
p(504441)/3=21, p \le (504 - 441)/3 = 21,
as desired.

Fourth Solution. We introduce the following symbols: GG is the set of girls at the competition, BB is the set of boys, PP is the set of problems, P(g)P(g) is the set of problems solved by gGg \in G, and P(b)P(b) is the set of problems solved by bBb \in B. Finally, G(p)G(p) is the set of girls that solve pPp \in P and B(p)B(p) is the set of boys that solve pp. In terms of this notation, we have that for all gGg \in G and bBb \in B,
(a) P(g)6|P(g)| \le 6, P(b)6|P(b)| \le 6, and (b) P(g)P(b)P(g) \cap P(b) \ne \emptyset

Hence, a problem is boy-easy (resp., boy-hard) if and only if B(p)3|B(p)| \ge 3 (B(p)2|B(p)| \le 2); a problem is girl-easy (resp., girl-hard) if and only if G(p)3|G(p)| \ge 3 (resp., G(p)2|G(p)| \le 2). We wish to prove that some pPp \in P satisfies G(p)3|G(p)| \ge 3 and B(p)3|B(p)| \ge 3. For sake of contradiction, assume instead that every problem is either boy-hard or girl-hard or both, that is, for each pPp \in P, either G(p)2|G(p)| \le 2 or B(p)2|B(p)| \le 2 or both. We shall reach a contradiction by counting, in two different ways, all ordered triples (p,g,b)(p, g, b) such that pP(g)P(b)p \in P(g) \cap P(b). With
T={(p,g,b)pP(g)P(b)}, T = \{ (p, g, b) \mid p \in P(g) \cap P(b) \},
condition (b) yields
T=gGbBP(g)P(b)GB=212.(9) |T| = \sum_{g \in G} \sum_{b \in B} |P(g) \cap P(b)| \ge |G| \cdot |B| = 21^2. \qquad (9)
We continue by noting that
pPG(p)=gGP(g)6GandpPB(p)6B.(10) \sum_{p \in P} |G(p)| = \sum_{g \in G} |P(g)| \leq 6|G| \quad \text{and} \quad \sum_{p \in P} |B(p)| \leq 6|B|. \quad (10)
The equality in (10) is obtained by counting the total number of problems, including multiplicity, solved by all the girls. (That is, if a problem solved by n girls, then it is counted n times.)

Let PgeP_{ge} and PghP_{gh} denote the sets of all girl-easy and girl-hard problems, respectively. By our assumption, if pPgep \in P_{ge}, then it must be boy-hard, i.e. B(p)2|B(p)| \leq 2. Hence,
T=pPG(p)B(p)=pPgeG(p)B(p)+pPghG(p)B(p), \begin{aligned} |T| &= \sum_{p \in P} |G(p)| \cdot |B(p)| \\ &= \sum_{p \in P_{ge}} |G(p)| \cdot |B(p)| + \sum_{p \in P_{gh}} |G(p)| \cdot |B(p)|, \end{aligned}
or
T2pPgeG(p)+2pPghB(p).(11) |T| \leq 2 \sum_{p \in P_{ge}} |G(p)| + 2 \sum_{p \in P_{gh}} |B(p)|. \quad (11)
Lemma 3. We have
pPghG(p)G;pPgeG(p)5G. \sum_{p \in P_{gh}} |G(p)| \geq |G|; \quad \sum_{p \in P_{ge}} |G(p)| \leq 5|G|.
and
pPgeB(p)B;pPghB(p)5B. \sum_{p \in P_{ge}} |B(p)| \geq |B|; \quad \sum_{p \in P_{gh}} |B(p)| \leq 5|B|.
Proof. Let gGg \in G be arbitrary. By the Pigeonhole Principle, conditions (a) and (b) imply that gg solves some problem pp that is solved by at least 21/6\lceil 21/6\rceil = 4 boys. By assumption, pp is boy-easy, implying that pp is girl-hard. Thus, every girl solves at least one problem in PghP_{gh}. Hence,
pPghG(p)G.(12) \sum_{p \in P_{gh}} |G(p)| \geq |G|. \quad (12)
In view of (10) and (12) we have
pPgeG(p)=pPG(p)pPghG(p)5G. \sum_{p \in P_{ge}} |G(p)| = \sum_{p \in P} |G(p)| - \sum_{p \in P_{gh}} |G(p)| \leq 5|G|.
Also, each boy solves a problem that is solved by at least four girls, so each boy solves a girl-easy problem. Thus,
pPgeB(p)B. \sum_{p \in P_{ge}} |B(p)| \geq |B|.
It follows from this inequality and (10) that
pPghB(p)5B \sum_{p \in P_{gh}} |B(p)| \leq 5|B|
as well.

Using Lemma 3 and equality (11), we find
T10G+10B=20×21. T \leq 10|G| + 10|B| = 20 \times 21.
This contradicts (9), so the proof is complete.

Fifth Solution. Keep the notation of the fifth solution, and again assume that no problem is both girl-easy and boy-easy. For each pPp \in P, color pp red if it is boy-easy, color pp blue if it is girl-easy, and color pp either color if it is both boy- and girl-hard.

Consider a chessboard with 21 rows, each representing one of the girls, and 21 columns, each representing one of the boys. For each gGg \in G and bBb \in B, by condition (b) there exists a problem pp in P(g)P(b)P(g) \cap P(b); and assign pp's color to the square corresponding to (g,b)(g, b). By the **Pigeonhole Principle**, one of the two colors is assigned to at least 441/2\lceil 441/2\rceil = 221 squares, and thus some row has at least 221/21\lceil 221/21\rceil = 11 blue squares or some column has at least 11 red squares.

First suppose that there is a row, corresponding to gGg \in G, which has at least 11 blue squares. Then for each of the 11 squares, the blue problem that was chosen in assigning the color was solved by at most 2 boys. Thus, we account for at least 11/2\lceil 11/2\rceil = 6 distinct problems solved by gg. In view of condition (a), gg solves only these problems. But then at most 12 boys solve a problem also solved by gg, in violation of condition (b). A similar proof shows that it is impossible for any column to contain 11 red squares.

Hence, our original assumption was wrong and there are some pPp \in P satisfying G(p)3|G(p)| \geq 3 and B(p)3|B(p)| \geq 3.

Sixth Solution. (By Reid Barton) Assign each problem a unique letter, and also number the boys 1, 2, ..., 21 and number the girls 1, 2, ..., 21. Construct a 21 × 21 matrix of letters as follows: in the iith row and jjth column, write the letter of any problem that both the iith girl and the jjth boy solved — at least one such problem exists by condition (b). If we consider the iith row, each letter in that row corresponds to a problem that the iith girl solved. Since each girl solved at most six problems, each row contains at most 6 distinct letters. Similarly, each column contains at most 6 distinct letters.

Lemma 4. In each row (resp., column), consider the letters which appear at least three times. At least 11 squares in the row (resp., column) contain one of these letters.

Proof. There are at most 6 different letters, and they cannot all appear at most twice, since there are 21>1221 > 12 letters total. So at most 5 different letters appear at most twice, giving a total of at most 10 squares containing letters appearing at most twice. Then at least 11 other squares each contain a letter that appears at least three times. ■

In the matrix, color all the squares which contain letters appearing at least three times in the same row (resp., column) in red (resp., blue). By Lemma 4, each row contains at least 11 red squares, so the total number of red squares is at least 21×1121 \times 11. Similarly, each column contains at least 11 blue squares, so the total number of blue squares is at least 21×1121 \times 11. Since there are only 21×21<21×11+21×1121 \times 21 < 21 \times 11 + 21 \times 11 total squares, some square is colored both red and blue. Because the letter in this square appears in three different columns and three different rows, at least three boys and three girls solved the corresponding problem. Thus, we find the problem satisfying the desired property.

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.