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?

60-candy jar

10 red, 20 blue, 30 green. Draw one at a time — will all reds be gone while blue and green candies remain?

10 red
20 blue
30 green
· Draw #0
What do you think?
P(at least 1 blue and 1 green remain when all red candies are drawn)?

Running many trials

Now let's run many trials at once and see how often red is the first color to be completely drawn:

Candy jar simulator

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:

The symmetry argument

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 TRT_R, TBT_B, TGT_G 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: TR<TBT_R < T_B and TR<TGT_R < T_G.

This is equivalent to asking: among the three "last candy" positions TRT_R, TBT_B, TGT_G, is the red one the smallest?

Not quite — we need to be more careful. There are two mutually exclusive scenarios that satisfy TR<TBT_R < T_B and TR<TGT_R < T_G:

Orderings of last candy positions

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:

R < B < G
R < G < B
B < R < G
B < G < R
G < R < B
G < B < R

The two valid orderings are TR < TB < TG and TR < TG < TB. We compute each using conditional probability.

P(TR<TB and TR<TG)=P(TR<TB<TG)+P(TR<TG<TB)P(T_R < T_B \text{ and } T_R < T_G) = P(T_R < T_B < T_G) + P(T_R < T_G < T_B)

Computing each piece

Case 1: TR<TB<TGT_R < T_B < T_G (green candy is drawn last overall)

Case 1 visual: green finishes last

Step 1 — All 60 candies. Which one ends up in position 60?

30/60are green → P(last candy is green)= 1/2

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:

P(TG=60)=3060=12P(T_G = 60) = \frac{30}{60} = \frac{1}{2}

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:

P(TR<TBTG=60)=2030=23P(T_R < T_B \mid T_G = 60) = \frac{20}{30} = \frac{2}{3}

Case 1 total:

P(TR<TB<TG)=3060×2030=12×23=13P(T_R < T_B < T_G) = \frac{30}{60} \times \frac{20}{30} = \frac{1}{2} \times \frac{2}{3} = \frac{1}{3}

Case 2: TR<TG<TBT_R < T_G < T_B (blue candy is drawn last overall)

Case 2 visual: blue finishes last

Step 1 — All 60 candies. Which one ends up in position 60?

20/60are blue → P(last candy is blue)= 1/3

Step 1. The last candy is blue:

P(TB=60)=2060=13P(T_B = 60) = \frac{20}{60} = \frac{1}{3}

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:

P(TR<TGTB=60)=3040=34P(T_R < T_G \mid T_B = 60) = \frac{30}{40} = \frac{3}{4}

Case 2 total:

P(TR<TG<TB)=2060×3040=13×34=14P(T_R < T_G < T_B) = \frac{20}{60} \times \frac{30}{40} = \frac{1}{3} \times \frac{3}{4} = \frac{1}{4}

The answer

P(TR<TB and TR<TG)=13+14=71258.33%P(T_R < T_B \text{ and } T_R < T_G) = \frac{1}{3} + \frac{1}{4} = \frac{7}{12} \approx 58.33\%

Summary of the calculation
P=P(TR<TB<TG)+P(TR<TG<TB)P = P(T_R < T_B < T_G) + P(T_R < T_G < T_B)
Split into two mutually exclusive orderings where red finishes first.
Step 1 of 4
Last Candy Ordering

For a jar with rr red, bb blue, and gg green candies drawn one at a time, the probability that all reds are drawn before the last blue AND the last green is: P=gr+b+gbr+b+br+b+ggr+gP = \frac{g}{r+b+g} \cdot \frac{b}{r+b} + \frac{b}{r+b+g} \cdot \frac{g}{r+g}

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.

What do you think?
What if we wanted ALL blue and ALL green to remain when the last red is drawn? (i.e., the first 10 draws are all red)
What do you think?
What if the jar had 10 red, 10 blue, and 10 green candies?
decimal like 0.33

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
P(last candy drawn is red)? (decimal like 0.17)
P(red finishes first in the 3-color race — that is, all reds drawn before any color is fully drawn)? (decimal like 0.58)
With 5 red, 5 blue, 5 green — P(at least 1 blue and 1 green remain when all reds gone)? (decimal like 0.33)

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.