Mathematics (JEE)Very hardJEE Advanced

The number of functions f from {1, 2, 3} to itself satisfying f(f(x)) = f(x) for all x is:

  1. A. 10
  2. B. 6
  3. C. 9
  4. D. 27

Correct answer: A. 10

Such f are idempotent: choose the image set of size k and map the other elements into it: C(3,1)·1² + C(3,2)·2¹ + C(3,3)·1 = 3 + 6 + 1 = 10.

More Sets, Relations and Functions questions

Exams that ask this topic