Ang, Ben, and Jasmin each have blocks, colored red, blue, yellow, white, and green; and there are 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 blocks all of the same color is , where and are relatively prime positive integers. What is
- A)
- B)
- C)
- D)
- E)
Answer
D
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.
- Each person puts their colors into the boxes in some order. There are orders.
- 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.
- 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.
- Ben and Jasmin together have equally likely pairs of orders. We count the pairs with at least one match.
Step 2: count pairs where chosen boxes match.
- Pick one box, say the red box. Ben must put red there, and his other colors can go anywhere: ways. The same for Jasmin, so pairs make the red box a match.
- In the same way, if we pick particular boxes that must all match, each person has ways to place the rest, so there are pairs.
| boxes that must match, | ways to pick them | pairs for each pick |
|---|---|---|
Step 3: add and subtract to fix double counting.
7. Adding 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:
8. After this, every pair with at least one match is counted exactly once.
Step 4: simplify.
- The probability is . Both numbers divide by : . Since is prime and does not divide , this is in lowest terms.
- So .
The answer is .
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 gives , an overcount, and the true answer is a little smaller.
The trap
Adding the five chances of 1/25 to get 1/5 without subtracting the cases where two or more boxes match at once.
Concise solution
Each person's placement is a permutation of the five colors. Relabel the colors by Ang's placement, so Ang puts color in box . Ben's and Jasmin's placements are then independent uniformly random permutations and , and box is monochromatic exactly when and : box is a common fixed point.
Count ordered pairs out of that share at least one fixed point. For a chosen set of boxes, the number of pairs in which both permutations fix all of them is . Inclusion–exclusion over :
The probability is . Dividing by : , and is prime, so this is lowest terms.
. The answer is .
Review in the AoPS books
- Introduction to Counting & Probability, Chapter 1: Counting Is Arithmetic (§1.3)
- Introduction to Counting & Probability, Chapter 7: Introduction to Probability
- Introduction to Counting & Probability, Chapter 2: Basic Counting Techniques (§2.5)
- Introduction to Algebra, Chapter 22: Special Manipulations (§22.3)
Techniques
Map the objects to something easier to count · Exploit symmetry to reduce work or pair up objects