Answer
$P(x)=1-\frac{_{365}P_x}{365^x}$
Work Step by Step
The probability is $1$ minus the probability of all of them having birthdays on different days, which is: $P(x)=1-\frac{_{365}P_x}{365^x}$ (following the logic of earlier parts of the exercise).