
    Design a function that calculates the total mastery score for a student's learning progression, where the score for each completed level is the square of its even-numbered difficulty rating. Given the number of levels n in the learning sequence, compute the cumulative mastery score by summing the squares of the first n even-numbered difficulty ratings.
    

    
def square_Sum(n):
    """
    Design a function that calculates the total mastery score for a student's learning progression, where the score for each completed level is the square of its even-numbered difficulty rating. Given the number of levels n in the learning sequence, compute the cumulative mastery score by summing the squares of the first n even-numbered difficulty ratings.
    

    """
def square_Sum(n):
    """
    Design a function that calculates the total mastery score for a student's learning progression, where the score for each completed level is the square of its even-numbered difficulty rating. Given the number of levels n in the learning sequence, compute the cumulative mastery score by summing the squares of the first n even-numbered difficulty ratings.
    

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