Problem 1
Let be the number of permutations of the set , , that have exactly fixed points. Prove that . (A permutation of a set is a one-to-one mapping of onto itself; an element of is a fixed point of if .)
Step 2 of 4: Linearity of expectation gives E[X] = 1
In plain words
Linearity of expectation lets us add up each element's individual chance of being fixed, even though the events are not independent.
Detailed analysis
Let denote the (random) number of fixed points of , so , a sum of indicator variables. Linearity of expectation holds regardless of dependence between the indicators, so .