
    Design a function that calculates the maximum number of potential connections in the nth tier of a social network's star-shaped connection pattern, where each tier expands the network reach through mutual connections. The star pattern at each tier n is formed by a central user connecting to all users at the points of the star, with each tier following the sequence: 1, 13, 37, 73, 121, and so on.
    

    
def find_star_num(n):
    """
    Design a function that calculates the maximum number of potential connections in the nth tier of a social network's star-shaped connection pattern, where each tier expands the network reach through mutual connections. The star pattern at each tier n is formed by a central user connecting to all users at the points of the star, with each tier following the sequence: 1, 13, 37, 73, 121, and so on.
    

    """
def find_star_num(n):
    """
    Design a function that calculates the maximum number of potential connections in the nth tier of a social network's star-shaped connection pattern, where each tier expands the network reach through mutual connections. The star pattern at each tier n is formed by a central user connecting to all users at the points of the star, with each tier following the sequence: 1, 13, 37, 73, 121, and so on.
    

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