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 3 of 4: Rewrite E[X] using the counts p_n(k)
In plain words
This is just the standard formula for the average of a random variable, written out using the counts that the problem already provides.
Detailed analysis
On the other hand, by definition, for exactly of the equally likely permutations, so , and the expectation of is .