Subcontests
(3)Problem 3
The numbers 1,2,…,n2 are written in the squares of an n×n board in some order. Initially there is a token on the square labelled with n2. In each step, the token can be moved to any adjacent square (by side). At the beginning, the token is moved to the square labelled with the number 1 along a path with the minimum number of steps. Then it is moved to the square labelled with 2, then to square 3, etc, always taking the shortest path, until it returns to the initial square. If the total trip takes N steps, find the smallest and greatest possible values of N. Problem 2
For n real numbers a1,a2,…,an, let d denote the difference between the greatest and smallest of them and S=∑i<j∣ai−aj∣. Prove that (n−1)d≤S≤4n2d and find when each equality holds.