This could be reformulated the following way. There is a bag of 365 different items. We pick an item at random. Note which one it was and return it back into the bag. The question: how many items should we pick so that with a probability higher than 1/2 we would have picked the same item twice. The items in the bag are assumed to be thoroughly mixed before every trial. Is it not surprising that all it takes is 23 items?
To prove our assertion let us start with just two people. What is the probability p2 that two random persons have the same birthday? It's easier to answer a related question. What is the probability q2 that two random persons have different birthdays? Obviously,
Thus we have a person with a birthday which falls onto one of the 365 days and ask what is the probability that another person has a different birthday. Since any day out of 365 but the birthday of the first person would make a different birthday,
Consider now three people. What is the probability q3 that no two of them have the same birthday? Obviously
Proceeding in this fashion we'll get
| | q23 = 364/365 · 363/365 · ... · 343/365 |