Maths Olympiad Prep

Library / /716 of 740

, 2022

Combinatorics Difficulty 5.8 AIME, harder Prove it United States

Problem:

There are 21 competitors with distinct skill levels numbered 1,2,,211,2, \ldots, 21. They participate in a pingpong tournament as follows. First, a random competitor is chosen to be "active", while the rest are "inactive." Every round, a random inactive competitor is chosen to play against the current active one. The player with the higher skill will win and become (or remain) active, while the loser will be eliminated from the tournament. The tournament lasts for 20 rounds, after which there will only be one player remaining. Alice is the competitor with skill 11. What is the expected number of games that she will get to play?

Solutions — 2

Solution 1

Solution:

Insert a player with skill level 0, who will be the first active player (and lose their first game).
If Alice plays after any of the players with skill level 12,13,,2112,13, \ldots, 21, which happens with probability 1011\frac{10}{11}, then she will play exactly 1 game.
If Alice is the first of the players with skill level 11,12,,2111,12, \ldots, 21, which happens with probability 111\frac{1}{11}, then there are an expected 1012\frac{10}{12} players between her and someone better than her. Thus, she plays an expected 2+1012=1762+\frac{10}{12}=\frac{17}{6} games.
Alice will only play the player with skill 0 if she is the first of all other players, which happens with probability 121\frac{1}{21}.
The final answer is
10111+111176121=4742 \frac{10}{11} \cdot 1+\frac{1}{11} \cdot \frac{17}{6}-\frac{1}{21}=\frac{47}{42}

Solution 2

Solution:

Replace 21 by nn and 11 by kk. The general formula is n+1(nk+1)(nk+2)+11n[k=n]\frac{n+1}{(n-k+1)(n-k+2)}+1-\frac{1}{n}-[k=n]. The problem is roughly equivalent to picking a random permutation of 1,,n1, \ldots, n and asking the expected number of prefix maximums that are equal to kk. For the first mm elements, the probability is equal to
P(max of first m=k)=P(max of first mk)P(max of first mk1)=(km)m!(nm)!n!(k1m)m!(nm)!n!=(km)(nm)(k1m)(nm)=(k1m1)(nm) \begin{aligned} P(\max \text{ of first } m=k) & =P(\max \text{ of first } m \leq k)-P(\max \text{ of first } m \leq k-1) \\ & =\frac{\binom{k}{m} \cdot m!\cdot(n-m)!}{n!}-\frac{\binom{k-1}{m} \cdot m!\cdot(n-m)!}{n!} \\ & =\frac{\binom{k}{m}}{\binom{n}{m}}-\frac{\binom{k-1}{m}}{\binom{n}{m}} \\ & =\frac{\binom{k-1}{m-1}}{\binom{n}{m}} \end{aligned}
E[ prefix max=k]=m=1k(k1m1)(nm)=m=1k(k1)!m!(nm)!(km)!(m1)!n!=(k1)!n!m=1km(nm)!(km)!=(k1)!(nk)!n!m=1km(nmnk) \begin{aligned} E[\text{ prefix } \max =k] & =\sum_{m=1}^{k} \frac{\binom{k-1}{m-1}}{\binom{n}{m}} \\ & =\sum_{m=1}^{k} \frac{(k-1)!m!(n-m)!}{(k-m)!(m-1)!n!} \\ & =\frac{(k-1)!}{n!} \sum_{m=1}^{k} \frac{m(n-m)!}{(k-m)!} \\ & =\frac{(k-1)!(n-k)!}{n!} \sum_{m=1}^{k} m\binom{n-m}{n-k} \end{aligned}
Now a combinatorial interpretation of the sum is having nn balls in a row, choosing a divider between them, and choosing 1 ball on the left side of the divider and nkn-k balls on the right side of the divider ( mm corresponds to the number of balls left of the divider). This is equal to choosing nk+2n-k+2 objects among n+1n+1 objects and letting the second smallest one correspond to the divider, which is (n+1nk+2)\binom{n+1}{n-k+2}. Therefore the answer is
(k1)!(nk)!n!(n+1)!(nk+2)!(k1)!=n+1(nk+1)(nk+2) \frac{(k-1)!(n-k)!}{n!} \cdot \frac{(n+1)!}{(n-k+2)!(k-1)!}=\frac{n+1}{(n-k+1)(n-k+2)}

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.