Let \(A=\{x_1, x_2, \ldots, x_7\}\) and \(B=\{y_1, y_2, y_3\}\) be two sets containing seven and three distinct elements respectively. Then the total number of functions \(f: A \to B\) that are onto, if there exist exactly three elements \(x\) in \(A\) such that \(f(x)=y_2\), is equal to :
Show Hint
Choose which 3 elements go to \(y_2\); the other 4 must map onto \(\{y_1,y_3\}\).
Exactly three elements of A map to \(y_2\): choose them in \({}^7C_3\) ways. The remaining 4 elements must map to \(y_1\) or \(y_3\) (not \(y_2\)), and the function must be onto, so both \(y_1\) and \(y_3\) must be used. Number of maps of 4 elements into \(\{y_1,y_3\}\) is \(2^4=16\); those that miss \(y_1\) or \(y_3\) are 2. So onto maps: \(16-2=14\). Total \(=14\cdot {}^7C_3\). Answer: (4) \(14\cdot {}^7C_3\)