Q.

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

1 P2n  
2 2n-2  
3 2n-1  
4 None of these  

Ans.

(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