0

Is there a mathematical equation for:

2 + 2^2 + 2^3 + 2^4 + 2^5 + ... 2^n

I'm not sure what this type of pattern is called.

Jyrki Lahtonen
  • 133,153
Mike
  • 113

3 Answers3

3

This is called a geometric series. There is a well-known formula for summing finite geometric series:

$$ar+ar^2+...+ar^n = \frac{ar^{n+1}-ar}{r-1}$$

Here's a proof:

Let $S = ar+ar^2+...+ar^n$. Then, we have that

$$rS = ar^2+ar^3+...+ar^{n+1}$$

Now, consider $rS-S$. Note that almost all of the terms cancel:

$$rS-S = (ar^{n+1}+ar^n+...+ar^2)-(ar^n+...+ar^2+ar) = ar^{n+1}-ar$$

So, we have that

$$S = \frac{ar^{n+1}-ar}{r-1}$$

Thus, in your case when $a=1,r=2$, we have the closed form

$$\frac{2^{n+1}-2}{1} = 2^{n+1}-2$$

1

It is the sum of the $n$ first terms of a geometric progression of ratio $2$ and first term $2$ and so one has

$$2+2^2+\cdots+2^n=2\times {2^n-1\over 2-1}=2^{n+1}-2$$

marwalix
  • 16,773
1

Let $S_n=2+2^2+2^3+...2^n$.

then

$$S_{n+1}=2+2^2+2^3+...2^n+2^{n+1}$$

$$=2(1+S_n)=S_n+2^{n+1}$$

$$\implies S_n=2^{n+1}-2=2(2^n-1)$$