Solve the formula for a

Answer:
Given formula:
Solving for a:
[tex]\\ \tt\longmapsto S=\dfrac{a(1-r^n)}{1-r}[/tex]
[tex]\\ \tt\longmapsto S(1-r)=a(1-r^n)[/tex]
[tex]\\ \tt\longmapsto a=\dfrac{S(1-r)}{1-r^n}[/tex]