Question
Question: Let $A = \{a, b, c, d, e\}$ and $B = \{1, 2, 3\}$. Then the number of onto functions from set A to s...
Let A={a,b,c,d,e} and B={1,2,3}. Then the number of onto functions from set A to set B is

150
180
210
250
150
Solution
To find the number of onto functions from set A to set B, we use the formula for the number of surjective functions.
Let n=∣A∣ be the number of elements in set A, and m=∣B∣ be the number of elements in set B. In this question, A={a,b,c,d,e}, so n=5. And B={1,2,3}, so m=3.
The number of onto functions from a set of n elements to a set of m elements is given by the Principle of Inclusion-Exclusion:
∑k=0m(−1)k(km)(m−k)n
Substitute n=5 and m=3 into the formula: Number of onto functions = (03)(3−0)5−(13)(3−1)5+(23)(3−2)5−(33)(3−3)5 =(03)35−(13)25+(23)15−(33)05
Now, calculate each term:
- (03)35=1×243=243
- (13)25=3×32=96
- (23)15=3×1=3
- (33)05=1×0=0 (since 5≥1)
Substitute these values back into the expression: Number of onto functions = 243−96+3−0 =147+3 =150
Thus, there are 150 onto functions from set A to set B.