Mathematics (JEE)Very hardJEE Advanced

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

  1. A. 25
  2. B. 26
  3. C. 11
  4. D. 16

Correct answer: B. 26

Such f is a permutation made of fixed points and swaps: the identity (1), one swap (C(5, 2) = 10) or two swaps (5 × 3 = 15). Total 26. Forgetting the identity gives 25; forgetting the two-swap case gives 11.

More Sets, Relations and Functions questions

Exams that ask this topic