Can someone explain how they simplified the left hand side to $2^7 - 2$?
$$2^{6} + 2^{5} + 2^{4} + 2^{3} + 2^{2} + 2^{1} =2^{7}−2 = 126$$
Can someone explain how they simplified the left hand side to $2^7 - 2$?
$$2^{6} + 2^{5} + 2^{4} + 2^{3} + 2^{2} + 2^{1} =2^{7}−2 = 126$$
Hint: Write down the sum and multiply it by $x$ to obtain two equations (For your question $x=2$).
$$S = x + x^2 + \ldots + x^n$$ $$xS = x^2 + x^3+ \ldots + x^{n+1}$$
Subtract both equations and solve for $S$: $$\implies (1-x)S=x-x^{n+1} \implies S = \dfrac{x-x^{n+1}}{1-x}$$
Hence,
$$S= x+x^2+\ldots + x^n = \dfrac{x-x^{n+1}}{1-x}.$$