Suppose that x1,x2,…,xn are positive integers for which x1+x2+⋯+xn=2(n+1). Show that there exists an integer r with 0≤r≤n−1 for which the following n−1 inequalities hold:
xr+1+⋯+xr+i≤2i+1,∀i,1≤i≤n−r;xr+1+⋯+xn+x1+⋯+xi≤2(n−r+i)+1,∀i,1≤i≤r−1.
Prove that if all the inequalities are strict, then r is unique and that otherwise there are exactly two such r.