Assuming no student was born on Leap Day, and that birthdays are as likely to occur on one day as any other, each student has

probability of being born on a particular day. So if one student's birthday was, say, 1 January, the probability that another student was born on 2 January is

.
The probability, then, of having the next student born on 3 Januaray is

.
Continuing in this fashion, for 25 students you would find that no two share a birthday with probability
