Ten people are sitting in a row of ten chairs, chewing gum. Each person spits out his or her gum and places it either under his or her own chair or under an immediately adjacent chair. How many ways can this happen such that every chair ends up with exactly one piece of gum under it?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Good explanation.
I believe that instead of "choose any of the people", you actually mean "choose the nth person".
Ditto, Actually this is a simpler version of the reasoning that involves recursion of derangments.
Perhaps the most important thing to realize here is that if person A sticks his/her gum under the chair of B then B MUST stick his/her gum under the chair of A if there is to be only one gum under every chair otherwise first/last person would have no gum under his/her chair. Thus a given person sticks his/her gum below his/her own chair or two people simply "exchange" their gums forming a pair. There can be minimum 0 such pairs or maximum 5 pairs. Consider each pair to be a single object and every person who sticks gum below his/her chair also as a single object. If there are r such pairs (call them double objects), then there would 1 0 − 2 r single objects. Hece there would be total 1 0 − 2 r + r = 1 0 − r total objects which can be arranged in 1 0 − r C r ways. Hence in total there are:
\sum_{r=0}^{5}^{10-r}C_{r}=\boxed{89} ways.
Fibonacci series! Try it with two seats, then three, then four seats.
For each seat you add, you have the same set as before ( he puts it on his own seat - the n-1 set) plus a smaller set ( in which he puts his gum on his neighbors seat).
Since the second case "takes away" the last two seats ( the have to swap), it's the same as the ( n-2) set.
For each chair added:
F(n) = F(n-1) + F(n-2)
N | 1 | 2 | 3 | 4 | 5 |
1 | - | V | - | - | V |
2 | - | ^ | V | - | ^ |
3 | - | - | ^ | V | V |
4 | - | - | - | ^ | ^ |
b^2
Problem Loading...
Note Loading...
Set Loading...
Generalize this so g n is the number of ways this happens if there are n people.
Then, choose the nth person. If he sticks his gum under his own chair, then the case simplifies to that if there are n-1 people.
If he puts it underneath an adjacent chair, then the two people swap and it continues with n-2 people.
Then, we get g n = g n − 1 + g n − 2 .
We find g 1 = 1 and g 2 = 2 .
Finally, using our recursion, we find g 1 0 = 8 9 .