Problem 352: (2020 AIME I, 5)
Six cards numbered $1$ through $6$ are to be lined up in a row. Find the number of arrangements of these six cards where one of the cards can be removed leaving the remaining five cards in either ascending or descending order.
- Arrangements that become increasing after removing a card are obtained from $1,2,\dots,6$ by moving one card to another place: $6\cdot5=30$ moves. Each of the $5$ swaps of neighbors arises from two moves, so these give $25$ different arrangements; with the identity, $26$.
- Likewise $26$ for decreasing, with no overlap.
- Total $52$. The answer is $\boxed{052}$.
Seven cards numbered $1$ through $7$ are to be lined up in a row. Find the number of arrangements of these seven cards where one of the cards can be removed leaving the remaining six cards in either ascending or descending order.