
    Design a scoring algorithm for an automated grading system that calculates partial credit based on identified knowledge gaps. Starting from the maximum possible score, the system deducts points in increments of 2 for each performance gap detected, continuing until no more points can be deducted. The final score is determined by summing the original maximum score and all possible partial credit points above zero that could be awarded at each deduction level. For example, if the maximum score is 10, the system would sum 10 + 8 + 6 + 4 + 2 to determine the total possible partial credit points available for that assessment. The algorithm should work with any positive integer maximum score and automatically stop calculations when reaching zero or negative points.
    

    
def sum_series(n):
    """
    Design a scoring algorithm for an automated grading system that calculates partial credit based on identified knowledge gaps. Starting from the maximum possible score, the system deducts points in increments of 2 for each performance gap detected, continuing until no more points can be deducted. The final score is determined by summing the original maximum score and all possible partial credit points above zero that could be awarded at each deduction level. For example, if the maximum score is 10, the system would sum 10 + 8 + 6 + 4 + 2 to determine the total possible partial credit points available for that assessment. The algorithm should work with any positive integer maximum score and automatically stop calculations when reaching zero or negative points.
    

    """
def sum_series(n):
    """
    Design a scoring algorithm for an automated grading system that calculates partial credit based on identified knowledge gaps. Starting from the maximum possible score, the system deducts points in increments of 2 for each performance gap detected, continuing until no more points can be deducted. The final score is determined by summing the original maximum score and all possible partial credit points above zero that could be awarded at each deduction level. For example, if the maximum score is 10, the system would sum 10 + 8 + 6 + 4 + 2 to determine the total possible partial credit points available for that assessment. The algorithm should work with any positive integer maximum score and automatically stop calculations when reaching zero or negative points.
    

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