
    Design an adaptive learning algorithm that calculates the total difficulty score for a student's practice session, where the score is determined by squaring the complexity rating of each odd-numbered problem up to the student's current difficulty level. The complexity rating starts at 1 and increases by 2 for each subsequent problem, reflecting the progressive challenge of the adaptive learning system.
    

    
def square_Sum(n):
    """
    Design an adaptive learning algorithm that calculates the total difficulty score for a student's practice session, where the score is determined by squaring the complexity rating of each odd-numbered problem up to the student's current difficulty level. The complexity rating starts at 1 and increases by 2 for each subsequent problem, reflecting the progressive challenge of the adaptive learning system.
    

    """
def square_Sum(n):
    """
    Design an adaptive learning algorithm that calculates the total difficulty score for a student's practice session, where the score is determined by squaring the complexity rating of each odd-numbered problem up to the student's current difficulty level. The complexity rating starts at 1 and increases by 2 for each subsequent problem, reflecting the progressive challenge of the adaptive learning system.
    

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