I recentely encountered the following equation:
$2 \cdot \sum_{j=0}^{i-1} 3^j = 3^i - 1$
I've tried a few numbers and this seems to work. Could someone explain to my why this is the case or post a proof?
I'm not even sure how to properly tag or google this, so suggestions for that would also be great!
This is the sum of Geometric series
Here we have,
$2(1+3 +3^2+\cdots3^{i-1})= 2 \frac{3^i-1}{3-1}=3^i-1$