Test your observation!

Given a set S { 1 , 2 , 3 , 4 , 5 , 6 , . . . , 17 } \left\{ 1,2,3,4,5,6,...,17 \right\} , how many sub-sets of S are there such that the sum of the numbers within the sub-set is less than or equal to 76? (An empty sub-set counts as one).


The answer is 65536.

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

Mark Kong
Jul 27, 2014

Note that the sum of all of the numbers in the set is 17 ( 17 + 1 ) 2 = 17 × 9 = 153 \frac{17(17+1)}{2} = 17 \times 9 = 153 . Then 153 76 = 77 153-76=77 , so for any set, exactly it or its complement has sum less than or equal to 76. Hence, exactly half of the subsets have sum less than or equal to 76.

Since, for any subset, either each number is in the set or out of the set, there are 2 17 2^{17} possible subsets. Half of that is 2 16 = 65536 2^{16}=\boxed{65536}

That is beautiful! I just wrote a quick program to generate the possibilities and counted them. Couldn't figure out why it was such a nice answer though.

Danny Whittaker - 6 years, 2 months ago

Log in to reply

The same...

Anton Shkrunin - 5 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...