
    Design a function that calculates a student's weighted writing score by taking the number of completed assignments and summing the squared importance values of each submission, where importance increases by 2 for each consecutive assignment starting from 1. For example, if a student completes 3 assignments, their weighted score would be calculated as 1² + 3² + 5².
    

    
def square_Sum(n):
    """
    Design a function that calculates a student's weighted writing score by taking the number of completed assignments and summing the squared importance values of each submission, where importance increases by 2 for each consecutive assignment starting from 1. For example, if a student completes 3 assignments, their weighted score would be calculated as 1² + 3² + 5².
    

    """
def square_Sum(n):
    """
    Design a function that calculates a student's weighted writing score by taking the number of completed assignments and summing the squared importance values of each submission, where importance increases by 2 for each consecutive assignment starting from 1. For example, if a student completes 3 assignments, their weighted score would be calculated as 1² + 3² + 5².
    

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