
    Given the total number of patient visits during a specified period, determine the sum of all possible ways this patient load could be evenly distributed across different staffing shifts to help optimize emergency room scheduling. For example, if there were 28 total visits, we need to find the sum of all numbers that could evenly divide the total visits (1, 2, 4, 7, 14, 28) to evaluate potential shift distribution patterns.
    

    
def sum_div(number):
    """
    Given the total number of patient visits during a specified period, determine the sum of all possible ways this patient load could be evenly distributed across different staffing shifts to help optimize emergency room scheduling. For example, if there were 28 total visits, we need to find the sum of all numbers that could evenly divide the total visits (1, 2, 4, 7, 14, 28) to evaluate potential shift distribution patterns.
    

    """
def sum_div(number):
    """
    Given the total number of patient visits during a specified period, determine the sum of all possible ways this patient load could be evenly distributed across different staffing shifts to help optimize emergency room scheduling. For example, if there were 28 total visits, we need to find the sum of all numbers that could evenly divide the total visits (1, 2, 4, 7, 14, 28) to evaluate potential shift distribution patterns.
    

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