TeX джерело:
{S_n} = \frac{{2{a_1} + d(n - 1)}}{2} \cdot n