Let be a positive integer. We want to make up a collection of cards with the following properties:
* each card has a number of the form written on it, where is a positive integer;
* for any positive integer , we can select some card(s) from this collection such that the sum of the number(s) on the selected card(s) is .
Determine the smallest possible number of cards needed in this collection.
, 2014
Solution
We need at least cards.
For example, we can have cards with number for each and another card with number . For , we can simply choose the card with number . Suppose that . Let , and for , define integers and inductively, using the division algorithm:
Then . Since , we have that . Thus, we can choose cards with number for each so that the sum of the numbers is . So the required properties are satisfied.
Next, consider the smallest set of cards we can make with numbers adding up to . Clearly, this set cannot contain any card with number greater than . For each , let be the number of cards with number in this set. Then for all , for if then we can replace cards with number
in this set with just one card with number , contradicting the minimality of the set. So now we have that
This implies that all inequalities involved must be equality; that is, for all . Thus, this set has cards.
Suppose now that we have a collection of cards with the required properties. Then some of these cards have numbers adding up to . So by what we have just shown, this collection must contain at least cards. However, if we have exactly cards, then we must select all these cards for the sum of the numbers to be , but this means that we cannot select cards for the sum of the numbers to be , a contradiction. Therefore we need at least cards.