
    Given a patient's total medication count, calculate the sum of all possible medication grouping sizes that evenly divide into the total count, as this helps identify potential interaction patterns between drug combinations. For example, if a patient takes 12 medications, we need to find all possible grouping sizes (1, 2, 3, 4, 6, 12) that divide evenly into 12 and sum these numbers to assess the total interaction risk factor.
    

    
def sum_div(number):
    """
    Given a patient's total medication count, calculate the sum of all possible medication grouping sizes that evenly divide into the total count, as this helps identify potential interaction patterns between drug combinations. For example, if a patient takes 12 medications, we need to find all possible grouping sizes (1, 2, 3, 4, 6, 12) that divide evenly into 12 and sum these numbers to assess the total interaction risk factor.
    

    """
def sum_div(number):
    """
    Given a patient's total medication count, calculate the sum of all possible medication grouping sizes that evenly divide into the total count, as this helps identify potential interaction patterns between drug combinations. For example, if a patient takes 12 medications, we need to find all possible grouping sizes (1, 2, 3, 4, 6, 12) that divide evenly into 12 and sum these numbers to assess the total interaction risk factor.
    

    """
    divisors = [1]
    for i in range(2, number):
        if number % i == 0:
            divisors.append(i)
    return sum(divisors)