I would like to know how to arrive at the following result that my teacher wrote on the board. They did not explain how it was done. I am also not sure what this series is called. Is it perhaps a power series?
$$N>M :\sum_{n=M}^N a^n = \frac{a^M-a^{N+1}}{1-a},a\neq1$$ $$N>M: \sum_{n=M}^N a^n = N-M+1,a=1$$
I am quite lost since my teacher only wrote the above formulae without any derivation. Can someone help me understand why they are true? Thank you!
The first one can be derived by the geometric series
$$\sum_{n=M}^N a^n =\sum_{n=0}^N a^n-\sum_{n=0}^{M-1} a^n $$
the second one is simply
$$\sum_{n=M}^N 1 $$