How many people must be gathered together in a room, before you can be certain that there is a greater than 50/50 chance that at least two of them have the same birthday?

Only twenty-three people need be in the room, a surprisingly small number. The probability that there will not be two matching birthdays is then, ignoring leap years, 365x364x363x...x343/365 over 23 which is approximately 0.493. this is less than half, and therefore the probability that a pair occurs is greater than 50-50. With as few as fourteen people in the room the chances are better than 50-50 that a pair will have birthdays on the same day or on consecutive days.