Suppose that is a subset of such that the sum of any two (not necessarily distinct) elements of is never an element of What is the maximum number of elements may contain?
- A)
- B)
- C)
- D)
- E)
Answer
B
Key insight
The numbers 13 to 25 work, since every sum is at least 26. Pairing smaller numbers that add to the largest number shows 14 is impossible.
Solution
This asks for the most numbers possible, so there are two halves: find a set that works, then show nothing bigger can work.
Part 1: thirteen numbers is possible.
- Take the top half, . That is numbers.
- The smallest sum you can make is , which is bigger than . So no sum lands back in the set.
Part 2: fourteen numbers is impossible.
3. The largest number in the set limits what else can go in, so look at it first. Suppose the largest number is .
4. Pair up the numbers below so that each pair adds to :
That is pairs, and every number from to is in exactly one pair.
5. The set cannot hold both numbers of a pair. For example, if it had and , then would be in the set, which breaks the rule.
6. So below the set has at most one number from each of the pairs. Adding itself gives at most numbers.
7. If the largest number is even, say , pair up : that is pairs, and is left over. The set cannot contain , because . So there are at most numbers.
8. If the largest number is smaller than , there are even fewer numbers below it, and the same pairing gives an even smaller limit.
Thirteen is possible and fourteen is not.
The answer is .
Why this works
For "how many numbers can you pick without breaking a rule" questions, look at one special number (here the largest) and see what it forbids. Pairing the other numbers so each pair "competes" for one place turns the question into counting pairs. The words "not necessarily distinct" matter: they are why half of an even largest number is not allowed.
Alternative approach
The odd numbers also make a set of that works, because odd plus odd is always even. Finding two different sets of and no set of is a good sign, but only the pairing argument proves that is impossible.
The trap
Forgetting that a number may be added to itself, or stopping after finding a set of 13 without checking that 14 is impossible.
Concise solution
Construction. Take , which has elements. The smallest possible sum of two elements is , so no sum lands in .
Upper bound. Let be the largest element of . Every other element lies in . Group these numbers into pairs with . If both members of a pair were in , their sum would be in , forbidden. Also, if is even, the number cannot be in , since .
- If is odd, splits into pairs, each contributing at most one element, so .
- If is even, there are pairs plus the excluded , so .
Either way , and is achieved.
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics
- Intermediate Counting & Probability, Chapter 2: Sets and Logic (§2.2, §2.3)
- Intermediate Counting & Probability, Chapter 5: The Pigeonhole Principle
- Introduction to Algebra, Chapter 20: Special Functions (§20.3)
Techniques
Consider the largest/smallest element or boundary case · Pigeonhole principle