I'm having some trouble determining the geometric series for the following:
$$2^k + 2^{k-1} + \cdots + 2^2 + 2$$
With this, I'm guessing that $a = 2$, and common ratio is: $r = 2$
Most resources I find online just test for convergence. I'm looking for a summarized k formula.
Something $$2^k - 1$$
$2 + 2^2 + 2^3 + ... + 2^k = 2(1 + 2 + 2^2 + ... + 2^{k-1}) = 2\cdot \left(\dfrac{2^k - 1}{2-1}\right) = 2^{k+1} - 2$