Question 52
Let $n$ be a positive integer. Prove that
$$
\sum_{i=1}^{n} x_{i}\left(1-x_{i}\right)^{2} \leqslant\left(1-\frac{1}{n}\right)^{2}
$$
for all nonnegative real numbers $x_{1}, x_{2}, \ldots, x_{n}$ such that $x_{1}+x_{2}+\cdots+x_{n}=1$.
$$
\sum_{i=1}^{n} x_{i}\left(1-x_{i}\right)^{2} \leqslant\left(1-\frac{1}{n}\right)^{2}
$$
for all nonnegative real numbers $x_{1}, x_{2}, \ldots, x_{n}$ such that $x_{1}+x_{2}+\cdots+x_{n}=1$.