Make the substitution ak=bk+k for k=1,2,…,n. The conditions of the problem then become bm+bm+1+⋯+bn≥0 for every m=1,2,…,n, while the required inequality becomes
6n(n+1)(2n+1)≤(b1+1)2+(b2+2)2+⋯+(bn+n)2=(b12+b22+⋯+bn2)+(12+22+⋯+n2)+2(b1+2b2+⋯+nbn).
But b12+⋯+bn2≥0, 12+22+⋯+n2=6n(n+1)(2n+1) while
b1+2b2+⋯+nbn=bn+(bn−1+bn)+(bn−2+bn−1+bn)+⋯+(b1+b2+⋯+bn)≥0
by the (restated) given condition.