IMC 2008 · Problem 6

Day 115th IMC · Blagoevgrad, Bulgaria

Statement

For a permutation σ=(i1,i2,,in)\sigma = (i_1, i_2, \dots, i_n) of (1,2,,n)(1, 2, \dots, n) define D(σ)=k=1nikkD(\sigma) = \sum\limits_{k=1}^{n} |i_k - k|. Let Q(n,d)Q(n,d) be the number of permutations σ\sigma of (1,2,,n)(1, 2, \dots, n) with d=D(σ)d = D(\sigma). Prove that Q(n,d)Q(n,d) is even for d2nd \ge 2n.

Official solution

Hidden so you can work on the problem first.