
    Design a function that calculates the total number of parking spaces available in a hexagonal parking zone layout when given a specific tier number, where each tier expands outward from a central parking spot in a hexagonal pattern. The parking layout follows a systematic expansion where each new tier adds spaces in a hexagonal ring around the previous tier, and the function should determine the cumulative total of all parking spaces up to and including the specified tier.
    

    
def hexagonal_num(n):
    """
    Design a function that calculates the total number of parking spaces available in a hexagonal parking zone layout when given a specific tier number, where each tier expands outward from a central parking spot in a hexagonal pattern. The parking layout follows a systematic expansion where each new tier adds spaces in a hexagonal ring around the previous tier, and the function should determine the cumulative total of all parking spaces up to and including the specified tier.
    

    """
def hexagonal_num(n):
    """
    Design a function that calculates the total number of parking spaces available in a hexagonal parking zone layout when given a specific tier number, where each tier expands outward from a central parking spot in a hexagonal pattern. The parking layout follows a systematic expansion where each new tier adds spaces in a hexagonal ring around the previous tier, and the function should determine the cumulative total of all parking spaces up to and including the specified tier.
    

    """
    return n * (2 * n - 1)