Tag - sum of series in java