Question:
Let $A=\{a, b, c\}$ and $B=\{1,2,3,4\}$. Then the number of elements in the set $C=\{f: A \rightarrow B \mid 2 \in f(A)$ and $f$ is not one-one $\}$ is
Solution:
The desired functions will contain either one element or two elements in its codomain of which ' 2 ' always belongs to $f(A)$.
$\therefore$ The set $B$ can be $\{2\},\{1,2\},\{2,3\},\{2,4\}$
Total number of functions $=1+\left(2^{3}-2\right) 3=19$.
Click here to get exam-ready with eSaral
For making your preparation journey smoother of JEE, NEET and Class 8 to 10, grab our app now.