Subcontests
(5)Permutations
Given a permutation (a0,a1,…,an) of the sequence 0,1,…,n. A transportation of ai with aj is called legal if ai=0 for i>0, and ai−1+1=aj. The permutation (a0,a1,…,an) is called regular if after a number of legal transportations it becomes (1,2,…,n,0).
For which numbers n is the permutation (1,n,n−1,…,3,2,0) regular? Equal sums
Find all permutations a1,a2,…,a9 of 1,2,…,9 such that a1+a2+a3+a4=a4+a5+a6+a7=a7+a8+a9+a1
and
a12+a22+a32+a42=a42+a52+a62+a72=a72+a82+a92+a12