Let Sn be the set of permutations on {1,…,n} and π∈Sn.
Let d(π) be the arithmetic average of ${|i-\pi(i)|;;1\le i\le
n}.Thend(\pi)/n\in[0,,1/2],theexpectedvalueofd(\pi)/napproaches1/3asnapproachesinfinity,andd(\pi)/niscloseto1/3$ for most permutations. We describe all
permutations π with maximal d(π).
Let s+(π) and s∗(π) be the arithmetic and
geometric averages of {∣π(i)−π(i+1)∣;1≤i<n}, and let M+, M∗
be the maxima of s+ and s∗ over Sn, respectively.
Then M+=(2m2−1)/(2m−1) when n=2m, M+=(2m2+2m−1)/(2m) when n=2m+1,
M∗=(mm(m+1)m−1)1/(n−1) when n=2m, and, interestingly, $M^* =
(m^m(m+1)(m+2)^{m-1})^{1/(n-1)}whenn=2m+1>1.Wedescribeallpermutations\pi,\sigmawithmaximals^+(\pi)ands^*(\sigma)$.