A probability problem by Paola Ramírez

Let N N be a set:

N = { 1 , 2 , 3 , 4 , , 50 } N= \{1,2,3,4,\ldots, 50\}

What is the greatest subset of N N such that does not contain two number whose sum is divisible by 7?


The answer is 23.

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

Make a partition of the given set as follows:

{ 1 , 8 , 15 , 22 , 29 , 36 , 43 , 50 } \left\{ 1,8,15,22,29,36,43,50 \right\} , { 2 , 9 , . . . , 44 } \left\{ 2,9,...,44 \right\} ,..., { 7 , 14 , . . . , 49 } \left\{ 7,14,...,49 \right\}

So we have 7 7 subsets; the i t h { i }^{ th } , with 1 i 7 1\le i\le 7 , contains the elements k N k\in N such that k i ( m o d 7 ) k\equiv i(mod\quad 7)

Thus, if we choose an element from the 6 t h { 6}^{ th } subset and one that belong to the 1 t h { 1}^{ th } subset, their sum will be divisible by 7 7 . But, if we choose any number of elements from the same subset (that is not the 7 t h { 7 }^{ th } ), the sum of any pair won't be divisible by 7 7 .

As the first subset has 8 8 elements and in is the biggest, we pick the whole subset in order to optimize the quantity of elements in the final subset. Then, if we choose the 2 t h { 2}^{ th } , we cannot choose any element that belong to the 5 t h { 5}^{ th } . Similarly, if we pick the 3 t h { 3 }^{ th } , we're not able to pick the 4 t h {4}^{ th } . Finally, we can pick at most one element from the 7 t h {7 }^{ th } subset, because if we have two or more, their sum will be divisible by 7 7 .

Hence, we have picked 8 + 7 + 7 + 1 = 23 8+7+7+1=23 elements from the initial subset. Note that it does not matter that we pick the 2 t h { 2 }^{ th } , we could have picked the 5 t h { 5 }^{ th } instead, and it would not have affected the result.

P.S.: This problem has been posted several times, I posted it time ago and deleted it because I realized that someone posted before me.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...