Assume that $$ 1a_1+2a_2+\cdots+na_n=1, $$ where the $a_j$ are real numbers. As a function of $n$, what is the minimum value of $$1a_1^2+2a_2^2+\cdots+na_n^2$$
There is a similar question on Math StackExchange, but nobody gave a solid and conclusive answer, so I felt the need to repeat it here. I also think this question should be solved using Cauchy-Schwarz, Mean Inequality Chain, or Trivial Inequality, but I would appreciate any answer. Thanks!
Let $\displaystyle\;\sigma = \frac{1}{\sum_{k=1}^n k} = \frac{2}{n(n+1)}$, we have
$$\sum_{k=1}^n k a_k^2 = \sum_{k=1}^n \big(\underbrace{k(a_k - \sigma)^2}_I + \underbrace{2\sigma k(a_k - \sigma)}_J + k\sigma^2\big)$$
Notice the contribution for the first term $I$ is non-negative and the contribution from the middle term $J$ vanishes, i.e.
$$J = 2\sigma\left(\sum_{k=1}^n k(a_k - \sigma)\right) = 2\sigma \left(\sum_{k=1}^n ka_k - \sigma\sum_{k=1}^n k\right) = 2\sigma\left(1 - \frac{\sigma}{\sigma}\right) = 0$$
We obtain $$\sum_{k=1}^n ka_k^2 \ge \sigma^2 \sum_{k=1}^n k = \frac{\sigma^2}{\sigma} = \sigma = \frac{2}{n(n+1)}$$ Since this lower bound is achieved when all $a_k = \sigma$, the minimum value of the sum at hand is $\sigma$.