Solveeit Logo

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}A = \{a, b, c, d, e\} and B={1,2,3}B = \{1, 2, 3\}. Then the number of onto functions from set A to set B is

A

150

B

180

C

210

D

250

Answer

150

Explanation

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=An = |A| be the number of elements in set A, and m=Bm = |B| be the number of elements in set B. In this question, A={a,b,c,d,e}A = \{a, b, c, d, e\}, so n=5n = 5. And B={1,2,3}B = \{1, 2, 3\}, so m=3m = 3.

The number of onto functions from a set of nn elements to a set of mm elements is given by the Principle of Inclusion-Exclusion:

k=0m(1)k(mk)(mk)n\sum_{k=0}^{m} (-1)^k \binom{m}{k} (m-k)^n

Substitute n=5n=5 and m=3m=3 into the formula: Number of onto functions = (30)(30)5(31)(31)5+(32)(32)5(33)(33)5\binom{3}{0}(3-0)^5 - \binom{3}{1}(3-1)^5 + \binom{3}{2}(3-2)^5 - \binom{3}{3}(3-3)^5 =(30)35(31)25+(32)15(33)05= \binom{3}{0}3^5 - \binom{3}{1}2^5 + \binom{3}{2}1^5 - \binom{3}{3}0^5

Now, calculate each term:

  1. (30)35=1×243=243\binom{3}{0}3^5 = 1 \times 243 = 243
  2. (31)25=3×32=96\binom{3}{1}2^5 = 3 \times 32 = 96
  3. (32)15=3×1=3\binom{3}{2}1^5 = 3 \times 1 = 3
  4. (33)05=1×0=0\binom{3}{3}0^5 = 1 \times 0 = 0 (since 515 \ge 1)

Substitute these values back into the expression: Number of onto functions = 24396+30243 - 96 + 3 - 0 =147+3= 147 + 3 =150= 150

Thus, there are 150 onto functions from set A to set B.