Maths Olympiad Prep

Library / /23 of 28

, 2024

Combinatorics Difficulty 5.7 AIME, harder Prove it United States

Problem:
The numbers 1,2,,201, 2, \ldots, 20 are put into a hat. Claire draws two numbers from the hat uniformly at random, a<ba < b, and then puts them back into the hat. Then, William draws two numbers from the hat uniformly at random, c<dc < d.
Let NN denote the number of integers nn that satisfy exactly one of anba \leq n \leq b and cndc \leq n \leq d. Compute the probability NN is even.

Solution

Solution:
The number of integers that satisfy exactly one of the two inequalities is equal to the number of integers that satisfy the first one, plus the number of integers that satisfy the second one, minus twice the number of integers that satisfy both. Parity-wise, this is just the number of integers that satisfy the first one, plus the number of integers that satisfy the second one.
The number of integers that satisfy the first one is ba+1b - a + 1. The probability this is even is 1019\frac{10}{19}, and odd is 919\frac{9}{19}. This means the answer is
102+92192=181361 \frac{10^2 + 9^2}{19^2} = \frac{181}{361}

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.