Mathematics (JEE)Very hardCMI entrance

How many functions f: {1, 2, 3, 4} → {1, 2, 3, 4} satisfy f(f(x)) = f(x) for every x?

  1. A. 40
  2. B. 64
  3. C. 24
  4. D. 41

Correct answer: D. 41

f∘f = f means every value is a fixed point. Choose the image set of size k (C(4,k) ways) and send the other 4 − k points to its k elements: Σ C(4,k)·k^(4−k) = 4 + 24 + 12 + 1 = 41. Option 40 forgets the identity map.

More Permutations, Combinations and Probability questions

Exams that ask this topic