Let A={1,2,3,…,n} and B={a,b}. Then the number of surjections from A into B is:
(2)
Ans. 2n-2
Explanation:
Each element in A can map onto any one of the two elements of B.
Total possible functions =2n
Total number of surjections =2n-2