
    Write a function to determine if a bus route's current passenger count and its target capacity have the same sum of possible group configurations, where group configurations are represented by the factors of each number. For example, a current count of 12 passengers can be grouped as 1, 2, 3, 4, 6, or 12 people (factors of 12), while a target capacity of 15 can be grouped as 1, 3, 5, or 15 people (factors of 15), and the function should compare the sums of these possible grouping numbers.
    

    
import math

def div_sum(n):
    total = 1
    i = 2
    while i * i <= n:
        if n % i == 0:
            total = total + i + math.floor(n / i)
        i += 1
    return total

def are_equivalent(num1, num2):
    """
    Write a function to determine if a bus route's current passenger count and its target capacity have the same sum of possible group configurations, where group configurations are represented by the factors of each number. For example, a current count of 12 passengers can be grouped as 1, 2, 3, 4, 6, or 12 people (factors of 12), while a target capacity of 15 can be grouped as 1, 3, 5, or 15 people (factors of 15), and the function should compare the sums of these possible grouping numbers.
    

    """
import math

def div_sum(n):
    total = 1
    i = 2
    while i * i <= n:
        if n % i == 0:
            total = total + i + math.floor(n / i)
        i += 1
    return total

def are_equivalent(num1, num2):
    """
    Write a function to determine if a bus route's current passenger count and its target capacity have the same sum of possible group configurations, where group configurations are represented by the factors of each number. For example, a current count of 12 passengers can be grouped as 1, 2, 3, 4, 6, or 12 people (factors of 12), while a target capacity of 15 can be grouped as 1, 3, 5, or 15 people (factors of 15), and the function should compare the sums of these possible grouping numbers.
    

    """
    return div_sum(num1) == div_sum(num2)