


import math
def   _UpperCamelCase				(						lowerCAmelCase_ = 1_0_0   )						->int:
   UpperCAmelCase							=     sum(i * i for i in range(1  ,						n + 1   )   )
   UpperCAmelCase							=     int(math.pow(sum(range(1  ,						n + 1   )   )  ,						2   )   )
   return square_of_sum - sum_of_squares


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







import pickle
import unittest

import torch

from accelerate import Accelerator
from accelerate.state import AcceleratorState
from accelerate.test_utils import require_cpu






@require_cpu
class   __lowercase				(  unittest.TestCase  ):





      def        _lowercase				(		self						:					Any       )    ->   Union[str, Any]:






         """simple docstring"""







         UpperCAmelCase							=     torch.nn.Linear(1_0					,       1_0       )
         UpperCAmelCase							=     torch.optim.SGD(model.parameters()					,       0.1       )
         UpperCAmelCase							=     Accelerator()
         UpperCAmelCase							=     accelerator.prepare(__lowerCamelCase       )
         try:
            pickle.loads(pickle.dumps(__lowerCamelCase       )       )
         except Exception as e:
            self.fail(F"""Accelerated optimizer pickling failed with {e}"""       )
         AcceleratorState._reset_state()



