Question
Mathematics Question on types of functions
The number of surjective functions from A to B where A=1,2,3,4 and B=a,b is
A
14
B
12
C
2
D
15
Answer
14
Explanation
Solution
If A and B are two sets having m and n elements such that
1≤n≤m=∑r=1n(−1)n−rnCrrm
=∑r=1n(−1)2−r2Cr(r)4
=(−1)2−12C1(1)4+(−1)2−22C2(2)4=−2+16
=14