
    Write a function that calculates the total weighted reliability score of peak appointment periods by taking the sum of squares of the first n successful time slots, where n represents the number of historically consistent scheduling windows to analyze. The function should only consider even-numbered slots as they represent peak periods with higher patient attendance rates, and the squared values emphasize the significance of proven reliable time periods in the scheduling system.
    

    
def square_Sum(n):
    """
    Write a function that calculates the total weighted reliability score of peak appointment periods by taking the sum of squares of the first n successful time slots, where n represents the number of historically consistent scheduling windows to analyze. The function should only consider even-numbered slots as they represent peak periods with higher patient attendance rates, and the squared values emphasize the significance of proven reliable time periods in the scheduling system.
    

    """
def square_Sum(n):
    """
    Write a function that calculates the total weighted reliability score of peak appointment periods by taking the sum of squares of the first n successful time slots, where n represents the number of historically consistent scheduling windows to analyze. The function should only consider even-numbered slots as they represent peak periods with higher patient attendance rates, and the squared values emphasize the significance of proven reliable time periods in the scheduling system.
    

    """
    return int(2 * n * (n + 1) * (2 * n + 1) / 3)