Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2016/discrete-mathematics-continuous-mathematics-and-probability/3/d/solution

Assume and list the elements of as . Define the partial sums for . If one is divisible by , its corresponding nonempty prefix is a suitable .
Otherwise the partial sums have remainders in the nonzero residue classes. The pigeonhole principle gives with . Thus is divisible by , giving a nonempty subset .
Therefore a nonempty exists. This strengthens the literal assertion, which would otherwise allow the trivial empty set with sum zero.

New to topics? Read the docs here!