Chew on this Gum...

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?


The answer is 89.

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.

3 solutions

Alex Wang
Nov 2, 2014

Generalize this so g n 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 g_n=g_{n-1}+g_{n-2} .

We find g 1 = 1 g_1=1 and g 2 = 2 g_2=2 .

Finally, using our recursion, we find g 10 = 89 g_{10}=\boxed{89} .

Good explanation.

I believe that instead of "choose any of the people", you actually mean "choose the nth person".

Calvin Lin Staff - 6 years, 7 months ago

Ditto, Actually this is a simpler version of the reasoning that involves recursion of derangments.

Chandrachur Banerjee - 6 years, 6 months ago
Snehal Shekatkar
Nov 6, 2014

Perhaps the most important thing to realize here is that if person A A sticks his/her gum under the chair of B B then B B MUST stick his/her gum under the chair of A 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 0 such pairs or maximum 5 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 r such pairs (call them double objects), then there would 10 2 r 10-2r single objects. Hece there would be total 10 2 r + r = 10 r 10-2r+r=10-r total objects which can be arranged in 10 r C r ^{10-r}C_{r} ways. Hence in total there are:

\sum_{r=0}^{5}^{10-r}C_{r}=\boxed{89} ways.

Brett Bolen
Nov 2, 2014

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:

  • Case 1 Put own own chair, which is the same as the F(n-1),
  • Case 2 put on neighbor's chair, which takes away the last two chairs. This reduces to the F(n-2) case.

F(n) = F(n-1) + F(n-2)

  • '-' - put on own chair
  • 'X' - swap with neighbor's chair
N 1 2 3 4 5
1 - V - - V
2 - ^ V - ^
3 - - ^ V V
4 - - - ^ ^

b^2

brett bolen - 6 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...