Let n and k be positive integers. Prove that for a1,…,an∈[1,2k] one has i=1∑na12+…+ai2ai⩽4kn (Iran)
This one wants a proof. Work it on paper, then read the official solution and mark
yourself. Be honest about it: the record is only any use to you if it is.
Official solution
Partition the set of indices {1,2,…,n} into disjoint subsets M1,M2,…,Mk so that aℓ∈[2j−1,2j] for ℓ∈Mj. Then, if ∣Mj∣=:pj, we have ℓ∈Mj∑a12+…+aℓ2aℓ⩽i=1∑pj2j−1i2j=2i=1∑pji1 where we used that aℓ⩽2j and in the denominator every index from Mj contributes at least (2j−1)2. Now, using i−i−1=i+i−11⩾2i1, we deduce that ℓ∈Mj∑a12+…+aℓ2aℓ⩽2i=1∑pji1⩽2i=1∑pj2(i−i−1)=4pj Therefore, summing over j=1,…,k and using the QM-AM inequality, we obtain ℓ=1∑na12+…+aℓ2aℓ⩽4j=1∑k∣Mj∣⩽4kj=1∑k∣Mj∣=4kn Comment. Consider the function f(a1,…,an)=∑i=1na12+…+ai2ai. One can see that rearranging the variables in increasing order can only increase the value of f(a1,…,an). Indeed, if aj>aj+1 for some index j then we have f(a1,…,aj−1,aj+1,aj,aj+2,…,an)−f(a1,…,an)=Sa+S2−a2b−Sb−S2−b2a where a=aj,b=aj+1, and S=a12+…+aj+12. The positivity of the last expression above follows from S2−a2b−Sb=SS2−a2⋅(S+S2−a2)a2b>SS2−b2⋅(S+S2−b2)ab2=S2−b2a−Sa. Comment. If k<n, the example am:=2k(m−1)/n shows that the problem statement is sharp up to a multiplicative constant. For k⩾n the trivial upper bound n becomes sharp up to a multiplicative constant.
Source: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic, difficulty and ordering added
by this site.