def hexagonal(number: int) -> int:
    if not isinstance(number, int):
        raise TypeError(f"Input value of [number={number}] must be an integer")
    if number < 1:
        raise ValueError("Input must be a positive integer")
    return number * (2 * number - 1)