Maths Olympiad Prep

Library / /9 of 10

, 2018

Number theory Difficulty 6.6 National olympiad Prove it Saudi Arabia

Let n2n \geq 2 be a positive integer. A subset of positive integers SS is called comprehensive if for every integer 0x<n0 \leq x < n, there is a subset of SS whose sum of elements has remainder xx when divided by nn. Note that the empty set has sum 00. Show that if a set SS is comprehensive then there is some (not necessarily proper) subset of SS with at most n1n-1 elements which is also comprehensive.

Solution

We will show that if Sn|S| \geq n, we can remove one element from SS and still have a comprehensive set. Doing this repeatedly will always allow us to find a comprehensive subset of size at most n1n-1.

Denote S={s1,s2,,sk}S = \{s_1, s_2, \ldots, s_k\} for some knk \geq n. Now start with the empty set and add in the elements sis_i in order. During this process, we will keep track of all possible remainders of sums of any subset.

If TT is the set of current remainders at any time, and we add an element sis_i, the set of remainders will be TT and {t+sitT}\{t + s_i \mid t \in T\}. In particular, the set of remainders only depends on the previous set of remainders and the element we add in.

At the beginning of our process, the set of possible remainders is {0}\{0\} for the empty set. Since we assumed that SS is comprehensive, the final set is {0,1,,n1}\{0, 1, \ldots, n-1\}. The number of elements changes from 11 to n1n-1.

However, since we added knk \geq n elements, at least one element did not change the size of our remainder set. This implies that adding this element did not contribute to making any new remainders and SS is still comprehensive without this element, proving our claim. \square

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.