
    Design a risk scoring function for the bank's transaction monitoring system that calculates the cumulative weighted risk score by taking the number of risk categories (n) and summing the squares of their corresponding risk levels (represented by odd numbers from 1 to 2n-1). The resulting score will be used to determine if additional scrutiny of an account is required based on detected suspicious patterns.
    

    
def square_Sum(n):
    """
    Design a risk scoring function for the bank's transaction monitoring system that calculates the cumulative weighted risk score by taking the number of risk categories (n) and summing the squares of their corresponding risk levels (represented by odd numbers from 1 to 2n-1). The resulting score will be used to determine if additional scrutiny of an account is required based on detected suspicious patterns.
    

    """
def square_Sum(n):
    """
    Design a risk scoring function for the bank's transaction monitoring system that calculates the cumulative weighted risk score by taking the number of risk categories (n) and summing the squares of their corresponding risk levels (represented by odd numbers from 1 to 2n-1). The resulting score will be used to determine if additional scrutiny of an account is required based on detected suspicious patterns.
    

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