Let 1≤a<b≤n be such that 2b−axaxb is maximal. This choice of a and b implies that xa+t≤2txa for all 1−a≤t≤b−a−1, and similarly xb−t≤2txb for all b−n≤t≤b−a+1. Now, suppose that xa∈(2u+11,2u1] and xb∈(2v+11,2v1], and write xa=2−α, xb=2−β. Then
i=1∑a+u−1xi≤2uxa(21+41+⋯+2a+u−11)<2uxa≤1,
and similarly,
i=b−v+1∑nxi≤2vxb(21+41+⋯+2n−b+v1)<2uxb≤1,
In other words, the sum of the xi's for i outside of the interval [a+u,b−v] is strictly less than 2. Since the total sum is 3, and each term is at most 1, it follows that this interval must have at least two integers. i.e. a+u<b−v. Thus, by bounding the sum of the xi for i∈[1,a+u]∪[b−v,n] like above, and trivially bounding each xi∈(a+u,b−v) by 1, we obtain
s<2u+1xa+2v+1xb+((b−v)−(a+u)−1)=b−a+(2u+1−α+2v+1−β−(u+v+1)).
As in the original solution, we arrive at
3<2u+1xa+2v+1xb+((b−v)−(a+u)−1)=b−a+(2u+1−α+2v+1−β−(u+v+1)).
Now 2b−axaxb≥2b−a2−u−12−v−1, so it is enough to show −2<b−a−u−v−2, or 3<b−a−u−v+3. The fact that u+1−α<1 and v+1−β<1 implies 2u+1−α+2v+1−β<4, and so 3<b−a+(2+2−u−v−1)=b−a−u−v−3.
Now recall α∈(u,u+1] and β∈(v,v+1], so applying Bernoulli's inequality yields
2u+1−α+2v+1−β−u−v−1≤(1+(u+1−α))+(1+(v+1−β))−u−v−1=3−α−β.
The above shows that c=1 is the best possible. A somewhat simpler ending to the proof can be given for c=41.
**End of solution for c=41**.