The general formula for an AP is Tn = a + (n – 1) d, where a is the first term, n is number of terms and d is the common difference.