
    Design a function to calculate a student's cumulative engagement score throughout an academic term. Starting with an initial engagement score, the system tracks how the score decreases by 2 points at each evaluation interval until reaching zero or a negative value. The calculation should sum up all engagement scores across these intervals (initial score + (initial score-2) + (initial score-4)...) to produce a comprehensive engagement metric. This engagement tracking system helps identify students at risk of dropping out by monitoring the pattern and total magnitude of their declining participation. The total score serves as an early warning indicator, where lower sums suggest a more rapid decline in engagement and a higher dropout risk.
    

    
def sum_series(n):
    """
    Design a function to calculate a student's cumulative engagement score throughout an academic term. Starting with an initial engagement score, the system tracks how the score decreases by 2 points at each evaluation interval until reaching zero or a negative value. The calculation should sum up all engagement scores across these intervals (initial score + (initial score-2) + (initial score-4)...) to produce a comprehensive engagement metric. This engagement tracking system helps identify students at risk of dropping out by monitoring the pattern and total magnitude of their declining participation. The total score serves as an early warning indicator, where lower sums suggest a more rapid decline in engagement and a higher dropout risk.
    

    """
def sum_series(n):
    """
    Design a function to calculate a student's cumulative engagement score throughout an academic term. Starting with an initial engagement score, the system tracks how the score decreases by 2 points at each evaluation interval until reaching zero or a negative value. The calculation should sum up all engagement scores across these intervals (initial score + (initial score-2) + (initial score-4)...) to produce a comprehensive engagement metric. This engagement tracking system helps identify students at risk of dropping out by monitoring the pattern and total magnitude of their declining participation. The total score serves as an early warning indicator, where lower sums suggest a more rapid decline in engagement and a higher dropout risk.
    

    """
    if n < 1:
        return 0
    else:
        return n + sum_series(n - 2)