Recurrence in sight?

Each of 10 10 friends has a ticket to one of ten chairs in a row at a theater. How many ways are there to seat the students so that each student sits either in the chair specified on his/her ticket or in one right next to it? Each chair is to be occupied by exactly one student.


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.

2 solutions

Stephen Mellor
Jan 11, 2018

Firstly, assume that there is someone in the middle of the row (seat N N ), who chooses to sit in seat N 1 N-1 . This forces the person in seat N 1 N-1 to change seats. If they sit in seat N 2 N-2 , then surely this process repeats, with each person in seat k k forced to sit in seat k 1 k-1 . This would therefore create a problem as the person assigned seat 1 1 would then have nowhere to sit.

Therefore, for every person assigned to seat a a that chooses to sit in seat b b , the person assigned seat b b must sit in seat a a .

Now we have to consider how many pairs of people choose to swap seats with somebody next to them. The number of pairs of seat-swappers is at least 0, and at most 5. If there were 0 pairs, there would be ( 10 0 ) = 1 \binom{10}{0} = 1 possibility (everyone sitting in their assigned seat). For m m pairs of swappers, there would be ( 10 m m ) \binom{10-m}{m} .

Therefore, ( 10 0 ) + ( 9 1 ) + ( 8 2 ) + ( 7 3 ) + ( 6 4 ) + ( 5 5 ) = 1 + 9 + 28 + 35 + 15 + 1 \binom{10}{0} + \binom{9}{1} + \binom{8}{2} + \binom{7}{3} + \binom{6}{4} + \binom{5}{5} = 1 + 9 + 28 + 35 + 15 + 1 ( 10 0 ) + ( 9 1 ) + ( 8 2 ) + ( 7 3 ) + ( 6 4 ) + ( 5 5 ) = 89 \binom{10}{0} + \binom{9}{1} + \binom{8}{2} + \binom{7}{3} + \binom{6}{4} + \binom{5}{5} = 89

@Stephen Mellor , we really liked your comment, and have converted it into a solution. If you subscribe to this solution, you will receive notifications about future comments.

Brilliant Mathematics Staff - 3 years, 5 months ago

Log in to reply

Thank you for doing so :)

Stephen Mellor - 3 years, 4 months ago
Sathvik Acharya
Jan 4, 2018

Let F n F_n be the number of ways in which n n students can sit in n n seats so that each student sits either in the chair specified on his/her ticket or in one right next to it.

Case 1: When the leftmost student sits on the leftmost seat (his seat on his ticket), observe that the problem changes to n 1 n-1 students and n 1 n-1 seats (the other conditions remain the same). Thus there are F n 1 F_{n-1} seating arrangements for his friends.

Case 2: When the leftmost student sits on sits on the seat right of that assigned to him on the ticket, observe that the person right to him has to sit (no other possibility) on the left seat (the seat of the leftmost person). Now the problem changes to n 2 n-2 students and n 2 n-2 seats (the other conditions remain the same). Thus there are F n 2 F_{n-2} seating arrangements for his friends.

Thus we come to the conclusion F n = F n 1 + F n 2 F_n=F_{n-1}+F_{n-2} and this looks familiar , but in this case you will find that F 3 = 3 F_3=3 and F 4 = 5 F_4=5 (you can work it out for smaller values of n n ). Using the recurrence and the two known terms, you can go up till 10 10 and you will find that F 10 = 89 F_{10}= \boxed {89}

In case 2, wouldn't it be n 2 n-2 rather than n 1 n-1 ?

Stephen Mellor - 3 years, 5 months ago

Log in to reply

Oops! There were a few typos, its edited now. Thank you :)

Sathvik Acharya - 3 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...