Added a further simplification for getting the sum of the arithmetic series given that the first element and the difference to the next element are the same.