Skip to main content
Back to Sets, Relations & Functions
JEE Main 2022
Sets, Relations & Functions
Sets and Relations
Medium

Question

Let A={1,2,3,4,5,6,7}A=\{1,2,3,4,5,6,7\}. Define B={TAB=\{T \subseteq A : either 1T1 \notin T or 2T}2 \in T\} and C={TA: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 BCB \cup C is ________________.

Answer: 1

Solution

Key Concepts and Formulas

  • Power Set: The set of all subsets of a given set. If a set AA has nn elements, its power set P(A)\mathcal{P}(A) has 2n2^n elements.
  • Principle of Inclusion-Exclusion for Sets: For two sets BB and CC, n(BC)=n(B)+n(C)n(BC)n(B \cup C) = n(B) + n(C) - n(B \cap C).
  • De Morgan's Laws for Sets: (BC)=BC(B \cup C)' = B' \cap C' and (BC)=BC(B \cap C)' = B' \cup C'.
  • Complementary Counting: n(X)=n(U)n(X)n(X) = n(\mathcal{U}) - n(X'), where U\mathcal{U} is the universal set.
  • Prime Numbers: Positive integers greater than 1 that have no positive divisors other than 1 and themselves (e.g., 2, 3, 5, 7, 11, ...). 0 and 1 are not prime numbers.

Step-by-Step Solution

The problem asks for the number of elements in the set BCB \cup C, where BB and CC are defined based on subsets of A={1,2,3,4,5,6,7}A=\{1,2,3,4,5,6,7\}. We will use the complementary counting approach. The total number of subsets of AA is n(P(A))=2A=27=128n(\mathcal{P}(A)) = 2^{|A|} = 2^7 = 128. We will find n((BC))n((B \cup C)') and subtract it from n(P(A))n(\mathcal{P}(A)). By De Morgan's Law, (BC)=BC(B \cup C)' = B' \cap C'. We need to find the number of subsets TAT \subseteq A such that TBT \in B' and TCT \in C'.

Step 1: Characterize the set BB'

The set BB is defined as B={TA:1T or 2T}B=\{T \subseteq A : 1 \notin T \text{ or } 2 \in T\}. The complement BB' consists of subsets TT that do NOT satisfy the condition for BB. The negation of "(1T1 \notin T) or (2T2 \in T)" is "(¬(1T)\neg(1 \notin T)) and (¬(2T)\neg(2 \in T))", which simplifies to "1T1 \in T and 2T2 \notin T". So, B={TA:1T and 2T}B' = \{T \subseteq A : 1 \in T \text{ and } 2 \notin T\}. To count the number of such subsets, we fix that 1 must be in TT and 2 must not be in TT. The remaining elements are {3,4,5,6,7}\{3,4,5,6,7\}, which has 5 elements. Each of these 5 elements can either be included in TT or not. Therefore, n(B)=25=32n(B') = 2^5 = 32.

Step 2: Characterize the set CC'

The set CC is defined as C={TA:the sum of all the elements of T is a prime number}C=\{T \subseteq A : \text{the sum of all the elements of } T \text{ is a prime number}\}. The complement CC' consists of subsets TT where the sum of elements is NOT a prime number. This includes sums that are composite, 0 (for the empty set), or 1.

Step 3: Characterize and count the elements in BCB' \cap C'

We need to find subsets TT such that TBT \in B' and TCT \in C'. From Step 1, TT must contain 1 and not contain 2. So TT must be of the form {1}X\{1\} \cup X, where XX is a subset of A{1,2}={3,4,5,6,7}A \setminus \{1,2\} = \{3,4,5,6,7\}. Let S(T)S(T) be the sum of elements in TT. Then S(T)=1+S(X)S(T) = 1 + S(X), where S(X)S(X) is the sum of elements in XX. The condition for TCT \in C' is that S(T)S(T) is NOT a prime number.

It is easier to count the number of subsets in BB' whose sum IS a prime number, and subtract this from n(B)n(B'). Let n(BC)n(B' \cap C) be the number of subsets TBT \in B' such that S(T)S(T) is prime. Then n(BC)=n(B)n(BC)n(B' \cap C') = n(B') - n(B' \cap C).

The set XX is a subset of {3,4,5,6,7}\{3,4,5,6,7\}. The minimum sum S(X)S(X) is S()=0S(\emptyset) = 0. The maximum sum S(X)S(X) is S({3,4,5,6,7})=3+4+5+6+7=25S(\{3,4,5,6,7\}) = 3+4+5+6+7 = 25. The sum S(T)=1+S(X)S(T) = 1 + S(X) ranges from 1+0=11+0=1 to 1+25=261+25=26. The prime numbers in the range [1,26][1, 26] are {2,3,5,7,11,13,17,19,23}\{2, 3, 5, 7, 11, 13, 17, 19, 23\}. For S(T)S(T) to be prime, S(X)S(X) must be one of {21,31,51,71,111,131,171,191,231}\{2-1, 3-1, 5-1, 7-1, 11-1, 13-1, 17-1, 19-1, 23-1\}, which are {1,2,4,6,10,12,16,18,22}\{1, 2, 4, 6, 10, 12, 16, 18, 22\}.

Now, we find the subsets X{3,4,5,6,7}X \subseteq \{3,4,5,6,7\} for each required sum S(X)S(X):

  • S(X)=1S(X)=1: No subset of {3,4,5,6,7}\{3,4,5,6,7\} sums to 1.
  • S(X)=2S(X)=2: No subset of {3,4,5,6,7}\{3,4,5,6,7\} sums to 2.
  • S(X)=4S(X)=4: X={4}X=\{4\}. (1 subset)
  • S(X)=6S(X)=6: X={6}X=\{6\}. (1 subset)
  • S(X)=10S(X)=10: X={3,7}X=\{3,7\} or X={4,6}X=\{4,6\}. (2 subsets)
  • S(X)=12S(X)=12: X={5,7}X=\{5,7\} or X={3,4,5}X=\{3,4,5\}. (2 subsets)
  • S(X)=16S(X)=16: X={3,6,7}X=\{3,6,7\} or X={4,5,7}X=\{4,5,7\}. (2 subsets)
  • S(X)=18S(X)=18: X={5,6,7}X=\{5,6,7\} or X={3,4,5,6}X=\{3,4,5,6\}. (2 subsets)
  • S(X)=22S(X)=22: The sum of {3,4,5,6,7}\{3,4,5,6,7\} is 25. To get a sum of 22, we must exclude elements summing to 2522=325-22=3. So X={4,5,6,7}X=\{4,5,6,7\}. (1 subset)

The total number of subsets TBT \in B' whose sum is prime is n(BC)=1+1+2+2+2+2+1=11n(B' \cap C) = 1 + 1 + 2 + 2 + 2 + 2 + 1 = 11.

Now we can find n(BC)n(B' \cap C'): n(BC)=n(B)n(BC)=3211=21n(B' \cap C') = n(B') - n(B' \cap C) = 32 - 11 = 21.

Step 4: Calculate n(BC)n(B \cup C)

Using the complementary counting principle: n(BC)=n(P(A))n((BC))n(B \cup C) = n(\mathcal{P}(A)) - n((B \cup C)') n(BC)=n(P(A))n(BC)n(B \cup C) = n(\mathcal{P}(A)) - n(B' \cap C') n(BC)=12821=107n(B \cup C) = 128 - 21 = 107.

Common Mistakes & Tips

  • Negating Conditions: Be careful when negating compound logical conditions (OR and AND). Use De Morgan's laws correctly.
  • Prime Number Definition: Remember that 1 is not a prime number. The smallest prime number is 2.
  • Systematic Enumeration: When finding subsets with specific sums, be organized to avoid missing cases or counting duplicates. Grouping by the number of elements in the subset can be helpful.

Summary

We used the principle of complementary counting to find the number of elements in BCB \cup C. This involved calculating the total number of subsets of AA, and subtracting the number of subsets that are neither in BB nor in CC (i.e., BCB' \cap C'). We characterized BB' as subsets containing 1 and not containing 2. Then, we found the subsets in BB' whose sum of elements is a prime number. By subtracting this count from the total number of subsets in BB', we obtained n(BC)n(B' \cap C'), which allowed us to find n(BC)n(B \cup C).

The final answer is 107\boxed{107}.

Practice More Sets, Relations & Functions Questions

View All Questions