Maths Olympiad Prep

Library / /117 of 156

Combinatorics Difficulty 5.4 AIME, harder Prove it China

Let a1,a2,,a21a_1, a_2, \dots, a_{21} be a permutation of 1,2,,211, 2, \dots, 21, satisfying
a20a21a19a21a18a21a1a21. |a_{20} - a_{21}| \geq |a_{19} - a_{21}| \geq |a_{18} - a_{21}| \geq \dots \geq |a_1 - a_{21}|.
The number of such permutations is ________.

Solution

For a given k{1,2,,21}k \in \{1, 2, \dots, 21\}, consider the number of permutations NkN_k that satisfy the conditions such that a21=ka_{21} = k.
When k{1,2,,11}k \in \{1, 2, \dots, 11\}, for i=1,2,,k1i = 1, 2, \dots, k-1, there exist a2i1,a2ia_{2i-1}, a_{2i} that are permutations of ki,k+ik-i, k+i (if k=1k=1, there exists no such ii), and a2j=j+1a_{2j} = j+1 (2k1j202k-1 \le j \le 20) (if k=11k=11, there exists no such jj), so Nk=2k1N_k = 2^{k-1}.

Similarly, when k{12,13,,21}k \in \{12, 13, \dots, 21\}, there is Nk=221kN_k = 2^{21-k}.
Therefore, the number of such permutations satisfying the condition is

k=121\sum_{k=1}^{21} N_k = k=1112k1+k=1221221k=(2111)+(2101)\sum_{k=1}^{11} 2^{k-1} + \sum_{k=12}^{21} 2^{21-k} = (2^{11}-1) + (2^{10}-1) = 3070. \quad \square

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.