Q. Let and . Then, the number of surjections from into is

 637  152 Relations and Functions - Part 2 Report Error

Solution:

Here, and
Since, every element of domain has two choices i.e., a or .
Number of functions will be .
Also, there will be a case when all the elements of will map to only then, since is left which do not have pre image in .
In such a case, the function from to is not onto.
Similarly, when all elements of will map to bonly, then also the function from to is not onto.
Total number of onto functions is .