Mathematics (JEE)Very hardJEE Main · JEE Advanced

The number of functions f : {1, 2, 3, 4, 5} → {1, 2, 3, 4, 5} satisfying f(f(x)) = x for every x is:

  1. A. 16
  2. B. 10
  3. C. 26
  4. D. 120

Correct answer: C. 26

Such an f is a bijection made only of fixed points and swapped pairs. With 0 pairs: 1; 1 pair: ⁵C₂ = 10; 2 pairs: 5 × 3 = 15 (choose the fixed point, then pair the other four in 3 ways). Total 1 + 10 + 15 = 26.

More Permutations, Combinations and Probability questions

Exams that ask this topic