Learn / Library / Combinatorics
Subset with a fixed sum
What is the smallest such that every set of different integers chosen from to must contain numbers whose sum is ?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Group the numbers into boxes so that numbers in one box always add up to the target.
Solution
- The numbers split into the groups for , and every group sums to .
- Taking one number from each group gives a set of numbers with no summing to .
- Any set of numbers must take both numbers of some group, by the pigeonhole principle.
- Hence the smallest is .
Answer: