Clear Notion Academy

Sets, Relations and Functions (Beyond Advanced) Practice: Let X= 1,2, ,10 . How many subsets S X (the empty set included) are such that any two…

Question

Let X={1,2,…,10}X=\{1,2,\dots,10\}. How many subsets S⊆XS\subseteq X (the empty set included) are such that any two elements of SS differ by at least 33 and SS contains at least one even number?

Answer

Answer: 47

Hint

Count all admissible subsets by deciding what happens to the largest element, then remove those that use only odd numbers.

Solution

Let ana_n be the number of subsets of {1,…,n}\{1,\dots,n\} whose elements differ pairwise by at least 33 (empty set included). Either n∉Sn\notin S, giving an−1a_{n-1} subsets, or n∈Sn\in S, which forces n−1,n−2∉Sn-1,n-2\notin S and gives an−3a_{n-3} subsets. So an=an−1+an−3a_n=a_{n-1}+a_{n-3} with a0=1,a1=2,a2=3a_0=1,a_1=2,a_2=3. Then a3=4,a4=6,a5=9,a6=13,a7=19,a8=28,a9=41,a10=60a_3=4,a_4=6,a_5=9,a_6=13,a_7=19,a_8=28,a_9=41,a_{10}=60. Subsets with no even element are subsets of {1,3,5,7,9}\{1,3,5,7,9\} whose elements differ by at least 33. Two odd numbers differ by an even number, so they must differ by at least 44, i.e. they are non-adjacent in the list 1,3,5,7,91,3,5,7,9. Non-adjacent subsets of 55 items number 1313 (including the empty set). Required count =60−13=47=60-13=47. The tempting shortcut of treating the odd-only subsets as unrestricted (subtracting 3232) is wrong because the gap condition still bites.

More questions from Sets, Relations and Functions (Beyond Advanced) Practice

Practise the full set: Sets, Relations and Functions — Beyond Advanced