Prove or disprove that $\sum_{k=0}^n (k-1)^2 p_n(k) = n!$ for $n\ge 2,$ where $p_n(k)$ is the number of permutations of $\{1,\cdots, n\}$ with exactly $k$ fixed points.
I know how to show that $\sum_{k=0}^n p_n(k) = n!$ by counting the total number of fixed points among all permutations of length n in two different ways. But the method for this doesn't seem to work when showing that $\sum_{k=0}^n (k-1)^2 p_n(k) = n!.$ I know also that $p_n(k) = {n\choose k}p(n-k)$ and $kp_n(k) = np_{n-1}(k-1)$, where $p(n-k)$ is the number of derangements of length $n-k$. So maybe some sort of induction using these recurrences will help?
Hint: Write this as $$ \sum_k k(k-1)p_k(n) -\sum_k kp_k(n)+\sum_k p_k(n) $$ You already found a neat double-counting argument which shows that the last sum is $n!$. There exist clever double-counting arguments which allow you to simplify the first two sums as well.
For a further hint, see Prove that $\sum_{k = r}^{n} k(k - 1)(k - 2)\cdots(k - r+ 1)D_n(k) = n!$.