



"""simple docstring"""
import math



def        lowerCAmelCase_(   lowercase_     :							int = 1_00							)	->       int:
				_lowerCamelCase        =				sum(i * i for i in range(1						,   n + 1							)							)
				_lowerCamelCase        =				int(math.pow(sum(range(1						,   n + 1							)							)						,   2							)							)
				return square_of_sum - sum_of_squares


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




"""simple docstring"""
from __future__ import annotations

from math import pow, sqrt



def        lowerCAmelCase_(   lowercase_     :							float						,   lowercase_     :							float						,   lowercase_     :							float							)	->       dict[str, float]:
				if (resistance, reactance, impedance).count(0							) != 1:
								raise ValueError('''One and only one argument must be 0'''							)
				if resistance == 0:
								return {"resistance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif reactance == 0:
								return {"reactance": sqrt(pow(lowercase_						,   2							) - pow(lowercase_						,   2							)							)}
				elif impedance == 0:
								return {"impedance": sqrt(pow(lowercase_						,   2							) + pow(lowercase_						,   2							)							)}
				else:
								raise ValueError('''Exactly one argument must be 0'''							)


if __name__ == "__main__":
			import doctest

			doctest.testmod()
