The numbers $1, 2, \ldots, n$ are permuted. How many different permutations exist such that none of the numbers $1, 2, 3$ are adjacent when $n>4$?
Solution: $4,5, \ldots, n$ can be shuffled in $(n-3)!$ ways and $3!$ ways to arrange $1,2,3$. There are $n−2$ slots that are separated by $n−3$ shuffled numbers, and if we insert each of $1,2,3$ into a different slot, they cannot be adjacent. There are $\binom{n - 2}{3}$ ways to do this.
Why is it $\binom{n-2}{3}$ ways? I don't get the explanation.
Once you arrange $4,5,...,n$ in order, you have to put each of $1$, $2$ and $3$ either in a gap between two other numbers, or at one end of the list. But if you put one of them in a particular gap, or at a particular end, neither of the others can be put in the same place, or they would be adjacent in the final list.
Therefore you need to choose three different places to put $1,2,3$. There are $n-4$ gaps between the other numbers, and two additional places at the end, so $n-2$ places to choose from. The number of ways to choose $3$ things out of $n-2$ is $\binom{n-2}3$.