Mathematics (JEE)Hard

How many functions f from {1, 2, 3, 4} to itself satisfy f(f(x)) = f(x) for every x?

  1. A. 192
  2. B. 41
  3. C. 49
  4. D. 36

Correct answer: B. 41

Such f fixes every value it takes. Choose the image set S (nonempty), then map the 4 points into S with each element of S mapped to itself: for each |S| = k, C(4,k)·k^(4−k). Summing gives the total. Enumerating confirms the key.

More Permutations, Combinations and Probability questions

Exams that ask this topic