we have a row of $n$ seats and $m$ are already randomly occupied. You select an empty seat. What is the probability that your $2$ friends coming afterwards will sit next to you? i.e. there are either $2$ empty seats on your left or $2$ on your right or you are in the middle of $2$ empty seats.
we know that all possible compilations for are $\binom{n}{m}$. I think the question is what is the possibility i selected the negative event i.e. a seat with no free seat next to it or a seat with only one empty seat next to me. The question is how to calculate these probabilities?
I follow completely your new hint but still I cannot see how to calculate these 2 probabilities!!
Hint:
Compare and contrast the differences between the problems where
You pick a seat first and then the $m$ other people select their seats
The $m$ other people select their seats first and then you select your seat
Extended hint: (since it apparently wasn't enough)
Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.
So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.
Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:
Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:
Final hint:
In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:
$$\frac{\binom{K}{k}\binom{N-K}{n-k}}{\binom{N}{n}}$$
This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.
Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.
Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)
The following assumes that $n\geq 5$. The cases for $n\leq 4$ can be handled manually very quickly by hand.
$~$
$~$
$~$