Using the formula an = a1 + (n-1)d