
    In a ride-sharing network that organizes pickup locations in expanding hexagonal zones from a central point, calculate the total number of possible pickup locations in the nth zone, where each new zone forms a hexagonal ring around previous zones. The number of pickup locations in each zone follows the centered hexagonal number pattern, which helps optimize route planning and reduce urban congestion.
    

    
def centered_hexagonal_number(n):
    """
    In a ride-sharing network that organizes pickup locations in expanding hexagonal zones from a central point, calculate the total number of possible pickup locations in the nth zone, where each new zone forms a hexagonal ring around previous zones. The number of pickup locations in each zone follows the centered hexagonal number pattern, which helps optimize route planning and reduce urban congestion.
    

    """
def centered_hexagonal_number(n):
    """
    In a ride-sharing network that organizes pickup locations in expanding hexagonal zones from a central point, calculate the total number of possible pickup locations in the nth zone, where each new zone forms a hexagonal ring around previous zones. The number of pickup locations in each zone follows the centered hexagonal number pattern, which helps optimize route planning and reduce urban congestion.
    

    """
    return 3 * n * (n - 1) + 1