take any one person
add a 2nd person; the chance neither has the same birthday = 364/365 (assume non-leap year)
add a 3rd person; the chance that none have the same birthday = = 364/365 X 363/365
add a 4th person; the chance that none have the same birthday = = 364/365 X 363/365 X 362/365
and so on
it's when you get to the 23rd person that that fraction (from all the multiplications) gets below 1/2 i.e. they are less likely to all have different birthdays than at least two of them sharing the same date