<p>Proceed only if you want to learn (or already know) Eulers formula for combinations with repetitions.</p>
<p>Very long explanations, but they can be condensed to just a few lines.</p>
<p>1.
6 chairs, 2 people.</p>
<p>Lets mark a filled chair V, an empty one <em>.
All possible allowed (no sitting next to each other!!) arrangements can be obtained from
V</em>V (Filled chair, Empty chair, Filled chair)
by putting any of 3 Remaining Empty Chairs (REC) into three possible places:
in front of V<em>V (place 1),
or between V and V (place 2) in addition to the Empty chair already in that place,
or after V</em>V (place 3).
So, there are three places where REC can be dumped.</p>
<p>All three REC must be used.
If all three go in place 1, then 111 corresponds to this arrangement.
If two go in place 1 and one goes in place 2, then 112 corresponds.</p>
<p>We need to find the number of 3-digit combinations of digits 1, 2, and 3 with repetition, that is, any digit can be used more than once.
Combinations, of course, are unordered: 112 is the same as 121.</p>
<p>According to Euler the number of k-combinations with repetitions from n objects is
C(n+k-1, k).
In our case k = 3, n = 3.
C(3+3-1, 3) = C(5, 3) = 10.
There are 10 ways to seat 2 people in a row of 6 chairs, with no two sitting next to each other.</p>
<p>2.
12 chairs, 5 people.</p>
<p>V<em>V</em>V<em>V</em>V at least one empty chair has to be between these 5 unfriendlies.
There are 3 REC: 12 9 = 3.
Possible places where REC can be moved:
1 V 2 V 3 V 4 V 5 V 6.
6 places altogether.
A couple of examples:
113 two of REC in place 1, one in place 3,
666 all three REC in place 6.</p>
<p>We are looking for 3-digit combinations of digits 1, 2, 3, 4, 5, and 6 with repetition.
k = 3, n = 6.
C(6+3-1, 3) = C(8, 3) = 56.
There are 56 ways to seat 5 people in a row of 6 chairs, with no two sitting next to each other.</p>
<p>3.
Condensed.
10 chairs, 5 people.
(5)2 1 = 9 Filled and separating chairs.
10 9 = 1 REC.
5 + 1 = 6 places to put REC.
k = 1, n = 6.
C(6+1-1, 1) = C(6, 1) = 6.
The only REC can be placed in front of the row, or to the left of it, or in any of the 4 gaps between 5 people:
1 + 1 + 4 = 6. It works!</p>