I need to prove that $$\sum_{i=0}^{n-1} {2^i} = 2^n -1.$$ I tried induction but something didn't work.
Asked
Active
Viewed 80 times
0
-
3Hint: Call the sum $s_n$. How does $2s_n$ compare to $s_n$? – lulu May 20 '20 at 20:01
-
3What didn’t work in your induction ? – mathcounterexamples.net May 20 '20 at 20:03
3 Answers
3
Induction step:
$$\sum_{i=0}^n2^i=\sum_{i=0}^{n-1}2^i+2^n=2^n-1+2^n=2^{n+1}-1.$$
Sahiba Arora
- 11,065
2
Here is a direct proof, using telescopic sums :
Let $ n $ be a positive integer, we have : \begin{aligned}\sum_{k=0}^{n-1}{2^{k}}=\sum_{k=0}^{n-1}{2^{k}\left(2-1\right)}=\sum_{k=0}^{n-1}{\left(2^{k+1}-2^{k}\right)}=2^{n}-1\end{aligned}
CHAMSI
- 9,222
0
This can be proved by induction, test for $n=2$:
$$\sum_{i=0}^{2-1} 2^{i}=2^0+2^1=3=2^2-1$$
Now, suppose this is valid for some $k\geq 2$,
$$\sum_{i=0}^{k-1} 2^{i}=2^k-1$$
Now check if it is valid for $k + 1$
$$\sum_{i=0}^{k}2^i=2^k + \sum_{i=0}^{k-1}2^i=2^k+2^k-1=2^{k+1}-1$$
Mrcrg
- 2,969