2026-05-04

Problem — 2026-05-04

Medium

MediumProbability

In a room of nn people, what is the smallest nn such that the probability that at least two people share a birthday exceeds 50%50\%? (Assume 365365 equally likely birthdays.)

Enter an integer

Show solution
The probability that all nn birthdays are distinct is 365365⋅364365⋅363365⋯365−n+1365\frac{365}{365} \cdot \frac{364}{365} \cdot \frac{363}{365} \cdots \frac{365-n+1}{365}. For n=22n = 22: P(all distinct)≈0.5243>0.5P(\text{all distinct}) \approx 0.5243 > 0.5. For n=23n = 23: P(all distinct)≈0.4927<0.5P(\text{all distinct}) \approx 0.4927 < 0.5. So P(match)>0.5P(\text{match}) > 0.5 first at n=23n = 23.