It is not Lupus

Probability Level pending

For how many positive integers n < 1000 n < 1000 are there an odd number of subsets of { 1 , 2 , , 999 } \{1, 2, \ldots, 999 \} with size n n ?


The answer is 255.

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

Calvin Lin Staff
May 13, 2014

By Lucas's Theorem, ( 999 n ) { 999 \choose n } is odd if and only if in the binary representation of n n , the positions which are 1, are also 1 in the binary representation of 999.

Since 999 = 111110011 1 2 999 = 1111100111_2 , we have 2 8 1 = 255 2^{8} - 1 = 255 possibilities (-1 because we have to exclude n = 0 n = 0 ).

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...