Problem

Source: IMO 1987, Day 1, Problem 1

Tags: counting, derangement, permutations, combinatorics, IMO, IMO 1987, double counting



Let $p_n(k)$ be the number of permutations of the set $\{1,2,3,\ldots,n\}$ which have exactly $k$ fixed points. Prove that $\sum_{k=0}^nk p_n(k)=n!$.