What are the total number of ways to arrange $N$ objects such that first $K$ are deranged? That is, how many permutations of $N$ objects do not fix the first $K$?
I know the general formula for the derangement of $N$ objects. Is there any way the above problem be reduced to this one?
Let $S$ be the set of all permutations of the $N$ objects, and let $E_{i}$ be the set of permutations which fix the element $i$, for $1\le i\le k$.
Then
$$\left\vert \overline{E_{1}}\cap\cdots\cap\overline{E_{n}}\right\vert=\vert S\vert-\sum_{i}\vert E_{i}\vert+\sum_{i<j}\vert E_{i}\cap E_{j}\vert-\cdots $$
$$=N!-\binom{k}{1}(N-1)!+\binom{k}{2}(N-2)!-\cdots+(-1)^k\binom{k}{k}(N-k)!.$$