Show that $$2+6+18+\ldots+2\cdot 3^{n-1}=3^n-1$$
Proving the base case when $n=1$:
$2\cdot3^{1-1}=3^1-1\Leftrightarrow 2=2$
Now doing the induction:
$2\cdot 3^{(n+1)-1}=3^{n+1}-1$
$2\cdot 3^n=3^{n+1}-1$
But I'm kinda stuck here and don't know what to do next
You should start by using proper formulae:
Base case: $2\cdot 3^0 = 2 \checkmark$
Induction hypothesis: $$\sum_{i=1}^n 2\cdot 3^{i-1} = 3^n - 1$$ Induction step: Show that $$\sum_{i=1}^{n+1} 2\cdot 3^{i-1} = 3^{n+1} - 1$$ Now the LHS is equal to $$\sum_{i=1}^n 2\cdot 3^{i-1} + 2 \cdot 3^{(n+1)-1} \stackrel{\text{i.h.}}= 3^n-1 + 2\cdot 3^n = 3\cdot 3^n - 1 = 3^{n+1} - 1$$ as claimed. $\Box$
More generally: