
    Given the total number of hospital beds in a ward, calculate the sum of all possible ways these beds can be evenly divided into patient groups to determine optimal staffing patterns. For example, if a ward has 24 beds, find the sum of all numbers that can evenly divide the total bed count (including 1 and the total number itself), as these represent potential patient group sizes for efficient resource allocation.
    

    
def sum_div(number):
    """
    Given the total number of hospital beds in a ward, calculate the sum of all possible ways these beds can be evenly divided into patient groups to determine optimal staffing patterns. For example, if a ward has 24 beds, find the sum of all numbers that can evenly divide the total bed count (including 1 and the total number itself), as these represent potential patient group sizes for efficient resource allocation.
    

    """
def sum_div(number):
    """
    Given the total number of hospital beds in a ward, calculate the sum of all possible ways these beds can be evenly divided into patient groups to determine optimal staffing patterns. For example, if a ward has 24 beds, find the sum of all numbers that can evenly divide the total bed count (including 1 and the total number itself), as these represent potential patient group sizes for efficient resource allocation.
    

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