
    Write a function that calculates a patient's medication non-adherence risk score by taking in the number of priority-level alerts to consider, and returning the sum of squared priority values for consecutive missed doses. Each missed dose is assigned an odd-numbered priority level starting from 1, and the function should compute the total risk score using the first n priority levels.
    

    
def square_Sum(n):
    """
    Write a function that calculates a patient's medication non-adherence risk score by taking in the number of priority-level alerts to consider, and returning the sum of squared priority values for consecutive missed doses. Each missed dose is assigned an odd-numbered priority level starting from 1, and the function should compute the total risk score using the first n priority levels.
    

    """
def square_Sum(n):
    """
    Write a function that calculates a patient's medication non-adherence risk score by taking in the number of priority-level alerts to consider, and returning the sum of squared priority values for consecutive missed doses. Each missed dose is assigned an odd-numbered priority level starting from 1, and the function should compute the total risk score using the first n priority levels.
    

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