There is no "d" in
Sn=(Ar(rn-1)/r-1
to make as the subject. Also we cannot tell whether
the n is a subscript or not.
I will guess what you might have meant. If it's not,
then tell me in the reply form below and I'll get
back to you by email.
--------------------
Make n the subject of the formula.
Multiply both sides by r-1
Edwin