Prove for every set of n integers there is a nonempty subset

Prove for every set of n integers, there is a nonempty subset that sums to a multiple of n.

Solution

Let a1, a2, ....,an be a set of n positive integers.
Denote S1=a1, S2=a1+a2, ..., Sn=a1+a2+.....+an. Suppose that none of these sums is divisible by n.
The sums give at most n-1 distinct remainders when divided by n, namely, 1,2,.....n-1. But since there are n sums, at least two of them have the same remainder when divided by n, say Si and Sj, where j > i. Now Sj - Si is divisible by n and also Sj - Si = ai+1 + .....+ aj .

Prove for every set of n integers, there is a nonempty subset that sums to a multiple of n.SolutionLet a1, a2, ....,an be a set of n positive integers. Denote S

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site