Let A = {1, 2,3,…. n} and B = { a, b}. Then the number of surjections from A into B is
Correct Answer :
2n - 2
Solution :
The correct option is 2n - 2.
Let us understand how to find the number of onto functions (surjections) from set to set step-by-step.
Step 1: Understand the given sets
The domain set is , which contains elements.
The codomain set is , which contains elements.
Step 2: Find the total number of possible functions
For any function from set to set , each of the elements in set has exactly choices in set (either or ).
Therefore, the total number of functions from to is given by:
Step 3: Identify the non-surjective (into) functions
A function is not surjective (not onto) if its range does not cover the entire codomain set . Since set has only two elements , a function fails to be surjective in only two cases:
1. All elements of set map to (i.e., for all ).
2. All elements of set map to (i.e., for all ).
These are the constant functions. Thus, there are exactly such functions that are not surjective.
Step 4: Calculate the number of surjections
To find the number of surjections, we subtract the number of non-surjective functions from the total number of functions:
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Crey. Perfect for teachers and institutes.
Copyright © 2026 Crey. All Rights Reserved.