Mathematics (JEE)Moderate

A function f from {1, 2, 3, 4} to itself is chosen uniformly at random among all 4⁴ functions. What is the expected number of points x with f(x) = x?

  1. A. 1
  2. B. 1/4
  3. C. 4
  4. D. 2

Correct answer: A. 1

Each point is fixed with probability 1/4, so by linearity the expected number of fixed points is 4 · 1/4 = 1. The value 4 counts all points without checking the fixing condition.

More Permutations, Combinations and Probability questions

Exams that ask this topic