Remarkable Subset

Does the following statement hold for any positive integer n n ?

For any set that consists of n n integers, there exists a non-empty subset such that the sum of its elements is divisible by n n .

Never true True for some n n Always true

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Chris Lewis
Mar 26, 2021

This is an application of the pigeonhole principle.

Say the numbers in the set are a 1 , a 2 , , a n a_1,a_2,\ldots,a_n . If any of these is divisible by n n , we're done; so assume from now on that none of them are.

Consider the n n sums s 1 = a 1 s_1=a_1 , s 2 = a 1 + a 2 s_2=a_1+a_2 , s 3 = a 1 + a 2 + a 3 s_3=a_1+a_2+a_3 ,..., s n = a 1 + a 2 + + a n s_n=a_1+a_2+\cdots +a_n . Again, if any of these sums happens to be divisible by n n , we're done, so we can assume that no s n s_n is a multiple of n n .

Now, there are n n sums, and exactly n 1 n-1 non-zero remainders upon division by n n . So (by the pigeonhole principle), for some i < j i<j we must have that s i s j ( m o d n ) s_i\equiv s_j \pmod{n}

But this means that n n divides s j s i = a i + 1 + a i + 2 + + a j s_j-s_i=a_{i+1}+a_{i+2}+\cdots +a_j , which gives us a subset that works.

Therefore there must always be a subset whose sum is divisible by n n .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...