Mathematics (JEE)HardJEE Main pattern

The number of functions f: {1, 2, 3, 4} → {1, 2, 3, 4} such that f(i) ≠ i for every i is:

  1. A. 9
  2. B. 81
  3. C. 24
  4. D. 256

Correct answer: B. 81

f need not be a bijection, so each i independently has 3 allowed images: 3⁴ = 81. 9 is the number of derangements, which counts only the bijections with no fixed point.

More Sets, Relations and Functions questions

Exams that ask this topic