Skip to main content

2026 AIME II Problem 5

Problem 5 of 15EasierNumber TheoryCombinatoricsProbability & Statistics

An urn contains nn marbles. Each marble is either red or blue, and there are at least 77 marbles of each color. When 77 marbles are drawn randomly from the urn without replacement, the probability that exactly 44 of them are red equals the probability that exactly 55 of them are red. Find the sum of the five least values of nn for which this is possible.

Your answer

Integer from 0 to 999
Show solution

Solution

Say there are rr red and bb blue marbles, r,b≥7.r, b \ge 7. The condition is (r4)(b3)=(r5)(b2).\binom{r}{4}\binom{b}{3} = \binom{r}{5}\binom{b}{2}. Since (r5)=(r4)r−45\binom{r}{5} = \binom{r}{4}\frac{r-4}{5} and (b3)=(b2)b−23,\binom{b}{3} = \binom{b}{2}\frac{b-2}{3}, cancelling gives b−23=r−45,\frac{b - 2}{3} = \frac{r - 4}{5}, that is, b=3r−25.b = \frac{3r - 2}{5}. So r≡4(mod5),r \equiv 4 \pmod 5, and b≥7b \ge 7 requires 3r−2≥35,3r - 2 \ge 35, so r≥14.r \ge 14. The five smallest choices are r=14,19,24,29,34r = 14, 19, 24, 29, 34 with b=8,11,14,17,20,b = 8, 11, 14, 17, 20, giving n=22,30,38,46,54.n = 22, 30, 38, 46, 54. The sum is 22+30+38+46+54=190.22 + 30 + 38 + 46 + 54 = 190.
AoPS wiki

Tagged: sampling without replacement · combinations · Diophantine Equation

More practice