Problem:
For each permutation a1β,a2β,a3β,β¦,a10β of the integers 1,2,3,β¦,10, form the sum
β£a1ββa2ββ£+β£a3ββa4ββ£+β£a5ββa6ββ£+β£a7ββa8ββ£+β£a9ββa10ββ£
The average value of all such sums can be written in the form p/q, where p and q are relatively prime positive integers. Find p+q.
Solution:
Consider the average of all sums of the form
β£a1ββa2ββ£+β£a3ββa4ββ£+β―+β£anβ1ββanββ£
where n is even and (a1β,a2β,a3β,β¦,anβ) is a permutation of (1,2,3,β¦,n). Each of the n ! sums contains n/2 differences of pairs of integers. There are (2nβ) such pairs. For each k=1,2,β¦,nβ1, there are nβk of these (2nβ) pairs with difference k. Because each of these pairs occurs the same number of times in the n! sums, the average of the differences of all 2nβn! pairs is
(2nβ)1βk=1βnβ1βk(nβk)
Because k(nβk) is the number of subsets {a,k+1,b} of {1,2,β¦,n+1} that have a<k+1<b, it follows that
k=1βnβ1βk(nβk)=(3n+1β)
The average difference is therefore (2nβ)(3n+1β)β=3n+1β. The average sum of n/2 differences is 6n(n+1)β, which equals 55/3 when n=10. Thus p+q=58β.
Note: When n=10, it is easy to calculate the value of βk=1nβ1βk(nβk) directly.
OR
The average is just 5 times the average value of β£a1ββa2ββ£, because the average value of β£a2iβ1ββa2iββ£ is the same for i=1,2,3,4,5. When a1β=k, the average value of β£a1ββa2ββ£ is
9(kβ1)+(kβ2)+β―+1+1+2+β―+(10βk)β=91β[2k(kβ1)β+2(10βk)(11βk)β]=9k2β11k+55ββ
Thus the average value of the sum is
5β
101βk=1β10β9k2β11k+55β=355β
and so p+q=58β.
The problems on this page are the property of the MAA's American Mathematics Competitions