AMC 10 Step by Step

2021 AMC 10B Problem 22

P21-25~8 minPrint

Ang, Ben, and Jasmin each have 55 blocks, colored red, blue, yellow, white, and green; and there are 55 empty boxes. Each of the people randomly and independently of the other two people places one of their blocks into each box. The probability that at least one box receives 33 blocks all of the same color is mn\frac{m}{n} , where mm and nn are relatively prime positive integers. What is m+n ?m + n ?

Log in to save your progress.
Show solution without answering

Key insight

Ang's order can be taken as fixed. A box is all one color when Ben and Jasmin both match Ang there. Count with add, subtract, add: 2556 of 14400.

Solution

Step 1: fix Ang's arrangement.

  1. Each person puts their 55 colors into the 55 boxes in some order. There are 5×4×3×2×1=1205 \times 4 \times 3 \times 2 \times 1 = 120 orders.
  2. Whatever Ang does, we can name the boxes by the color Ang put in them: the "red box," the "blue box," and so on. So think of Ang as always putting red in the red box, blue in the blue box, etc.
  3. A box gets three blocks of one color exactly when Ben and Jasmin both put that box's color in it. Call such a box a match.
  4. Ben and Jasmin together have 120×120=14400120 \times 120 = 14400 equally likely pairs of orders. We count the pairs with at least one match.

Step 2: count pairs where chosen boxes match.

  1. Pick one box, say the red box. Ben must put red there, and his other 44 colors can go anywhere: 4!=244! = 24 ways. The same for Jasmin, so 24×24=57624 \times 24 = 576 pairs make the red box a match.
  2. In the same way, if we pick kk particular boxes that must all match, each person has (5−k)!(5 - k)! ways to place the rest, so there are ((5−k)!)2\big((5-k)!\big)^2 pairs.
boxes that must match, kkways to pick thempairs for each pick
1155242=57624^2 = 576
22101062=366^2 = 36
33101022=42^2 = 4
445512=11^2 = 1
551112=11^2 = 1

Step 3: add and subtract to fix double counting.

7. Adding 5×5765 \times 576 counts a pair with two matches twice, a pair with three matches three times, and so on. The standard fix (inclusion–exclusion) is to subtract the "two boxes" count, add back the "three boxes" count, and keep alternating:
5⋅576−10⋅36+10⋅4−5⋅1+1⋅1=2880−360+40−5+1=2556.5 \cdot 576 - 10 \cdot 36 + 10 \cdot 4 - 5 \cdot 1 + 1 \cdot 1 = 2880 - 360 + 40 - 5 + 1 = 2556.
8. After this, every pair with at least one match is counted exactly once.

Step 4: simplify.

  1. The probability is 255614400\frac{2556}{14400}. Both numbers divide by 3636: 71400\frac{71}{400}. Since 7171 is prime and does not divide 400400, this is in lowest terms.
  2. So m+n=71+400=471m + n = 71 + 400 = 471.

The answer is (D) 471\boxed{\textbf{(D)}\ 471}.

Why this works

Because everyone arranges at random, one person's arrangement can be treated as fixed without changing any chances. The events "this box matches" overlap, so simply adding their counts overcounts. Adding, then subtracting the overlaps, then adding back the triple overlaps, and so on, corrects this. A quick check: adding five chances of 125\frac{1}{25} gives 0.20.2, an overcount, and the true answer 71400=0.1775\frac{71}{400} = 0.1775 is a little smaller.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

Each person's placement is a permutation of the five colors. Relabel the colors by Ang's placement, so Ang puts color ii in box ii. Ben's and Jasmin's placements are then independent uniformly random permutations σ\sigma and τ\tau, and box ii is monochromatic exactly when σ(i)=i\sigma(i) = i and τ(i)=i\tau(i) = i: box ii is a common fixed point.

Count ordered pairs (σ,τ)(\sigma, \tau) out of 1202=14400120^2 = 14400 that share at least one fixed point. For a chosen set of kk boxes, the number of pairs in which both permutations fix all kk of them is ((5−k)!)2\big((5-k)!\big)^2. Inclusion–exclusion over k=1,…,5k = 1, \dots, 5:
(51)(4!)2−(52)(3!)2+(53)(2!)2−(54)(1!)2+(55)(0!)2\binom51 (4!)^2 - \binom52 (3!)^2 + \binom53 (2!)^2 - \binom54 (1!)^2 + \binom55 (0!)^2
=5⋅576−10⋅36+10⋅4−5⋅1+1=2880−360+40−5+1=2556.= 5 \cdot 576 - 10 \cdot 36 + 10 \cdot 4 - 5 \cdot 1 + 1 = 2880 - 360 + 40 - 5 + 1 = 2556.

The probability is 255614400\frac{2556}{14400}. Dividing by 3636: 71400\frac{71}{400}, and 7171 is prime, so this is lowest terms.

m+n=71+400=471m + n = 71 + 400 = 471. The answer is (D) 471\boxed{\textbf{(D)}\ 471}.

Review in the AoPS books

Similar problems

Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.