Take a test Sign in 中文
← Exercise 511 →
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 511
In how many ways can the sequence $1,2,3,4,5,6$ be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing?
← Back to Problem 511
Solution
  1. The rearrangement must alternate: either $a_1<a_2>a_3<a_4>a_5<a_6$ or $a_1>a_2<a_3>a_4<a_5>a_6$. Replacing each $k$ by $7-k$ matches the two types, so count the first type and double.
  2. Two smaller counts first. For $4$ distinct numbers in the pattern $b_1<b_2>b_3<b_4$, the largest is at position $2$ or $4$. At position $2$, $b_1$ is any of the other $3$ numbers and then $b_3<b_4$ is forced: $3$ ways. At position $4$, $b_2$ must be the largest of the other three, and $b_1,b_3$ can be in either order: $2$ ways. So there are $5$ arrangements.
  3. For $5$ distinct numbers in the pattern $b_1<b_2>b_3<b_4>b_5$, the largest is at position $2$ or $4$. At position $2$, $b_1$ is any of the other $4$, and the remaining three must satisfy $b_3<b_4>b_5$, so $b_4$ is their largest: $4\cdot2=8$ ways. Position $4$ is the mirror image: $8$ ways. So there are $16$ arrangements.
  4. Now $a_1<a_2>a_3<a_4>a_5<a_6$. The $6$ is at a peak: position $2$, $4$, or $6$.
    • Position $2$: $a_1$ is any of the other $5$ numbers, and $a_3<a_4>a_5<a_6$ uses the remaining $4$: $5\cdot5=25$.
    • Position $4$: choose the $3$ numbers for $a_1,a_2,a_3$ in $\binom53=10$ ways; then $a_1<a_2>a_3$ in $2$ ways, and $a_5<a_6$ in $1$ way: $20$.
    • Position $6$: $a_1<a_2>a_3<a_4>a_5$ uses $1,\dots,5$: $16$.
  5. So each type has $25+20+16=61$ arrangements, and the total is $2\cdot61=\boxed{122}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year