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} denote the set of all girl-hard problems. Let B={pk+1,pk+2,…,pk+m} denote the set of all boy-hard problems that are not in A. Then k≥11, m≥11, and consequently,
k+m≥22.(1)
Proof. By our assumption, each problem is either girl-hard, boy-hard, or both. Thus, if P is the set of all the problems, then A∪B=P. A boy contestant b can solve at most 6 problems in set A, so there are at most 2⋅6=12 girls who each solved a problem in A that b solved. By condition (b), there are at least 21−12 girls who each solved a problem in B that b solved. It follows that each boy must solve some problems in set B. But each problem in set B can be solved by at most 2 boys, implying that 21≤2m and hence m≥11. In exactly the same way, we can prove that k≥11. ■
For 1≤i≤k+m, let xi be the number of contestants who solved problem pi. In the light of condition (a), we have
x1+x2+⋯+xk+m≤6×42.(2)
For each pi∈P=A∪B, let qi be the number of girl and boy pairs (g,b) such that girl g and boy b both solved pi. By condition (b), ∑i=1k+mqi≥212. For each i=1,2,…,k+m, note that xi≥2 because each problem was solved by at least one girl and one boy. Therefore,
qi≤max{(xi−1)×1,(xi−2)×2}≤2xi−3.
Hence, by (2) we obtain
212≤i=1∑k+mqi≤(2x1−3)+(2x2−3)+⋯+(2xk+m−3)=2(x1+x2+⋯+xk+m)−3(k+m)≤2×6×42−3(k+m),
or
k+m≤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 p 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 p≥22 and that p≤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 ⌈221⌉=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,
p≥22.(3)
Assume that the ith problem was solved by gi girls and bi boys. For each i, either gi∈{1,2}, or gi>2 and bi≤2. Consider the quantity
Q=(gi−2)(bi−2).
If gi=2, then Q=0; if gi=1, then Q=2−bi≤1 since bi≥1 by assumption; finally, if gi>2 and bi≤2, then Q≤0. In any case, we have Q=(gi−2)(bi−2)≤1, that is,
gibi≤2gi+2bi−3.(4)
Now gibi counts the number of pairs (g,b) in which girl g and boy b both solved problem i. It is given that every possible pair (g,b) is counted for some i, so
i=1∑pgibi≥212.(5)
On the other hand, everyone solved at most six problems, so ∑i=1pgi≤21⋅6, and likewise ∑i=1pbi≤21⋅6. Thus, by (4) and (5), we obtain
212≤i=1∑pgibi≤i=1∑p(2gi+2bi−3)=2(i=1∑pgi+i=1∑pbi)−3p≤2(21⋅6+21⋅6)−3p=21⋅24−3p.
It follows that 3p≤21⋅24−212=21⋅3, or
p≤21,(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,…,p, let ϵi=min{gi,bi}, and let Mi=max{gi,bi}. Note that ϵi is either 1 or 2. Assume without loss of generality that ϵ1=ϵ2=⋯=ϵr=2 and that ϵr+1=ϵr+2=⋯=ϵp=1. Then, by (5),
441≤i=1∑pgibi=i=1∑pϵiMi=2i=1∑rMi+i=r+1∑pMi=2i=1∑pMi−i=r+1∑pMi.
Note that Mi≥1. It follows that
441≤2i=1∑pMi−p+r.(7)
On the other hand, since each girl or boy solved at most 6 problems, we must have ∑i=1p(gi+bi)≤2⋅6⋅21=252, or
252≥i=1∑p(gi+bi)=i=1∑p(ϵi+Mi)=p+r+i=1∑pMi.
Multiplying by 2 on both sides of this inequality and rearranging gives
2i=1∑pMi−p+r≤2⋅252−3p−r=504−3p−r.(8)
Combining (7) and (8), we obtain 441≤504−3p−r, or
p≤(504−441)/3=21,
as desired.
Fourth Solution. We introduce the following symbols: G is the set of girls at the competition, B is the set of boys, P is the set of problems, P(g) is the set of problems solved by g∈G, and P(b) is the set of problems solved by b∈B. Finally, G(p) is the set of girls that solve p∈P and B(p) is the set of boys that solve p. In terms of this notation, we have that for all g∈G and b∈B,
(a) ∣P(g)∣≤6, ∣P(b)∣≤6, and (b) P(g)∩P(b)=∅
Hence, a problem is boy-easy (resp., boy-hard) if and only if ∣B(p)∣≥3 (∣B(p)∣≤2); a problem is girl-easy (resp., girl-hard) if and only if ∣G(p)∣≥3 (resp., ∣G(p)∣≤2). We wish to prove that some p∈P satisfies ∣G(p)∣≥3 and ∣B(p)∣≥3. For sake of contradiction, assume instead that every problem is either boy-hard or girl-hard or both, that is, for each p∈P, either ∣G(p)∣≤2 or ∣B(p)∣≤2 or both. We shall reach a contradiction by counting, in two different ways, all ordered triples (p,g,b) such that p∈P(g)∩P(b). With
T={(p,g,b)∣p∈P(g)∩P(b)},
condition (b) yields
∣T∣=g∈G∑b∈B∑∣P(g)∩P(b)∣≥∣G∣⋅∣B∣=212.(9)
We continue by noting that
p∈P∑∣G(p)∣=g∈G∑∣P(g)∣≤6∣G∣andp∈P∑∣B(p)∣≤6∣B∣.(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 Pge and Pgh denote the sets of all girl-easy and girl-hard problems, respectively. By our assumption, if p∈Pge, then it must be boy-hard, i.e. ∣B(p)∣≤2. Hence,
∣T∣=p∈P∑∣G(p)∣⋅∣B(p)∣=p∈Pge∑∣G(p)∣⋅∣B(p)∣+p∈Pgh∑∣G(p)∣⋅∣B(p)∣,
or
∣T∣≤2p∈Pge∑∣G(p)∣+2p∈Pgh∑∣B(p)∣.(11)
Lemma 3. We have
p∈Pgh∑∣G(p)∣≥∣G∣;p∈Pge∑∣G(p)∣≤5∣G∣.
and
p∈Pge∑∣B(p)∣≥∣B∣;p∈Pgh∑∣B(p)∣≤5∣B∣.
Proof. Let g∈G be arbitrary. By the Pigeonhole Principle, conditions (a) and (b) imply that g solves some problem p that is solved by at least ⌈21/6⌉ = 4 boys. By assumption, p is boy-easy, implying that p is girl-hard. Thus, every girl solves at least one problem in Pgh. Hence,
p∈Pgh∑∣G(p)∣≥∣G∣.(12)
In view of (10) and (12) we have
p∈Pge∑∣G(p)∣=p∈P∑∣G(p)∣−p∈Pgh∑∣G(p)∣≤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,
p∈Pge∑∣B(p)∣≥∣B∣.
It follows from this inequality and (10) that
p∈Pgh∑∣B(p)∣≤5∣B∣
as well.
Using Lemma 3 and equality (11), we find
T≤10∣G∣+10∣B∣=20×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 p∈P, color p red if it is boy-easy, color p blue if it is girl-easy, and color p 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 g∈G and b∈B, by condition (b) there exists a problem p in P(g)∩P(b); and assign p's color to the square corresponding to (g,b). By the **Pigeonhole Principle**, one of the two colors is assigned to at least ⌈441/2⌉ = 221 squares, and thus some row has at least ⌈221/21⌉ = 11 blue squares or some column has at least 11 red squares.
First suppose that there is a row, corresponding to g∈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⌉ = 6 distinct problems solved by g. In view of condition (a), g solves only these problems. But then at most 12 boys solve a problem also solved by g, 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 p∈P satisfying ∣G(p)∣≥3 and ∣B(p)∣≥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 ith row and jth column, write the letter of any problem that both the ith girl and the jth boy solved — at least one such problem exists by condition (b). If we consider the ith row, each letter in that row corresponds to a problem that the ith 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>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×11. Similarly, each column contains at least 11 blue squares, so the total number of blue squares is at least 21×11. Since there are only 21×21<21×11+21×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.