Function f:{1,2,3,4,5}→{1,2,3,4,5} is said to be nasty if there do not exist distinct a,b∈{1,2,3,4,5} satisfying f(a)=b and f(b)=a. How many nasty functions are there?
A
1950
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
2025
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
3125
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
1250
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A1950 Total number of functions =55=3125
Number of functions whose two elements mapping to each other =5C2⋅53=1250
Some pairs are counted twice like {f(1)=2,f(2)=1},{f(1)=2,f(2)=1,f(3)=4,f(4)=3}
Number of pairs which are over count =5C4⋅3⋅51=75
Required number of functions =3125−(1250−75)=1950