permutation combination

10 women are sitting in a row. All of them get up and reseat themselves in a way such that each woman can sit either in the chair where she was previously sitting or in the chair right next to hers. In how many ways can the women reseat themselves?

1 Answers

66
kaymant ·

If f(n) denotes the number of ways that n women can sit as prescribed in n chairs, then its easy to see that

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

(the same recurrence satisfied by Fibonacci sequence!!) Also, f(1) = 1 and f(2) = 2. As such one gets f(10) = 89.

Your Answer

Close [X]