I am trying to find the probability formula for a variation of the Birthday Problem.
Suppose that there were just two people, there were $n$ possible birthdays for both, and each person could have multiple birthdays. Person $A$ would have $a$ birthdays, and person $B$ would gave $b$ birthdays.
Given $n$, $a$, and $b$, what would be the probability formula to determine if any of the birthdays matched? Obviously if $a=n$ then the probability is $100%$. If both $a$ and $b$ are $1$, then the probability is $(n-1)^2/n$ (I think). But I was trying to find the general probability formula for this. Any ideas anyone?
Hint: There are $\binom{n}{a} \binom{n}{b}$ total possible combinations of birthdays for $A$ and $B$. The number of combinations in which $A$ and $B$ do not share a birthday is $\binom{n}{a+b} \cdot \frac{(a+b)!}{a!b!}$.