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