Calculation of number of terms, common difference, and sum