Three different pairs of shoes are placed in a row so that no left shoe is next to a right shoe from a different pair. In how many ways can these six shoes be lined up?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
An L beside an R must be its mate, so no shoe touches two opposite-type shoes; 8 L/R patterns survive, each boundary locking a pair.
Solution
Record each position as or . Whenever an and an are adjacent they must be mates. Since a shoe has only one mate, no shoe can be adjacent to two shoes of the opposite type: the patterns and cannot appear anywhere. Equivalently, every run of identical letters that is not at an end of the row has length at least .
With three 's and three 's, the allowed patterns are:
- one boundary: , ;
- two boundaries: , , , , , .
Now assign actual shoes. Each – boundary forces the two shoes on either side to be a pair.
- One boundary (2 patterns): pick the pair straddling the boundary ( ways). The other two left shoes fill the remaining slots in ways, the other two right shoes fill the remaining slots in ways: per pattern.
- Two boundaries (6 patterns): the two boundaries use two different pairs ( ways to assign them), and the third pair's shoes fill the two remaining slots, one and one , in exactly way: per pattern.
Total: .
The answer is .
Why this works
An adjacency restriction on labeled objects is easier to handle in two layers: first the coarse type pattern (here /), which the restriction almost determines, then the fine assignment, where the restriction becomes a set of forced pairings. Turning "no next to a foreign " into "no or " is the key reformulation.
Alternative approach
Fix the first shoe ( choices, all equivalent by symmetry) and enumerate the rest. If the second shoe is its mate, the third must be one of the remaining shoes of the second's type, and each choice finishes in ways: completions. If the second shoe is of the same type as the first ( choices), each finishes in ways: completions. Total .
The trap
Counting the L/R patterns but then assigning the six shoes freely (3! * 3!) instead of noticing that each boundary forces a specific pair to occupy both boundary slots.
Common mistakes
- Counting the L/R patterns but then assigning the six shoes freely (3! * 3!) instead of noticing that each boundary forces a specific pair to occupy both boundary slots.
- Reading the condition as "each shoe must be next to its mate," which is a different (and stricter) problem.
Techniques
Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects