Take a test Sign in 中文
← Exercise 574 →
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 574
Eight cards numbered $1,2,\dots,8$ are arranged in a row. The task is to pick them up in numerically increasing order, working repeatedly from left to right: on each pass, moving from left to right, a card is picked up whenever it is the smallest card not yet picked up. For how many of the $8!$ orderings will the cards be picked up in exactly two passes?
← Back to Problem 574
Solution
  1. If the first pass picks up $1,\dots,k$, then the ordering needs at most two passes exactly when $k+1,\dots,8$ also appear in increasing order. So the orderings with at most two passes are the merges of $1,\dots,k$ and $k+1,\dots,8$ for some $0\le k\le8$, and there are $\binom8k$ merges for each $k$.
  2. The identity ordering is counted $9$ times, and every other merge exactly once, so there are $2^8-8=248$ orderings with at most two passes.
  3. Removing the identity (one pass), the answer is $\boxed{247}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year