Question
Question: Let \[A=\left\\{ {{x}_{1}},{{x}_{2}},{{x}_{3}}.....{{x}_{7}} \right\\},B=\left\\{ {{y}_{1}},{{y}_{2}...
Let A=\left\\{ {{x}_{1}},{{x}_{2}},{{x}_{3}}.....{{x}_{7}} \right\\},B=\left\\{ {{y}_{1}},{{y}_{2}},{{y}_{3}} \right\\}. The total number of functions f:A→B that are onto and there are exactly three-element x in A such that f(x)=y2 is equal to
(a) 490
(b) 510
(c) 630
(d) None of these
Solution
Hint: In order to solve this question, we should have some knowledge of onto functions, that is, for a function A→B, if all elements of B have at least one element matching with A, then the function is said to be onto function. Also, we need to know that whenever we have to choose r out of n elements, then we apply a formula of combination that is nCr=r!(n−r)!n!.
Complete step-by-step answer:
In this question, we have been asked to find the total number of functions f:A→B, where A=\left\\{ {{x}_{1}},{{x}_{2}},{{x}_{3}}.....{{x}_{7}} \right\\},B=\left\\{ {{y}_{1}},{{y}_{2}},{{y}_{3}} \right\\}, that are onto and there are exactly three elements in A such that f(x)=y2. To solve this question, we should know that onto functions are those, for f:A→B, all the elements B will have at least one element in A. And, we also know that for choosing r out of n items, we apply the formula of combination, that is,
nCr=r!(n−r)!n!
Now, we have been given that there are 3 elements in A which belongs to y2 elements of set B. So, to choose 3 elements which belong to y2 from A can be chosen by the formula of combination for n = 7 because A has 7 elements and r = 3 because 3 elements of A belongs to y2, we get,
7C3=3!(7−3)!7!
7C3=3!4!7!
7C3=3×2×17×6×5
7C3=35
Now, after choosing 3 elements from A, we have been left with 4 elements that will either belong to y1 or y3. So, for each of the 4 elements, there are 2 possible ways to satisfy f:A→B. So, the total number of ways of 4 elements of A having image with y1 or y3 is 24. Now, we know that these cases will include those cases in all 4 elements that will have the image as either y1 or y3 which dissatisfies the condition of onto, that are 2 cases. And we want to generate an onto function, so to find the number of ways of creating onto function, we will subtract 2 from 24. So, we get,
=24−2
=16−2
=14
Hence, the total number of functions f:A→B, that are onto and there are exactly 3 elements is A which belongs to f(x)=y2 are
=14×35
=490
Hence, option (a) is the right answer.
Note: While solving the question, the possible mistake one can make is a calculation or by not subtracting 2 from 24, which are the number of ways of all elements belonging to any one of y1 or y3 and all possible ways of combining the remaining 4 elements to find y1 or y3 respectively will give us the wrong answer.