Skip to main content

2020 AIME I Problem 5

Problem 5 of 15EasierCombinatoricsProblem-Solving Techniques

Six cards numbered 11 through 66 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.

Your answer

Integer from 0 to 999
Show solution

Solution

First count arrangements from which some card’s removal leaves the rest ascending. Any such arrangement arises by choosing the card to remove (66 ways) and inserting it into one of the 66 gaps of the other five cards written in increasing order, for 3636 constructions. But the fully sorted row 123456123456 arises from all 66 card choices, and each of the 55 arrangements obtained by swapping two adjacent cards of the sorted row arises twice (move either card of the pair past the other). Every other construction gives a distinct arrangement. So the ascending count is 1+5+(36−6−10)=26,1 + 5 + (36 - 6 - 10) = 26, and by symmetry there are 2626 descending arrangements. No arrangement is counted in both totals: that would require an ascending and a descending subsequence of five cards, needing at least 5+5−1=95 + 5 - 1 = 9 cards. The total is 26+26=52.26 + 26 = 52.
AoPS wiki

Tagged: permutations · arrangements with restrictions · casework

More practice