The number of surjective functions from a set A={1,2,3,4} onto a set B={1,2} is
A
12
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
14
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
16
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B14 Total number of functions from A to B=24 The constant functions f(x)=1 and f(x)=2 are the only functions which are not surjective. ∴ Number of surjective functions =24−2=14
Alternatively, If X has m elements and Y has n elements, then the number of surjective functions f:X→Yis given by n∑k=0(−1)knCk(n−k)m Here, m=4,n=2 ∴ Number of surjective functions =16−2+0=14