
    Design a health risk assessment algorithm that calculates a patient's cumulative health indicator based on their initial baseline health score. Starting from the baseline score, the system performs periodic health assessments at fixed intervals, where each assessment decreases the score by 2 points to account for potential deterioration. The algorithm should sum all assessment scores until the adjusted score reaches zero or becomes negative, providing healthcare providers with a comprehensive risk indicator. For example, if a patient starts with a baseline score of 7, the system would sum 7 + 5 + 3 + 1 to determine their overall health risk profile. This predictive measure helps medical staff identify patients who may require increased monitoring or intervention based on their declining health patterns.
    

    
def sum_series(n):
    """
    Design a health risk assessment algorithm that calculates a patient's cumulative health indicator based on their initial baseline health score. Starting from the baseline score, the system performs periodic health assessments at fixed intervals, where each assessment decreases the score by 2 points to account for potential deterioration. The algorithm should sum all assessment scores until the adjusted score reaches zero or becomes negative, providing healthcare providers with a comprehensive risk indicator. For example, if a patient starts with a baseline score of 7, the system would sum 7 + 5 + 3 + 1 to determine their overall health risk profile. This predictive measure helps medical staff identify patients who may require increased monitoring or intervention based on their declining health patterns.
    

    """
def sum_series(n):
    """
    Design a health risk assessment algorithm that calculates a patient's cumulative health indicator based on their initial baseline health score. Starting from the baseline score, the system performs periodic health assessments at fixed intervals, where each assessment decreases the score by 2 points to account for potential deterioration. The algorithm should sum all assessment scores until the adjusted score reaches zero or becomes negative, providing healthcare providers with a comprehensive risk indicator. For example, if a patient starts with a baseline score of 7, the system would sum 7 + 5 + 3 + 1 to determine their overall health risk profile. This predictive measure helps medical staff identify patients who may require increased monitoring or intervention based on their declining health patterns.
    

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