The last red candy
A jar holds 10 red, 20 blue, and 30 green candies — 60 total. You draw them one at a time, randomly. What's the probability that when you've drawn all 10 red candies, at least 1 blue and 1 green candy remain in the jar?
10 red, 20 blue, 30 green. Draw one at a time — will all reds be gone while blue and green candies remain?
Running many trials
Now let's run many trials at once and see how often red is the first color to be completely drawn:
After enough trials, the fraction converges to about 58% — surprisingly high given that red is the smallest group.
The symmetry insight
Here's a key observation. Instead of tracking all 60 draws, focus on just three special candies: the last red, the last blue, and the last green. Their relative order determines everything:
Instead of asking “which color empties first?”, ask: “what color is the last candy?”
If red is last, red can't be the first to empty. The last candy's color is equally likely to be any of the three — by symmetry!
If the last candy overall is green or blue (not red), then red was fully emptied while at least some of that last color remained. This reframing turns a 60-candy problem into a 3-candy problem.
Reframing the problem
Let , , be the positions (1 through 60) at which the last red, blue, and green candies are drawn, respectively.
We need "at least 1 blue and 1 green remain when all reds are done." In other words, the last red candy must be drawn before the last blue candy AND before the last green candy: and .
This is equivalent to asking: among the three "last candy" positions , , , is the red one the smallest?
Not quite — we need to be more careful. There are two mutually exclusive scenarios that satisfy and :
Let TR, TB, TG be when the last red, blue, and green candies are drawn. We need TR < TB and TR < TG. Two of the six orderings satisfy this:
The two valid orderings are TR < TB < TG and TR < TG < TB. We compute each using conditional probability.
Computing each piece
Case 1: (green candy is drawn last overall)
Step 1 — All 60 candies. Which one ends up in position 60?
Step 1. What's the probability the last candy drawn (position 60) is green?
Each of the 60 candies is equally likely to be in position 60. There are 30 green candies:
Step 2. Given the last candy is green, what's the probability the last red is drawn before the last blue?
Remove the last green candy from consideration. We now have 59 candies: 10 red, 20 blue, 29 green. Among these 59, which is drawn last — the last red or the last blue?
Equivalently: among the 30 red-and-blue candies (ignoring the 29 green ones that are irrelevant to this ordering), which one is last? Each of these 30 candies is equally likely to be the very last red-or-blue candy drawn, and 20 of them are blue:
Case 1 total:
Case 2: (blue candy is drawn last overall)
Step 1 — All 60 candies. Which one ends up in position 60?
Step 1. The last candy is blue:
Step 2. Given the last candy is blue, the last red is drawn before the last green? Among the 40 remaining red-and-green candies (10 red, 30 green), 30 are green, so:
Case 2 total:
The answer
For a jar with red, blue, and green candies drawn one at a time, the probability that all reds are drawn before the last blue AND the last green is:
The elegant shortcut
There's an even cleaner way to see this. Focus only on the last red candy, the last blue candy, and the last green candy — three specific candies in the sequence of 60. The question is: what's the probability the red one comes first among these three?
This isn't quite a symmetry argument (the three "last" candies aren't equally likely to be in any position), but the conditional approach above gives us the exact answer.
Competition appearances
- Quant interviews: This exact problem with 10/20/30 candies is a classic Jane Street question
- Putnam training: Conditional probability on orderings of "last elements" is a powerful technique
- Programming contests: Efficient simulation of draw-without-replacement processes
- AMC/AIME: Problems involving drawing colored balls until one color is exhausted
Takeaway
The candy jar problem looks combinatorial but yields to conditional probability. Instead of counting arrangements of 60 candies, we focus on the relative order of three special candies (the last of each color). The technique of conditioning on "which color finishes last" and then asking about the remaining two is a general tool for any multi-color depletion problem.