I am new to this site so not sure if this type of question is appropriate. I know that the sum of a geometric series can be written like this:
$$ S = \sum ^n_{k=1} a^k = \frac{a^1 - a^n}{1-a} $$
How does this change however if the power of each term is not the same, for instance $2k+1$ or $2k-1$ etc?
$$ S = \sum^n_{k=1} a^{2k-1} \stackrel{?}{=} \frac{a^1 - a^{2n-1}}{1-a} $$
Kind regards!