Respuesta :

S = n(a1 + an)/2
2S = n(a1 + an)
2S = na1 + nan
nan = 2S - na1
an = (2S - n a1)/n

Just took the quiz.

The answer is an=2S-a1n/n