Divide both sides by a(n - 1):
T / a(n - 1) = (a(n - 1)d) / a(n - 1)
Simplify
T / a(n - 1) = d
d = T / a(n - 1)