A math class has 25 students. Assuming that all of the students were born in the first
half of the year—between January 1st and June 30th— what is the probability that at
least two students have the same birthday? Assume that nobody was born on leap day,
so there are 181 possible birthdays.

So now, P( all students having distinct birthdays) =>

The first student can have any birthday out of 181 possible days => 181/181

If the second student is not supposed to have the same birthday as first, then he is left with only (181 - 1) choices => 180/181

Similarly, if the third student is not supposed to share a birthday with either of the previous two students, then he is left with (181 - 2) choices => 179/181

Similarly, we can find the individual probabilities for a distinct birthday for each student as: