





def lowerCamelCase__    (							snake_case_	:  int = 100       )      ->				int:
   __snake_case							       =   n * (n + 1) * (2 * n + 1) / 6
   __snake_case							       =   (n * (n + 1) / 2) ** 2
   return int(square_of_sum - sum_of_squares       )


if __name__ == "__main__":
    print(F'{solution() = }')







def 			_SCREAMING_SNAKE_CASE			(							lowercase	:       float	,							lowercase	:       list[float]     ):


      '''simple docstring'''



      if discount_rate < 0:
            raise ValueError('Discount rate cannot be negative'     )
      if not cash_flows:
            raise ValueError('Cash flows list cannot be empty'     )
      lowerCamelCase_		     =    sum(
          cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(lowercase     )     )
      return round(lowercase	,							ndigits=2     )


if __name__ == "__main__":
 import doctest

 doctest.testmod()



