QlarIITy

MathematicsJEE Main 2022 · 25 JulyInteger

Let A={1,2,3,4,5,6,7}A = \{1, 2, 3, 4, 5, 6, 7\}. Define B={T⊆AB = \{T \subseteq A : either 1∉T1 \notin T or 2∈T}2 \in T\} and C={T⊆A:TC = \{T \subseteq A : T the sum of all the elements of TT is a prime number}\}. Then the number of elements in the set B∪CB \cup C is ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A union is counted as one family plus the members of the other that lie outside it.

Concept refresher. A set of nn elements has

N=2nN = 2^n

subsets, and those that avoid kk given elements number 2n−k2^{n-k}.

Picture the situation. The condition for BB fails only for subsets with 1∈T1 \in T and 2∉T2 \notin T. So BB is large, and the union B∪CB \cup C consists of BB together with the subsets outside BB whose sum is prime. Such a subset is {1}\{1\} joined to a subset UU of {3,4,5,6,7}\{3, 4, 5, 6, 7\}.

Approach. Count the first family, then add the subsets outside it whose sum is prime.

  1. Step 1: The first family

    The subsets with 1 and without 2 number 25=322^5 = 32, so BB has 27−32=962^7 - 32 = 96 elements.

  2. Step 2: Prime sums outside it

    For T={1}∪UT = \{1\} \cup U the sum is 1 more than the sum of UU, so UU must add to 4, 6, 10, 12, 16, 18 or 22. The sets are {4}\{4\}, {6}\{6\}, {3,7}\{3, 7\}, {4,6}\{4, 6\}, {5,7}\{5, 7\}, {3,4,5}\{3, 4, 5\}, {3,6,7}\{3, 6, 7\}, {4,5,7}\{4, 5, 7\}, {5,6,7}\{5, 6, 7\}, {3,4,5,6}\{3, 4, 5, 6\} and {4,5,6,7}\{4, 5, 6, 7\}, which is 11.

  3. Step 3: The union

    These 11 subsets are added to the 96 of BB, so the union has 96+11=10796 + 11 = 107 elements.

Answer. 107

Sanity check. The numbers 3 to 7 add to 25, so the largest possible sum of TT is 26, and the primes used are 5, 7, 11, 13, 17, 19 and 23.

Common wrong answers

  • 108: Counting {1}\{1\}, whose sum 1 is not a prime, gives 108.

Key takeaway

The trap. The number 1 is not prime.

How toppers think. They describe the complement of the larger family and search only there.

Remember. 96+11=10796 + 11 = 107

More on Set Operations & Venn Diagrams