Take a test Sign in 中文
← Exercise 514 →
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 514
Four 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 the eight shoes be lined up?
← Back to Problem 514
Solution
  1. Write the row as a pattern of $4$ L's and $4$ R's, split into runs of equal letters. At each of the $k$ places where two runs meet, an L is next to an R, so those two shoes must be a pair. A shoe cannot belong to two different pairs, so every run except the first and last must have length at least $2$.
  2. \emph{Shoes for a given pattern.} Give the $k$ meeting places different pairs: $4\cdot3\cdots(5-k)=\frac{4!}{(4-k)!}$ ways. The remaining $4-k$ left shoes and $4-k$ right shoes fill their places in $(4-k)!\cdot(4-k)!$ ways, and none of them is next to a shoe of the other kind. So each pattern gives $4!\,(4-k)!$ arrangements.
  3. \emph{Patterns.} By symmetry, count those starting with L and double.
    • $k=1$: $LLLLRRRR$, so $2$ patterns.
    • $k=2$ (L, R, L runs): the R run has length $4$ and the L runs have lengths $1+3$, $2+2$ or $3+1$, so $2\cdot3=6$ patterns.
    • $k=3$ (L, R, L, R runs): the inner L run has length $\ge2$, so the L runs are $1+3$ or $2+2$; the inner R run has length $\ge2$, so the R runs are $2+2$ or $3+1$. That gives $2\cdot2\cdot2=8$ patterns.
    • $k=4$ (L, R, L, R, L runs): the L runs must be $1,2,1$ and the R runs $2,2$, so $2$ patterns.
    • $k\ge5$: there are at least $6$ runs, so the L runs include at least $2$ inner runs and $1$ end run, which use at least $2+2+1=5$ L's. Impossible.
  4. Total: $2\cdot24\cdot3!+6\cdot24\cdot2!+8\cdot24\cdot1!+2\cdot24\cdot0!=288+288+192+48=\boxed{816}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year