Take a test Sign in 中文
← Exercise 552 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 552
Twelve people sit in $12$ seats in a line. They all get up and reseat themselves, each sitting in her own seat or a seat next to it. In how many ways can they be reseated?
← Back to Problem 552
Solution
  1. Let $f(n)$ be the number of reseatings of $n$ people in a row. Whoever sits in the last seat came from seat $n$ or $n-1$.
  2. If the last person stays, the others reseat in $f(n-1)$ ways. Otherwise the person from seat $n-1$ moves to seat $n$, so the last person must move to seat $n-1$, and the rest reseat in $f(n-2)$ ways.
  3. So $f(n)=f(n-1)+f(n-2)$ with $f(1)=1$, $f(2)=2$, giving $1,2,3,5,8,13,21,34,55,89,144,\boxed{233}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year