[Math] Phone number probability: how many phone numbers needed to guarantee atleast 2 have one digit matching

combinatorics

I've been struggling with this one question given, as I'm not sure I'm applying ideas such as the Pigeonhole Principle the right way. I've tried to look up this question or anything remotely similar to it in hopes of understanding the correct logic I need to use, but I'm just getting more and more confused. These are a couple of links I found close but not close enough to help me: birthdays, odd phone number digits, and more phone number stuff.

Onto my question now, I guess.

Question: How many (different) phone numbers do we need to guarantee that atleast two have atleast one digit in common? What about the first three digits in common?

Context: phone number is $10$ digits long; "in common" implies the same integer is in the same position in both phone numbers; integers $0$ to $9$ are being used for each digit in the phone numbers.

What I've come up with so far is that since we have $10$ "spaces" to fill out and $10$ possibilities for each, we have $10^{10}$ unique possibilities for phone numbers. Here's where I'm getting stuck: I'm thinking that since we have $10$ ways to choose each digit, to match $1$ digit of $2$ different phone numbers the probability would be $\frac{1}{10} + \frac{1}{10}$. This would mean that we need $20$ phone numbers to guarantee atleast $1$ digit in $2$ of them is matching, but I'm very unsure about my reasoning and conclusions. I chose to add the probability of each of the two phone number's first digit being a particular number (the $\frac{1}{10}$ thing) because I thought these are two different "choices" that are not dependent on each other, and so they have their own probabilities.

Any help given would be much appreciated! I want to understand what the right approach is in thinking about such a problem, and I can't seem to find resources to help me with this particular one online, so if I have missed any, please feel free to direct me to those as well! Thanks for reading this far either way 🙂

Best Answer

The length of the phone number is irrelevant. For the first position there are only 10 possible different digits, so the 11th phone number has to be a duplicate.