Iterative sum of a series