CAT 2024 Slot 1 QA Question 12

Multiple choice (+3 / −1) · Algebra · Functions · Try it, then check the answer and solution below.

CAT 2024 Slot 1QAAlgebra • FunctionsModerate
Consider two sets A={2,3,5,7,11,13}A = \{2, 3, 5, 7, 11, 13\} and B={1,8,27}B = \{1, 8, 27\}. Let ff be a function from AA to BB such that for every element bb in B,thereisatleastoneelementB , there is at least one elementaininAsuchthatsuch thatf(a) = b.Then,thetotalnumberofsuchfunctions. Then, the total number of such functionsf$ is
Answer and solution

Answer: B) 540

📌 Core Concept
The problem requires counting the number of onto (surjective) functions from set AA to set BB. The formula for the number of onto functions from a set with mm elements to a set with nn elements is given by the inclusion-exclusion principle:
∑k=0n(−1)k(nk)(n−k)m\sum_{k=0}^{n} (-1)^k \binom{n}{k} (n - k)^m
🔢 Step-by-Step Solution
1
Identify the sizes of sets: ∣A∣=6|A| = 6 and ∣B∣=3|B| = 3.
2
Apply the inclusion-exclusion formula:
For k=0k = 0: (−1)0(30)(3−0)6=1×1×729=729(-1)^0 \binom{3}{0} (3 - 0)^6 = 1 \times 1 \times 729 = 729
For k=1k = 1: (−1)1(31)(3−1)6=−1×3×64=−192(-1)^1 \binom{3}{1} (3 - 1)^6 = -1 \times 3 \times 64 = -192
For k=2k = 2: (−1)2(32)(3−2)6=1×3×1=3(-1)^2 \binom{3}{2} (3 - 2)^6 = 1 \times 3 \times 1 = 3
For k=3k = 3: (−1)3(33)(3−3)6=−1×1×0=0(-1)^3 \binom{3}{3} (3 - 3)^6 = -1 \times 1 \times 0 = 0
3
Sum the results: 729−192+3+0=540729 - 192 + 3 + 0 = 540.
⚡ 30-Second Shortcut
Alternatively, using Stirling numbers of the second kind S(6, 3) = 90 , the number of onto functions is $3! \times 90 = 6 \times 90 = 540.
🎯 Final Answer
Correct Answer: Option B

Keep going

Related Functions questions