How many onto (or surjective) functions are there from an n− element (n≥2) set to a 2-element set?
A
2n
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
2n−1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
2n−2
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
2(2n−2)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C2n−2 Let n=2. There are only 2 onto functions as shown below:
For, n=2
Option (a) 2n=22=4
Option (b) 2n−1=22−1=3
Option (c) 2n−2=22−2=2
Option (d) 2(2n−2)=2(22−2)=4
So only option (c) gives correct answer.
Alternate method:
The number of onto functions from a set A with m elements to set B with n elements where n<m is given by nm−nC1(n−1)m+nC2(n−2)m……+nCn−11m
Here, m=n=2
So number of onto functions =2n−2C11m =2n−2
which is choice (c).