'''simple docstring'''

def __UpperCamelCase(   _A					:				int = 60_08_51_47_51_43    ):
   '''simple docstring'''

   try:
      UpperCAmelCase__							:				int   				=  int(_A    )
   except (TypeError, ValueError):
      raise TypeError('''Parameter n must be int or castable to int.'''    )
   if n <= 0:
      raise ValueError('''Parameter n must be greater than or equal to one.'''    )
   UpperCAmelCase__							:				Any   				=  2
   UpperCAmelCase__							:				List[Any]   				=  0
   if n == 2:
      return 2
   while n > 2:
      while n % i != 0:
         i += 1
      UpperCAmelCase__							:				Optional[int]   				=  i
      while n % i == 0:
         UpperCAmelCase__							:				Union[str, Any]   				=  n // i
      i += 1
   return int(_A    )


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





'''simple docstring'''

def __UpperCamelCase(   _A					:				int    ):
   '''simple docstring'''

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


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




