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 = 3C1x15 and, number of functions which correspond to two or less element of B = 3C2x25.
∴ Total “onto” function = 35 - 3C2x25+3C1x15
=243 – 96 + 3 = 150
(3C1x15 is repeated twice in ).