I wish to find the number of derangements for an $n$-membered set. I am not familiar with formal language in combinatorics, so I will just use the nice analogy that was given to me:
There are $n$ chairs at a table, each with a name card wit hthe name of one of $n$ people (with one name card for each person). The $n$ people sit at the table. Let $D_n$ be the number of ways the $n$ people can sit at the table such that not a single person is sitting in the correct seat. ($D_n$ is called the number of derangements of an $n$-member set.)
I am also told to use the Principle of Inclusion-Exclusion to find an expression for $D_n$, and here is my attempt:
From the $n$ people, we at first choose one of them to necessarily be seated incorrectly. There are $n$ ways to do so. There are $n-1$ ways that this person can be seated. Now that this person is seated, there are $(n-1)!$ ways to permutate the others. Our running total is $$n(n-1)(n-1)!.$$
Note that some people other than the one we originally chose may be seated incorrectly, and thus we reconcile accordingly. We see that the permutations where two people are necessarily seated incorrectly have been overcounted twice, so we count and subtract. There are $\dbinom{n}{2}$ ways to choose two people to be seated incorrectly, $\dbinom{n-2}{2}$ ways to seat these two people, $2$ ways to permutate these two people, and $(n-2)!$ ways to permutate the rest. Our running total is now $$n(n-1)(n-1)!-\dbinom{n}{2}\dbinom{n-2}{2}(n-2)!\cdot2.$$
Note again that still more people than we have now counted may be seated incorrectly. With similar reasoning as above, we see that the permutations where three people are necessarily seated incorrectly have been counted 3 times by the first expression and $-\dbinom{3}{2}=3$ times (negative as shown by the minus sign in our running total from just above), and after a while (with induction?) we go on to find that the expression is $$\sum^n_{k=1}\binom{n}{k}\binom{n-k}{k}(n-k)!k!=\sum^n_{k=1}\frac{n!}{k!}\binom{n-k}{k}k!$$ $$=n!\sum^n_{k=1}\binom{n-k}{k}.$$
The final expression is quite clean, in my opinion, but the expression is incorrect. I don't believe that the problem is in my algebra because I've double-checked, and instead is in my counting, but I could be wrong. What did I overlook?