I would like to minimize the function $f(x_1,\dots,x_k) = x_1 + x_2 / x_1 + \dots + x_k / x_{k-1} + M / x_k$ where $M>0$ and $x_k \ge \dots \ge x_1 \ge 1$.
First I looked at a simpler function $g(x_1,x_2) = x_1 + M/x_2$. Computing the partial derivatives for $x_1$ and $x_2$ and finding the respective roots shows that the minimum value is attained when $x_1 = x_2 = \sqrt{M}$.
However, for the general case when $k$ is larger and in particular for $k=\log M$, it seems that setting $x_i = 2^{i-1}$ yields $2\log M + 1$ as the value of $f$, which I also suspect to be the global minimum.
If so, how can I formally show this?