MathDB
2022 Combo Div 1 P7

Source:

February 28, 2022
combinatorics

Problem Statement

In a class of 1212 students, no two people are the same height. Compute the total number of ways for the students to arrange themselves in a line such that:
[*] for all 1<i<121 < i < 12, the person in the ii-th position (with the leftmost position being 11) is taller than exactly i(mod3)i\pmod 3 of their adjacent neighbors, and [*] the students standing at positions which are multiples of 33 are strictly increasing in height from left to right.
Proposed by Nancy Kuang