Let A={1,2,3,4,5,6,7}. Define B={T⊆A:either 1∈/T or 2∈T} and C={T⊆A:the sum of all the elements of T is a prime number}. Then the number of elements in the set B∪C is \_\_\_\_.
Answer: 107
Solutions · 1
Official solution
(B∪C)′=B′∩C′. Here B′={T:1∈T and 2∈/T}, and C′={T:sum of elements is not prime}.
We need subsets T′ of {3,4,5,6,7} (since 1 is forced in, 2 forced out) such that 1+sum(T′) is not prime. Counting by size of T′:
, size of T′, valid count |
---|---|
5|1|
4|3|
3|6|
2|7|
1|3|
0|1|
n(B′∩C′)=1+3+6+7+3+1=21
\[n(B\cup C) = 2^7 - 21 = 128-21 = 107\]