Skip to content
NCERT Exemplar · Q25

Q.Let A={1,2,3,…n}A = \{1, 2, 3, \ldots n\} and B={a,b}B = \{a, b\}. Then the number of surjections from AA into BB is
(A) nP2^{n}P_2
(B) 2n−22^n - 2
(C) 2n−12^n - 1
(D) none of these

Karnataka PUCMCQ· 1mImportance★★★★★
83% · 86/104 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The number of surjections from an nn-element set onto a 2-element set is found by counting all functions and subtracting the two constant functions. The answer is 2n−22^n - 2, which corresponds to option (B).

A surjection (onto function) from set AA to set BB means every element of BB must have at least one preimage in AA. Here BB has exactly two elements: aa and bb. So we need every function from AA to BB where both aa and bb appear in the range at least once.

The total number of functions from AA to BB is 2n2^n, because each of the nn elements in AA can independently map to either aa or bb.

Among these, the functions that are not surjective are exactly those that miss at least one element of BB. Since BB has only two elements, a function misses aa if it maps every element of AA to bb — that's exactly one function (the constant function f(x)=bf(x)=b). Similarly, a function misses bb if it maps everything to aa — that's one function. There is no function that misses both aa and bb simultaneously (that would require mapping to nothing), so these two are the only non-surjective functions.

Thus the number of surjections is:

Total functions−Functions that miss a−Functions that miss b=2n−1−1=2n−2.\text{Total functions} - \text{Functions that miss } a - \text{Functions that miss } b = 2^n - 1 - 1 = 2^n - 2. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.