Let $a_0, a_1, \cdots, a_n \ge 0$ such that $\sum^{n}_{i=0} \frac{a_i}{2^i} = 1$.
Maximize $\sum^{n}_{i=0} a_i$ for a given fixed value $n$.
It is pretty obvious that it is maximized at $a_0 = 0, a_1 = 0, \cdots, a_{n-1} = 0, a_n = 2^n$. But is there a rigorous proof for this?