Finding the first term, common difference, and sum of terms