In how many ways can the sequence be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing?
- A)
- B)
- C)
- D)
- E)
Answer
D
Key insight
The sequence must zigzag; for the up-down shape, 5 sits at a peak (position 2 or 4), and each choice leaves 8 completions, so 16 total, doubled by reflection.
Solution
Between consecutive terms the sequence either rises or falls. Two rises in a row would be three increasing terms, and two falls in a row three decreasing terms, so rises and falls must alternate. There are two shapes: up-down-up-down () and down-up-down-up.
Count the up-down shape. The value can only sit at a peak, position or .
- in position : the condition is automatic, so can be any of the other four values. The remaining three values fill positions with : must be their maximum and can be in either order, ways. Total .
- in position : the mirror image (read the sequence backwards), also .
So there are up-down arrangements. Replacing each term by flips every comparison, matching up-down arrangements with down-up ones, so there are of those too.
Total: . The answer is .
Why this works
"No three consecutive increasing or decreasing" forces a strictly alternating pattern, and in an alternating pattern the largest element is always a peak. Placing the extreme element first collapses the count, and two symmetries (reversal, complement) mean only one small case needs to be counted by hand. These are the zigzag permutations; their count comes from the Euler number .
Alternative approach
For the up-down shape, the peaks are and , each larger than its neighbors. If the peaks are , the valleys go anywhere: ways. If the peaks are , the valley must touch only the peak , so it sits at an end next to and the other two valleys fill in: ways. No other peak set works. That gives , then double for the down-up shape.
The trap
Forgetting the down-up pattern (answering 16), or placing 5 in a valley position, where it cannot be smaller than a neighbor.
Common mistakes
- Forgetting the down-up pattern (answering 16), or placing 5 in a valley position, where it cannot be smaller than a neighbor.
- Counting the two shapes for each placement of and then also doubling, which overcounts to .
Techniques
Split into exhaustive cases and handle each · Exploit symmetry to reduce work or pair up objects