Proof: Set A=x1+x3+⋯+x2n−1 and B=x2+x4+⋯+x2n.
If one of A,B is less than or equal to 1, the problem is obvious. If A>1 and B>1, for 0≤k≤n−1, let m(k)∈{1,2,…,n−1} be the unique integer such that
i=0∑m(k)x2k+2i+1>1(1)
i=0∑m(k)−1x2k+2i+1≤1.(2)
Note that, if x2k+2m(k)+2+x2k+2m(k)+4+⋯+x2k+2n−2≤1, then this equation and (2) gives what we needed with p=2k and q=m(k).
Now suppose that
x2k+2m(k)+2+x2k+2m(k)+4+⋯+x2k+2n−2>1.(3)
Now, we construct an oriented graph with 0,1,2,…,n−1 as vertices, and connect an edge from each k to k+m(k)+1 (with indices modulo n). It is easy to see that there are loops in this graph. We may assume that k1→k2→⋯→kt→k1 is a minimal loop.
If t=1, then ∑i=0n−2x2k1+2i+1≤1. Setting p=2k1 and q=n−1 gives what we want.
If t>1, then set
{nk2−k1}+{nk3−k2}+⋯+{nkt−kt−1}+{nk1−kt}=s.
In other words, when k=k1,k2,…,kt, there are totally s⋅n elements in the sums of (1). Moreover, using the condition for defining the edges, we know that every term in x1,x3,…,x2n−1 appeared in the sum (1) exactly s times. On the other hand, when k=k1,k2,…,kt, there are in total (t−s)⋅n elements in the sums in (3). The condition for linking an edge shows that each of x2,x4,…,x2n appeared exactly t−s times in the above sum; this is because x2j appeared in (3) if and only if x2j+1 did not appear in (1).
Now take the total sum of (1) when k=k1,k2,…,kt, we get s⋅A>t. Similarly, taking the total sum of (3) when k=k1,k2,…,kt gives (t−s)⋅B>t. But A+B>t(s1+t−s1)≥4. This leads to a contradiction. The problem is proved.