I have to find the expected number of people required to find a pair with same birthday. This is what I tried:
Assume that there are $M$ possible birthdays, then following the definition for expected number: $$E[X] = \sum_{x=2}^{x=M+1} xP[X = x] = \sum_{x=2}^{x=M+1} x \left[ \frac{M!(x-1)}{(M-x+1)! M^{x}} \right]$$
However, this is completely different from what is mentioned here as .
$$E[X]=1+\sum_{k=1}^{M} \frac{M!}{(M-k)! M^k}.$$
Are these expressions equivalent ? How to prove it ?