We could expand this further but let's call it done.
Answer: a = 2s/n - (n+1)d
7.2m questions
9.5m answers