For each permutation of the integers form the sum The average value of all such sums can be written in the form ; where and are relatively prime positive integers. Find .
This problem is a part of Tessellate S.T.E.M.S. (2019)
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The average is 1 0 ! 1 σ ∈ S 1 0 ∑ ( ∣ σ ( 1 ) − σ ( 2 ) ∣ + ⋯ + ∣ σ ( 9 ) − σ ( 1 0 ) ∣ ) = 1 0 ! 1 σ ∈ S 1 0 ∑ ∣ σ ( 1 ) − σ ( 2 ) ∣ + ⋯ + 1 0 ! 1 σ ∈ S 1 0 ∑ ∣ σ ( 9 ) − σ ( 1 0 ) ∣ = 1 0 ! 5 σ ∈ S 1 0 ∑ ∣ σ ( 1 ) − σ ( 2 ) ∣ .
Let f ( n ) be the number of permutations in S 1 0 for which ∣ σ ( 1 ) − σ ( 2 ) ∣ = n . Enumerating the possibilities shows that f ( 9 ) = 2 ⋅ 8 ! , f ( 8 ) = 4 ⋅ 8 ! , … , f ( 1 ) = 1 8 ⋅ 8 ! . (For instance, f ( 9 ) is the number of permutations with σ ( 1 ) = 1 , σ ( 2 ) = 1 0 , which is 8 ! , plus the number of permutations with σ ( 1 ) = 1 0 , σ ( 2 ) = 1 , which is another 8 ! . ) So f ( n ) = 2 ( 1 0 − n ) 8 ! .
Then the sum becomes 1 0 ! 5 n = 1 ∑ 9 n f ( n ) = 1 0 ! 5 n = 1 ∑ 9 2 n ( 1 0 − n ) 8 ! = 9 1 n = 1 ∑ 9 n ( 1 0 − n ) = 9 1 6 5 = 3 5 5 , and the answer is 5 8 .