Answer
$a_1=S(1-r)+a_nr$
Work Step by Step
Using the properties of equality, in terms of $
a_1
,$ the given equation, $
S=\dfrac{a_1-a_nr}{1-r}
,$ is equivalent to
\begin{array}{l}
S(1-r)=a_1-a_nr
\\\\
S(1-r)+a_nr=a_1
\\\\
a_1=S(1-r)+a_nr
.\end{array}