Selecting from $\{1,2,3,4,5,6,7,8,9\}$ to guarantee at least one pair adds to $10$

5.3k Views Asked by At

How many numbers must be selected from the set $\{1,2,3,4,5,6,7,8,9\}$ to guarantee that at least one pair of these numbers add up to $10$? Justify your answer.

Here's my answer.

Consider the two sets $\{1,2,3,4\}$ and $\{6,7,8,9\}$. In the worst case, one may pick the number $5$ and then all the numbers from one set and then a number from the other set. Therefore, $6$ numbers must be selected in order to guarantee that at least one pair of these numbers add up to $10$.

Do you think my answer is correct?

2

There are 2 best solutions below

0
On

The argument is not fully persuasive, since conceivably we might pick, in addition to $5$, $3$ elements from one of our $4$-element sets and $2$ from another, and not get a sum of $10$. This actually can't happen, but there are more cases to look at than the ones you have studied.

Consider instead the following. Divide our collection of numbers as follows:

$$\{5\},\quad \{1,9\},\quad \{2,8\},\quad \{3,7\},\quad \{4,6\}.$$

Suppose we choose $6$ numbers. Then since there are only $4$ "pigeonholes" in the collection $\{1,9\}, \{2,9\}, \{3,7\}, \{4,6\}$, we must have chosen at least $2$ numbers from the same pigeonhole, that is, two numbers with sum $10$. And it is clear that we can pick $5$ numbers in several ways so that the sum of no two is $10$.

0
On

HINT:

If you want to add exactly to 10. Divide into pairs where sum is 10. Then apply Pigeonhole principle.