$1 + 3 + 3^2 + ... + 3^{n-1} = \dfrac{3^n - 1}2$
I am stuck at
$\dfrac{3^k - 1}2 + 3^k$
and I'm not sure if I am right or not.
$1 + 3 + 3^2 + ... + 3^{n-1} = \dfrac{3^n - 1}2$
I am stuck at
$\dfrac{3^k - 1}2 + 3^k$
and I'm not sure if I am right or not.
On
Problem. $\quad$Prove by induction the following formula: $\quad 1+3+3^2+\dots+3^{n−1} = \dfrac{1}{2}\big(3^n−1\big)\,$.
Solution. $\quad$Proof by induction is given in three following steps:
Induction: show that formula holds for $\,n+1,\;$ i.e. $\; 1+3+\dots+3^{n−1} + \color{#df0000}{3^n}= \dfrac{1}{2}\big(3^{n+1}−1\big)\,$
Thus we established that $$ \bbox[4pt, border:solid 2pt #FC0000]{\;1+3+3^2+\dots+3^{n−1} + 3^{n} = \dfrac{1}{2}\big(3^{n+1}−1\big)} $$
Q.E.D.
On
First, show that this is true for $n=1$:
$\sum\limits_{k=0}^{1-1}3^k=\frac12(3^1-1)$
Second, assume that this is true for $n$:
$\sum\limits_{k=0}^{n-1}3^k=\frac12(3^n-1)$
Third, prove that this is true for $n+1$:
$\sum\limits_{k=0}^{n}3^k=$
$\color\red{\sum\limits_{k=0}^{n-1}3^k}+3^n=$
$\color\red{\frac12(3^n-1)}+3^n=$
$\frac12(3^n-1+2\cdot3^n)=$
$\frac12(3\cdot3^n-1)=$
$\frac12(3^{n+1}-1)=$
Please note that the assumption is used only in the part marked red.
On
$\dfrac{3^k - 1}2 + 3^k=\dfrac32 3^k - \dfrac12=\dfrac12 3^{k+1} - \dfrac12=\dfrac12(3^{k+1} - 1)$
On
Assume $$S=1+3+3^2+3^3+...+3^{n-1}$$ in this case $$ 3\cdot S=3\cdot1+3\cdot3+3\cdot3^2+...+3\cdot3^{n-2}+3\cdot3^{n-1}$$ $$ 3\cdot S=3+3^2+3^3+...+3^{n-1}+3^{n}$$ Now subtracting $S$ from $3\cdot S$ we have: $$3\cdot S-S=-1+3-3+3^2-3^2+3^3-3^3+...+3^{n-1}-3^{n-1}+3^n$$ it is easy to see that the result will be $$2\cdot S=3^n-1$$ so $$S=\frac{3^n-1}{2}$$ Replacing $S$ with the original sum we have: $$1+3+3^2+3^3+...+3^{n-1}=\frac{3^n-1}{2}$$ Q.E.D
For $n=1$ is true because $1=(3^1-1)/2=2/2=1$. Suppose that is true for $n\leq k$. $1+...+3^{k-1}+3^k=_{HI} \frac{3^k-1}{2}+3^k=\frac{3}{2}3^k-\frac{1}{2}=\frac{3^{k+1}}{2}-\frac{1}{2}=\frac{3^{k+1}-1}{2}$. And then is true for all $n$