Formula
$$S_n=\dfrac{n}{2}\left[2a_1 + (n-1)\cdot d\right]$$
Variables
Sn
→
Sum of first n terms
a1
→
First term
d
→
Difference
n
→
Number of terms