To prove the inequality
i=1∑nai2−i=1∑naiai+1≤⌊2n⌋(M−m)2,
where an+1=a1, M=max1≤i≤nai, and m=min1≤i≤nai, we will use mathematical induction.
1. Base Case:
- For n=1:
i=1∑1ai2−i=1∑1aiai+1=a12−a1a1=0.
Since ⌊21⌋=0, the inequality holds as 0≤0.
- For n=2:
i=1∑2ai2−i=1∑2aiai+1=a12+a22−(a1a2+a2a1)=a12+a22−2a1a2=(a1−a2)2.
Since ⌊22⌋=1, the inequality holds as (a1−a2)2≤(M−m)2.
2. Inductive Step:
- Assume the statement is true for n=2m−1, i.e.,
i=1∑2m−1ai2−i=1∑2m−1aiai+1≤(m−1)(M−m)2.
- We need to show it holds for n=2m:
i=1∑2mai2−i=1∑2maiai+1.
Consider the expression:
i=1∑2mai2−i=1∑2maiai+1=i=1∑2m−1ai2+a2m2−(i=1∑2m−1aiai+1+a2ma1).
This can be rewritten as:
(i=1∑2m−1ai2−i=1∑2m−1aiai+1)+a2m2−a2ma1.
By the inductive hypothesis:
i=1∑2m−1ai2−i=1∑2m−1aiai+1≤(m−1)(M−m)2.
Therefore:
i=1∑2mai2−i=1∑2maiai+1≤(m−1)(M−m)2+a2m2−a2ma1.
Since a2m∈[m,M], we have:
a2m2−a2ma1≤(M−m)2.
Thus:
i=1∑2mai2−i=1∑2maiai+1≤(m−1)(M−m)2+(M−m)2=m(M−m)2.
Hence, the statement holds for n=2m.
3. **Inductive Step for Odd n:**
- Assume the statement is true for n=2m, i.e.,
i=1∑2mai2−i=1∑2maiai+1≤m(M−m)2.
- We need to show it holds for n=2m+1:
i=1∑2m+1ai2−i=1∑2m+1aiai+1.
Consider the expression:
i=1∑2m+1ai2−i=1∑2m+1aiai+1=i=1∑2mai2+a2m+12−(i=1∑2maiai+1+a2m+1a1).
This can be rewritten as:
(i=1∑2mai2−i=1∑2maiai+1)+a2m+12−a2m+1a1.
By the inductive hypothesis:
i=1∑2mai2−i=1∑2maiai+1≤m(M−m)2.
Therefore:
i=1∑2m+1ai2−i=1∑2m+1aiai+1≤m(M−m)2+a2m+12−a2m+1a1.
Since a2m+1∈[m,M], we have:
a2m+12−a2m+1a1≤(M−m)2.
Thus:
i=1∑2m+1ai2−i=1∑2m+1aiai+1≤m(M−m)2+(M−m)2=(m+1)(M−m)2.
Hence, the statement holds for n=2m+1.
By mathematical induction, the statement is true for all n≥1.
■