
    Given a patient's heart rate reading from their wearable monitor, calculate the sum of all possible rhythmic intervals that evenly divide into the overall heart rate, which can help identify natural patterns in the cardiac cycle. For example, if a patient has a heart rate of 60 BPM, the function should sum all the intervals that divide evenly into 60, providing a metric that cardiologists can use to assess the regularity of the heart's rhythm.
    

    
def sum_div(number):
    """
    Given a patient's heart rate reading from their wearable monitor, calculate the sum of all possible rhythmic intervals that evenly divide into the overall heart rate, which can help identify natural patterns in the cardiac cycle. For example, if a patient has a heart rate of 60 BPM, the function should sum all the intervals that divide evenly into 60, providing a metric that cardiologists can use to assess the regularity of the heart's rhythm.
    

    """
def sum_div(number):
    """
    Given a patient's heart rate reading from their wearable monitor, calculate the sum of all possible rhythmic intervals that evenly divide into the overall heart rate, which can help identify natural patterns in the cardiac cycle. For example, if a patient has a heart rate of 60 BPM, the function should sum all the intervals that divide evenly into 60, providing a metric that cardiologists can use to assess the regularity of the heart's rhythm.
    

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