The formula is \boldsymbol{a_n = a + (n - 1)d}.