I am having trouble figuring out a permutation problem:
"In how many ways can $5$ mathematicians be put into $8$ offices, where each mathematician has an office to themselves? What if only $2$ of the mathematicians cannot share an office with anyone?"
So I'm thinking for the first part $n=8$ and $k=5$. So the number of ways would be $8\times7\times6\times5\times4 = 6720$
But how would you figure out how many permutations there are if $2$ are allowed to share but the rest cannot?