Maths Olympiad Prep

Track / Stage 7 / 122 of 300 #1522 of 1964

Problem 1522

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

Let nn be a positive integer divisible by 4. We consider permutations (a1,a2,,an)\left(a_{1}, a_{2}, \ldots, a_{n}\right) of (1,2,,n)(1,2, \ldots, n) with the following property: for every jj, if we take i=aji=a_{j}, then ai+j=n+1a_{i}+j=n+1. Prove that there are exactly (12n)!(14n)!\frac{\left(\frac{1}{2} n\right)!}{\left(\frac{1}{4} n\right)!} such permutations.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Let t{1,2,,n}t \in\{1,2, \ldots, n\}. Suppose at=ta_{t}=t, then we can choose i=j=ti=j=t and it follows that at+t=n+1a_{t}+t=n+1, so 2t=n+12 t=n+1. But nn is divisible by 4, so n+1n+1 is odd. Contradiction. Suppose now that at=n+1ta_{t}=n+1-t. Then we can choose i=n+1ti=n+1-t and j=tj=t and it follows that an+1t+t=n+1a_{n+1-t}+t=n+1, so an+1t=n+1ta_{n+1-t}=n+1-t. However, we have just seen that this cannot occur.
Suppose now that at=ua_{t}=u with ut,un+1tu \neq t, u \neq n+1-t. Then we can choose i=ui=u and j=tj=t and it follows that au+t=n+1a_{u}+t=n+1, so au=n+1ta_{u}=n+1-t. Next, we can choose i=n+1ti=n+1-t and j=uj=u and it follows that an+1t=n+1ua_{n+1-t}=n+1-u. Now we choose i=n+1ui=n+1-u and j=n+1tj=n+1-t and see that an+1u=n+1(n+1t)=ta_{n+1-u}=n+1-(n+1-t)=t. In total, we have:

at=u,au=n+1t,an+1t=n+1u,an+1u=t. \begin{aligned} a_{t} & =u, \\ a_{u} & =n+1-t, \\ a_{n+1-t} & =n+1-u, \\ a_{n+1-u} & =t . \end{aligned}

Since utu \neq t and un+1tu \neq n+1-t, the four numbers on the right-hand side are all different. Furthermore, the four numbers can be divided into two pairs of the form (v,n+1v)(v, n+1-v). We now have four numbers for which it holds that the same four numbers are in the permutation at the same positions, but in a different order. We can now choose a tt^{\prime} different from one of these four numbers and a uu^{\prime} with at=ua_{t^{\prime}}=u^{\prime} and find a quartet containing tt^{\prime} in the same way. Note that now n+1tn+1-t^{\prime} and n+1un+1-u^{\prime} cannot already be in the first quartet, because then uu^{\prime} and tt^{\prime} would also be in it. We can continue this way until all nn numbers are divided into quartets.
We see that we can exactly construct all permutations by applying the following recipe:

- Choose the smallest number kk for which aka_{k} has not yet been determined. Take ak=ua_{k}=u for some uu for which aua_{u} has not yet been determined and for which uk,un+1ku \neq k, u \neq n+1-k. This also determines the values of au,an+1ua_{u}, a_{n+1-u} and an+1ka_{n+1-k}.
- Repeat the previous step as often as necessary until all values aka_{k} are determined.

For the first kk, we have n2n-2 possibilities for uu. For the next step, we have n6n-6 possibilities. For the step after that, we have n10n-10, and so on. Thus, the number of permutations that satisfy this property is

2610(n10)(n6)(n2) 2 \cdot 6 \cdot 10 \cdot \ldots \cdot(n-10) \cdot(n-6) \cdot(n-2)

Write n=4mn=4 m, then we can write this as

2m135(2m5)(2m3)(2m1)=2m(2m)!24(2m)=(2m)!123m=(2m)!m!=(12n)!(14n)! \begin{gathered} 2^{m} \cdot 1 \cdot 3 \cdot 5 \cdot \ldots \cdot(2 m-5) \cdot(2 m-3) \cdot(2 m-1)=2^{m} \cdot \frac{(2 m)!}{2 \cdot 4 \cdot \ldots \cdot(2 m)} \\ =\frac{(2 m)!}{1 \cdot 2 \cdot 3 \cdot \ldots \cdot m}=\frac{(2 m)!}{m!}=\frac{\left(\frac{1}{2} n\right)!}{\left(\frac{1}{4} n\right)!} \end{gathered}

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.