so I have $1/2 + 1/4 + 1/8 + \ldots + 1/2^n = 1 - 2^{-n}$ to prove by mathematical induction. I did all the steps and I end up with:
$$1-2^{-n}+2^{-n-1}=1-2^{-n-1}$$
I tried this out in Wolfram and another "calculator" and it says that it's true. How? How do I transform this so it's equal?
EDIT: Done and understood. Thank you all!
$$1-2^{-n}+2^{-n-1}=1-2\cdot2^{-n-1}+2^{-n-1}=1-2^{-n-1}$$