A set of numbers is called sum-free if whenever and are (not necessarily distinct) elements of the set, is not an element of the set. For example, and the empty set are sum-free, but is not. What is the greatest possible number of elements in a sum-free subset of ?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
If m is the largest element of a sum-free set S, then S minus {m} and its mirror about m are disjoint in {1, ..., m-1}, so 2(|S|-1) <= 19.
Solution
Ten is attainable. Two different sets of size work.
- The top half : any two of its elements (equal or not) sum to at least , which is outside altogether.
- The odd numbers : a sum of two odd numbers is even, so it is never one of them.
Eleven is impossible. Let be sum-free with and let be its largest element, so .
For any we cannot have , since then would be an element of . So the "mirror" map sends into the complement of .
Apply this to the elements of . Each such satisfies , so its mirror also lies in , and the map is injective. We therefore have two sets inside :
each of size , and by the previous paragraph they are disjoint. Counting,
so , and since is an integer, .
The greatest possible size is .
The answer is .
Why this works
The extremal principle — name the largest element and ask what it forbids — converts a global condition into a statement about a single number. Here splits into pairs (with alone if is even), and sum-freeness says at most one member of each pair is in ; the disjointness argument above is just that pairing counted in one line, which also disposes of the even case since rules out automatically. The same bound shows that a sum-free subset of has at most elements, and the top half always attains it.
Alternative approach
One can also bound using the largest element without mirroring the whole set. List the elements of in increasing order as . The differences
are distinct, strictly positive, and none of them is in . Together with the elements of itself, that is distinct numbers in , so and .
The trap
Taking {10, 11, ..., 20}, whose 11 elements have no two distinct members summing into the set, and forgetting that x = y is allowed so 10 + 10 = 20 is a violation; that lands on choice (D).
Common mistakes
- Taking {10, 11, ..., 20}, whose 11 elements have no two distinct members summing into the set, and forgetting that x = y is allowed so 10 + 10 = 20 is a violation; that lands on choice (D).
- Finding one -element example and stopping, without any argument that is impossible; with the choices ranging up to that is a guess rather than a solution.
- Assuming the optimum must be the odd numbers or the top half and concluding that a mixed set could never be as large; the bound, not the examples, is what rules out .
Techniques
Consider the largest/smallest element or boundary case · Pigeonhole principle