


def       lowerCAmelCase			(		lowerCAmelCase_			)->			bool:
				if not isinstance(lowerCAmelCase_			, lowerCAmelCase_			):
								raise ValueError('''Input series is not valid, valid series - [1, 2/3, 2]'''			)
				if len(lowerCAmelCase_			) == 0:
								raise ValueError('''Input list must be a non empty list'''			)
				if len(lowerCAmelCase_			) == 1 and series[0] != 0:
								return True
				lowerCAmelCase_			:   Optional[int]     					=					[]
				lowerCAmelCase_			:   Union[str, Any]     					=					len(lowerCAmelCase_			)
				for i in range(0			, lowerCAmelCase_			):
								if series[i] == 0:
												raise ValueError('''Input series cannot have 0 as an element'''			)
								rec_series.append(1 / series[i]			)
				lowerCAmelCase_			:   Optional[int]     					=					rec_series[1] - rec_series[0]
				for index in range(2			, lowerCAmelCase_			):
								if rec_series[index] - rec_series[index - 1] != common_diff:
												return False
				return True



def       lowerCAmelCase			(		lowerCAmelCase_			)->			float:
				if not isinstance(lowerCAmelCase_			, lowerCAmelCase_			):
								raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''			)
				if len(lowerCAmelCase_			) == 0:
								raise ValueError('''Input list must be a non empty list'''			)
				lowerCAmelCase_			:   Tuple     					=					0
				for val in series:
								answer += 1 / val
				return len(lowerCAmelCase_			) / answer


if __name__ == "__main__":
						import doctest

						doctest.testmod()



def       lowerCAmelCase			(		lowerCAmelCase_			)->			int:
				lowerCAmelCase_			:   Optional[int]     					=					len(lowerCAmelCase_			)
				if n in (0, 1):
								return 0
				return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowerCAmelCase_			)			)			)


if __name__ == "__main__":
						import doctest

						doctest.testmod()