Question Details

Let A = {1, 2,3,…. n} and B = { a, b}. Then the number of surjections from A into B is

Options

A

ⁿP2

B

2n - 2

C

2n - 1

D

None of these

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 A to set B step-by-step.

Step 1: Understand the given sets
The domain set is A={1,2,3,,n}, which contains n elements.
The codomain set is B={a,b}, which contains 2 elements.

Step 2: Find the total number of possible functions
For any function from set A to set B, each of the n elements in set A has exactly 2 choices in set B (either a or b).
Therefore, the total number of functions from A to B is given by:
2n

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 B. Since set B has only two elements {a,b}, a function fails to be surjective in only two cases:
1. All elements of set A map to a (i.e., f(x)=a for all xA).
2. All elements of set A map to b (i.e., f(x)=b for all xA).
These are the constant functions. Thus, there are exactly 2 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:
Number of surjections = 2n - 2

Unlock Our Free Library

Access expert-curated educational resources and study materials—completely free.

Discover more resources

You may also like

Mock Tests

View All
  • JEE
  • intermediate
  • 3 hours
  • chemistry, mathematics, physics

  • JEE
  • intermediate
  • 3 hours
  • chemical engineering, mathematics, physics