Let A = {1, 2, 3, ...n} and B = {a, b}. Then the number of onto functions from A into B is
A
(n−1)!
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
nP2
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C2n−2 Given(A|=nand(B|=2TotalnumberoffunctionsfromAtoB=2nConsidertheconstantfunctionsf(x)=aforallx∈Aandg(x)=bforallx∈AThesetwofunctionsareinto,i.e.,theyarenotonto.∴NumberofontofunctionsfromAtobis2n−2.