The largest possible value of λ(n) is 4n(n+1)2.
Let a1=a2=⋯=an=1. Then we have λ(n)≤4n(n+1)2.
We shall show that for any real numbers a0,a1,a2,…,an satisfying the indicated property in the problem, the following inequality holds:
(i=1∑niai)2⩾4n(n+1)2(i=1∑nai2).1◯
First, we notice that
a1≥2a2≥⋯≥nan.
Indeed, by assumption, 2iai≥i(ai+1+ai−1) holds for i=1,2,…,n−1. For any given positive integer 1≤l≤n−1, summing the above inequality over i=1,2,…,l, we have (l+1)al≥lal+1, i.e.
lal≥l+1al+1 for l=1,2,…,n−1.
In what follows, we show that for any i,j,k∈{1,2,…,n}, if i>j, then
i+k2ik2>j+k2jk2.
Indeed, the above inequality is equivalent to 2ik2(j+k)>2jk2(i+k), i.e. (i−j)k3>0, which is clearly true.
Now, we are going to show inequality ①. We shall start by estimating the lower bound of aiaj for 1≤i<j≤n.
By previous results, we have iai≥jaj, i.e. jai−iaj≥0. Since ai−aj≤0, we have (jai−iaj)(aj−ai)≥0, i.e. aiaj≥i+jiaj2+i+jjai2.
Thus, we have
(i=1∑niai)2=i=1∑ni2ai2+21≤i<j≤n∑ijaiaj≥i=1∑ni2×ai2+21≤i<j≤n∑(i+ji2jaj2+i+jij2ai2)=i=1∑n(ai2×k=1∑ni+k2ik2).
Let bi=∑k=1ni+k2ik2. We see from previous results that b1≤b2≤⋯≤bn.
Since a12≤a22≤⋯≤an2, by the Chebyshev inequality, we have
i=1∑nai2bi≥n1(i=1∑nai2)(i=1∑nbi).
Hence
(i=1∑niai)2≥n1(i=1∑nai2)(i=1∑nbi).
Since
i=1∑nbi=i=1∑nk=1∑ni+k2ik2=i=1∑ni2+21≤i<j≤n∑(i+ji2j+i+jij2)=i=1∑ni2+21≤i<j≤n∑ij=(i=1∑ni)2=4n2(n+1)2,
we find that (∑i=1niai)2≥4n(n+1)2∑i=1nai2, which proves inequality ①.
We conclude that the maximum possible value of λ(n) is
4n(n+1)2