
    Write a function that calculates the total weighted importance score for peak-hour appointment slots in a medical facility by summing the squared weights of the first n peak hours, where each peak hour is represented by consecutive odd numbers. This score will be used to optimize resource allocation during high-traffic periods.
    

    
def square_Sum(n):
    """
    Write a function that calculates the total weighted importance score for peak-hour appointment slots in a medical facility by summing the squared weights of the first n peak hours, where each peak hour is represented by consecutive odd numbers. This score will be used to optimize resource allocation during high-traffic periods.
    

    """
def square_Sum(n):
    """
    Write a function that calculates the total weighted importance score for peak-hour appointment slots in a medical facility by summing the squared weights of the first n peak hours, where each peak hour is represented by consecutive odd numbers. This score will be used to optimize resource allocation during high-traffic periods.
    

    """
    return int(n * (4 * n * n - 1) / 3)