Question
Mathematics Question on Relations and functions
If A=x∣x∈N,x≤5,B=x∣x∈Z,x2−5x+6=0, then the number of onto functions from A to B is
A
30
B
2
C
32
D
23
Answer
30
Explanation
Solution
A=\left\\{1,2,3,4,5\right\\}
B=\left\\{2,3\right\\}
number of onto functions from a set to a set containing 2 elements is
=2n−2
=25−2=30