2

I have this set $S = \{1, 2, 3, ..., 30\}$ a I have to find count of subsets of subset $S$ which have at least one even number.

I solved it that I substracted from total count of subsets ($2^{30}$) that subsets which have only odd numbers. Like that:

$2^{30}-\sum\limits_{i=0}^{15} {15\choose i}$

Is my solution correct?

Johny
  • 225
  • 2
    Technically correct, but that sum is $2^{15}$. – André Nicolas Nov 21 '15 at 23:30
  • Note the to be a subset of only odd numbers is the same as being a subset of {1,3,... 29} which has 15 elements so the total number of odd only subsets is $2^{15}$. Which I think is the same result. (Does $\sum { n \choose i} = 2^n?$ It seems to me that it does but I'm being fast and dirty. – fleablood Nov 21 '15 at 23:43

1 Answers1

1

It’s correct but incomplete: $\sum_{i=0}^{15}\binom{15}i$ is just the total number of subsets of a set of $15$ things, so you can simplify the summation to ... ?

Brian M. Scott
  • 616,228