Determine the maximum value of the sum $$S=\sum_{n=1}^\infty \frac{n}{2^{n}} (a_1a_2…a_n)^{1/n} $$ over all sequences $a_k$ of non negative real numbers satisfying $$\sum_{k=1}^\infty a_k =1.$$ I have an idea to solve this that the product may be transformed into sum by using AM-GM inequality? If I take $$\frac{a_1+a_2+…+a_n}{n}\ge (a_1a_2…a_n)^{1/n}$$ I reach to a wrong answer since all $a_k$ can’t be equal together so what other adjustment can be done? In a solution I got, they by default assumed it to be a GP with common ratio $1/4$ and $a_1=3/4$ but I wonder why did they choose this only?
Attempt $2$: If I assume it to be a GP of first term $a_1=a$ common $r$ then I get $\frac{a}{1-r}=1$ and putting this in $S$, I got $$S=a \sum_{n=1}^\infty\frac{n}{2^{n}}(1-a)^{\frac{n-1}{2}}$$ Now how can I proceed (maybe through derivatives but how?)?
I’m not attaching the official solution since I want a method other than that. As mentioned above they take $a=3/4$ and $r=1/4$ arbitrarily to solve but the question is why this pair only?
I have no idea how to prove that the optimal solution is geometric, but if you assume it is, you have for all $n$, $a_n = a_1r^{n - 1}$ for some $0 \leqslant r < 1$ and $\sum_{n = 1}^\infty a_n = \frac{a_1}{1 - r} = 1$ hence $a_1 = 1 - r$. From here, you have for all $n$, $$ \frac{n}{2^n}(a_1\cdots a_n)^{1/n} = (1 - r)\frac{n}{2^n}(r^0\cdots r^{n - 1})^{1/n} = (1 - r)\frac{n}{2^n}r^{(n - 1)/2} = \frac{1 - r}{2}n\left(\frac{\sqrt{r}}{2}\right)^{n - 1}. $$ Now, use the fac that $\sum_{n \geqslant 1} x^n = \frac{1}{1 - x} - 1$ and differentiate this equality to deduce that $\sum_{n \geqslant 1} nx^{n - 1} = \frac{1}{(1 - x)^2}$. Therefore, $$ \sum_{n \geqslant 1} \frac{n}{2^n}(a_1\cdots a_n)^{1/n} = \frac{1 - r}{2}\sum_{n \geqslant 1} n\left(\frac{\sqrt{r}}{2}\right)^{n - 1} = \frac{1 - r}{2}\frac{1}{\left(1 - \frac{\sqrt{r}}{2}\right)^2} = \frac{2 - 2r}{(2 - \sqrt{r})^2}. $$ It means that we must find the $r$ between $0$ and $1$ that maximizes $f(r) = \frac{2 - 2r}{(2 - \sqrt{r})^2}$. We have if $0 < r < 1$, \begin{align*} f'(r) & = \frac{-2 \cdot (2 - \sqrt{r})^2 - (2 - 2r) \cdot 2\frac{-1}{2\sqrt{r}}(2 - \sqrt{r})}{(2 - \sqrt{r})^4}\\ & = \frac{-2\sqrt{r}(2 - \sqrt{r}) + 2 - 2r}{\sqrt{r}(2 - \sqrt{r})^3}\\ & = \frac{2 - 4\sqrt{r}}{\sqrt{r}(2 - \sqrt{r})^3} \end{align*} Therefore, $f'(r)$ vanishes at $r = 1/4$, is positive before and negative after. We deduce that $r = 1/4$ is the optimal value and in this case, the sum is $f(1/4) = \frac{2 - 2\frac{1}{4}}{\left(2 - \sqrt{\frac{1}{4}}\right)^2} = \frac{2 - \frac{1}{2}}{\left(2 - \frac{1}{2}\right)^2} = \frac{2}{3}$.