An ice-cream shop gives a free cone to the first person in line whose birthday matches someone ahead of them. Birthdays are random over 365 days. Which place in line gives you the best chance of the free cone?
Right answers go through as you type.
Show the solution
Answer: 20
Chance of winning at each place in line.
Step 1 · Chance place n wins
(the n−1 people ahead all differ)×(n−1)÷365
Nobody ahead of you can have won, so their birthdays all differ. Then yours must match one of those n−1.
Step 2 · Compare place n + 1 with place n
×(366−n)÷365 for the extra person who must differ,×n÷(n−1) for more people to match
Moving back one place adds a person who must not match, but gives you one more birthday to hit.
Step 3 · Best place: just after n² − n reaches 365
192−19=342 is under 365;202−20=380 isn’t =20
The chance rises while the ratio is above 1, which simplifies to n2−n<365. It peaks one place after that stops.