




'''simple docstring'''




def       _UpperCamelCase					( SCREAMING_SNAKE_CASE__	:					Optional[Any]				):
 '''simple docstring'''





 if length <= 0 or not isinstance(SCREAMING_SNAKE_CASE__				,  SCREAMING_SNAKE_CASE__				):
  raise ValueError("""Length must be a positive integer."""				)
 return [n * (2 * n - 1) for n in range(SCREAMING_SNAKE_CASE__				)]


if __name__ == "__main__":
    print(hexagonal_numbers(length=5))
    print(hexagonal_numbers(length=1_0))







from __future__ import annotations







def  _SCREAMING_SNAKE_CASE				(   a  )      ->      int:
					if not nums:
										return 0
					__A	:						Optional[int]       =				nums[0]
					__A	:						str       =				0
					for num in nums[1:]:
										__A    ,				__A	:						Tuple       =				(
										    max_excluding + num,
										    max(a					,						a  ),
										)
					return max(a					,						a  )


if __name__ == "__main__":
				import doctest

				doctest.testmod()




