Olympiad Maths Prep

Track / Stage 4 / 16 of 340 #276 of 2000

Problem 276

AMC 12 late, AIME early
Combinatorics Difficulty 4.5 Find the answer Harvard-MIT Mathematics Tournament · United States

Problem:
A candy company makes 5 colors of jellybeans, which come in equal proportions. If I grab a random sample of 5 jellybeans, what is the probability that I get exactly 2 distinct colors?

Official solution

Solution:
There are (52)=10\binom{5}{2} = 10 possible pairs of colors. Each pair of colors contributes 252=302^{5} - 2 = 30 sequences of beans that use both colors. Thus, the answer is 1030/55=12/12510 \cdot 30 / 5^{5} = 12 / 125.

Answer: 12125\dfrac{12}{125}.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.