
    Given a student's completion counts for two different types of learning activities (primary and alternative styles), determine if these learning approaches are equally effective by comparing if the sum of all possible ways to group these completed activities (where groups must be exact divisors of the total) are the same for both styles. For example, if a student completed 12 visual exercises and 15 auditory exercises, we would compare the sums of all possible equal grouping sizes for each style (1,2,3,4,6,12 vs 1,3,5,15) to determine if these learning styles show similar pattern compatibility.
    

    
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):
    """
    Given a student's completion counts for two different types of learning activities (primary and alternative styles), determine if these learning approaches are equally effective by comparing if the sum of all possible ways to group these completed activities (where groups must be exact divisors of the total) are the same for both styles. For example, if a student completed 12 visual exercises and 15 auditory exercises, we would compare the sums of all possible equal grouping sizes for each style (1,2,3,4,6,12 vs 1,3,5,15) to determine if these learning styles show similar pattern compatibility.
    

    """
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):
    """
    Given a student's completion counts for two different types of learning activities (primary and alternative styles), determine if these learning approaches are equally effective by comparing if the sum of all possible ways to group these completed activities (where groups must be exact divisors of the total) are the same for both styles. For example, if a student completed 12 visual exercises and 15 auditory exercises, we would compare the sums of all possible equal grouping sizes for each style (1,2,3,4,6,12 vs 1,3,5,15) to determine if these learning styles show similar pattern compatibility.
    

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