1

$[20] = \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20\}$.

We could probably remove all $n < 4 \text { and all } n > 15$. Then the new set will have $2^ {12}$ subsets. Now I am not sure how to get rid of all subsets in $\{4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15\}$ that don't contain $4 \text { and } 15$. Then we could subtract that number of removed subsets from $2^{12}$. Or, maybe, all this is either simply wrong or inefficient. Any hints and/or comments would be appreciated.

2 Answers2

1

Just include $4$ and $15$ and then take every subset of $\{5, 6, \dots, 14\}$. You will have exactly $2^{10}$ subsets.

Jihad
  • 3,284
1

We remove all $n<4$ and $n>15$. That's eight elements. The new set is $\{4,5,...,15\}$, with cardinality $12$.

The subset must contain $4$ as the smallest element and $15$ as the largest element. So it must contain $4$ and $15$. Then we want to add elements to this subset: there are ten eligible elements, the set $\{5,6,...14\}$. This set has $2^{10}$ subsets, since a set with cardinality $n$ has $2^n$ subsets.

So there are $2^{10}$ satisfactory subsets.

Newb
  • 17,672
  • 13
  • 67
  • 114