my book gives me the following equation : $$ \sum_{i=0}^4 \frac{1}{3^i} = \sum_{i=0}^4 \left(\frac{1}{3} \right)^i. $$ And I do not know based on which rules they did that. I could see that because $1^i =1$ no matter what number $i$ is, the writers of the book wrote it like that. But what if the number in the numerator was another number lets say $2$? I mean would it still be allowed then?
Thanks in advance.
Simply note that for any $n\ge 0$ we have $1^n=1$ therefore
$$\frac{1}{3^{n}}=\frac{1^n}{3^{n}}=\left(\frac{1}{3}\right)^{n}$$
and more in general for $b\neq 0$
$$\frac{a^n}{b^{n}}=\left(\frac{a}{b}\right)^{n}$$
indeed for $n$ integer by definition of exponentiation
$$\frac{a^n}{b^{n}}=\frac{\overbrace{a\cdot a\cdot\ldots\cdot a}^{\color{blue}{\text{n terms}}}}{b\cdot b\cdot\ldots\cdot b}=\overbrace{\frac{a}{b}\cdot \frac{a}{b}\cdot\ldots\cdot \frac{a}{b}}^{\color{blue}{\text{n terms}}}=\left(\frac{a}{b}\right)^{n}$$