Q.
Let A={1,2,3,⋯,n} and B={a,b}. Then, the number of surjections from A into B is
637
152
Relations and Functions - Part 2
Report Error
Solution:
Here, A={1,2,3,⋯,n} and B={a,b}
Since, every element of domain A has two choices i.e., a or b. ∴ Number of functions will be 2n.
Also, there will be a case when all the elements of A will map to a only then, since b is left which do not have pre image in A. ∴ In such a case, the function from A to B is not onto.
Similarly, when all elements of A will map to bonly, then also the function from A to B is not onto. ∴ Total number of onto functions is 2n−2.