I'm working on an algorithms problem and I've come to the following generalization, but I'm not sure how to prove it. Could anyone help?
$$ \sum_{i\ =\ 1}^{n-1}\frac{1}{2^{i}}\ +\ \frac{1}{2^{n-1}}\ =\ 1 $$
I'm working on an algorithms problem and I've come to the following generalization, but I'm not sure how to prove it. Could anyone help?
$$ \sum_{i\ =\ 1}^{n-1}\frac{1}{2^{i}}\ +\ \frac{1}{2^{n-1}}\ =\ 1 $$
On
Use mathematical induction:
Base Case:
Iterative Case:
We have $$ \sum_{i=1}^{n-1}\frac{1}{2^{i}}+ \frac{1}{2^{n-1}}\\ =\frac12+\frac1{2^2}+\cdots+\frac1{2^{n-2}}+\frac1{2^{n-1}}+\frac1{2^{n-1}} $$ Now add the two rightmost terms together, and simplify them, and you get $$ =\frac12+\frac1{2^2}+\cdots+\frac1{2^{n-3}}+\frac1{2^{n-2}}+\frac1{2^{n-2}} $$ And then you can repeat this, adding the two rightmost terms and simplify, all the way until you reach $\frac12+\frac12=1$.