1 2 3 4
def series_sum(number): total = 0 total = (number * (number + 1) * (2 * number + 1)) / 6 return total