Mathematics (JEE)Very hardGATE CS
How many functions f : {1, 2, 3, 4, 5} → {1, 2, 3, 4, 5} satisfy f(f(x)) = x for every x?
- A. 120
- B. 32
- C. 52
- D. 26
Correct answer: D. 26
Such functions are involutions: they pair up some elements and fix the rest. Counting by the number of 2-cycles k (0, 1 or 2): 1 + 10 + 15 = 26.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5, 6} satisfy A ∪ B = {1, 2, 3, 4, 5, 6}?
- A cube has 8 vertices, two vertices adjacent if they share an edge. In how many ways can 3 vertices be chosen so that no two chosen…
- How many 5-element subsets of {1, 2, ..., 10} contain no two elements that differ by exactly 2?
- What is the remainder when C(30, 15) is divided by 7?
- How many distinct four-letter words (meaningful or not) can be formed using letters taken from the word BANANA, where the letters may be…
- How many six-letter words over the alphabet {A, B, C} use every one of the three letters at least once and contain no two adjacent…