Studying for a convex optimization exam I encountered the below question. I suspect the inequality can be proved using Jensen inequality with the function $f(x)=-\ln(1-x)$ and $x_i=a_i$ but can't work it out.
True or false?
Let $n>1$. For any $a_1, ..., a_n>0$ such that $\sum_{i=1}^n a_i=1$, the following inequality holds:
$$\prod_{i=1}^n [a_i(1-a_i)] \leq \left(\frac{n-1}{n^2}\right)^{\!n}$$
Hint: $x\mapsto \log x(1-x)$ is concave. Now use Jensen.