I have the numbers $\{1, 2, 3, 4\}$.
How would you find the number of arrangements in which only $3$ of the numbers are in their original positions? What about only $2$ in their original positions? Only $1$? None?
For the none case, I know this is just same as finding number of derangements. However, is there actually a method to calculate this? I could not find any online. Do you just have to brute force it?