Since consecutive terms differ by d,
a2=a1+d,a3=a1+2d, and, in general,
an=a1+(n−1)d. Now let
Sn=a1+a2+⋯+an−1+an. Writing the same sum in reverse order gives
Sn=an+an−1+⋯+a2+a1. Adding the two equations term by term,
2Sn=(a1+an)+(a2+an−1)+⋯+(an+a1). Every pair is equal to a1+an, and there are n pairs. Hence,
2Sn=n(a1+an). Therefore,
Sn=2n(a1+an).□