Problem: Ignoring leap days, the days of the year can be numbered $1$ to $365$. Assume that birthdays are equally likely to fall on any day of the year. Consider a group of $n$ people, of which you are not a member. An element of the sample space $Ω$ will be a sequence of n birthdays (one for each person).
Event $A$: “someone in the group shares your birthday”
Find an exact formula for $P(A)$.
Solution provided:
It’s easier to calculate $P(A^c)$. There are $364^n$ outcomes in $A^c$ since there are $364$ choices for each birthday. So $ P(A)=1 − P(A^c)=1 − \frac{364^n}{365^n}$
My Solution:
Say $n=5$. First we can assume the first person has the same birthday as me. This leaves the other four people to each have a choice of $364$ days for their birthdays. So there are $364^4$ sequences per person. $5(364)^4$ can more generally be written as $n(364)^{n-1}$. My formula ends up as $\frac{n(364)^{n-1}}{365^n}$ which ends up being wrong. I cannot figure out why.