Solveeit Logo

Question

Question: If P = {1, 2, 3, 4, 5} and Q = {a, b, c}, then number of onto function from P to Q is...

If P = {1, 2, 3, 4, 5} and Q = {a, b, c}, then number of onto function from P to Q is

A

150

B

144

C

147

D

None of these

Answer

150

Explanation

Solution

Number of total functions

= 35 (since each of 1, 2, 3, 4 or 5 can correspond to any of a, b or c)

Number of function that correspond to only one element of B = 3C1x153C_{1}x1^{5} and, number of functions which correspond to two or less element of B = 3C2x253C_{2}x2^{5}.

∴ Total “onto” function = 35 - 3C2x25+3C1x153C_{2}x2^{5} +^{3}C_{1}x1^{5}

=243 – 96 + 3 = 150

(3C1x15(^{3}C_{1}x1^{5} is repeated twice in ).