Question
Question: Let A \[=\left\\{ {{x}_{1}},{{x}_{2}},.......,{{x}_{7}} \right\\}~\]and B \[=\left\\{ {{y}_{1}},{{y}...
Let A =\left\\{ {{x}_{1}},{{x}_{2}},.......,{{x}_{7}} \right\\}~and B =\left\\{ {{y}_{1}},{{y}_{2}},{{y}_{3}} \right\\}~ be two sets containing seven and three distinct elements respectively. Then the total number of functions f: A→B that are onto. If there exist exactly three elements in A such that f(x) =y2 is equal to:
Solution
HINT: - Onto function is a function which has range equal to co-domain which means that every element in the co-domain is mapped by at least one of the elements of the domain.
The formula for selecting r different objects from n different objects is given as follows
nCr=r!(n−r)!n!.
Complete step-by-step solution -
As mentioned in the question, for finding the total number of functions which satisfy all the conditions, we follow the following procedure that is
First of all, out of 7, 3 elements from set A are mapped to y2 . Therefore, for making the functions onto, all the elements from set B have to be mapped and as they all are functions then all elements in the set A also should be mapped.
Hence, the remaining 4 elements of the set A have to be mapped with any of the two elements of set B and for doing this we will use the formula given in the hint as
There are 2 choices for all the 4 elements and we can write that as