Formulas for Arithmetic Sequences