2. Let x1,...,xn be n integers, and let p be a positive integer, with p<n. Put
S1=x1+x2+...+xpT1=xp+1+xp+2+...+xnS2=x2+x3+...+xp+1T2=xp+2+xp+3+...+xn+x1...Sn=xn+x1+...+xp−1Tn=xp+xp+1+...+xn−1
For a=0,1,2,3, and b=0,1,2,3, let m(a,b) be the number of numbers i, 1≤i≤n, such that Si leaves remainder a on division by 4 and Ti leaves remainder b on division by 4. Show that m(1,3) and m(3,1) leave the same remainder when divided by 4 if, and only if, m(2,2) is even.