Question 20 of 162MediumMCQ
The number of functions f:1,2,3,4→a,b,c, which are not onto, is :
Solutions · 1
Official solution
Total number of functions from 1,2,3,4 to a,b,c is
34=81
Now we find the number of onto functions.
For a function to be onto, all the three elements a,b,c must appear as images of elements of 1,2,3,4.
Using inclusion-exclusion principle:
Total functions: 34=81
Let
A = functions missing a
B = functions missing b
C = functions missing c
If one element is missing, then the function goes into only 2 elements.
So,
∣A∣=∣B∣=∣C∣=24=16
Hence,
∣A∣+∣B∣+∣C∣=3×16=48
If two elements are missing, then all 4 elements of domain must go to only one element of codomain.
So,
∣A∩B∣=∣B∩C∣=∣C∩A∣=14=1
Thus,
∣A∩B∣+∣B∩C∣+∣C∩A∣=3
If all three are missing, that is impossible, so
∣A∩B∩C∣=0
Therefore, number of functions which are not onto is
∣A∪B∪C∣=48−3=45
So the correct answer is
45
Hence, Option B is correct.
Answer the question to unlock