This post originally appeared on the Brilliant blog on 9/2/2012.
Key Techniques: Recurrence Relation; Bijection, Injection, Surjection.
Solution 1: Let be the number of ways to seat students in seats as specified in the question. For a group of students there are ways to sit the first students. With the restriction that each of the students must be seated next to another student, they can either occupy the first seats, leaving the last seat empty, or the last seats, leaving the first seat empty. Thus,. Clearly, , which gives, . So, we have, .
Solution 2: We create a bijection between the number of ways for the students to sit, and the number of sequences of length 7 where each term is either L or R. (Showing Injection) Given a possible way of seating, we will ignore the first person, and then consider whether the rest chose to sit on the Left (L), or the Right (R) of the seated row of students. This leads to a sequence of length 7 with terms L and R. Given two distinct ways of seating, at least one student made a different decision, so the 2 sequences will be different.
(Showing Surjection) Conversely, given a sequence of length 7 with terms R, L, we associate the ith student with the i-1 term, temporarily ignoring the first student. We proceed to seat the students starting from the back as follows: if their associated term is R, they will take the Rightmost vacant seat, if their associated term is L, they will take the Leftmost vacant seat. This eventually leaves 1 vacant seat, where we will place the first student. Given 2 sequences, looking from the back if the first differ in the i-1 term, then the seating arrangement of the ith student would be different.
Hence, we have a Bijection. It remains to count the number of sequences of length 7, where each term is either L or R. By the product rule, this is equal to .
Answer: 128
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments