When the second person enters the room, there is a $\frac{1}{365}$ chance of having a matching birthday with the first person (assuming 365 days in a year and ignoring leap years). So, $P(X=2) = \frac{1}{365}$.
When the third person enters the room, there is a
Show more…