2020 AIME II Problem 9
Problem 9 of 15IntermediateCombinatorics
While watching a show, Ayako, Billy, Carlos, Dahlia, Ehuang, and Frank sat in that order in a row of six chairs. During the break, they went to the kitchen for a snack. When they came back, they sat on those six chairs in such a way that if two of them sat next to each other before the break, then they did not sit next to each other after the break. Find the number of possible seating orders they could have chosen after the break.
Your answer
Integer from 0 to 999
Show solution
Solution
Number the friends through in original seating order; we count orderings of in which no two consecutive integers are adjacent. Apply inclusion-exclusion over which of the five pairs are forced to sit together. If a chosen set of pairs forms maximal runs of consecutive integers, gluing each run into a block (orderable ascending or descending) gives seatings containing all chosen adjacencies.
Tallying by for For five sets, each total For four sets form one run and six form two runs total For three sets form one run six form two runs one forms three runs total For two sets form one run and three form two runs total For one set, total
The count is
Tagged: arrangements with restrictions · inclusion-exclusion · permutations