20 lines
390 B
Python
20 lines
390 B
Python
def compute_divisors(num):
|
|
pass
|
|
|
|
def sum_of_divisors(num):
|
|
pass
|
|
|
|
def divisor_count(num):
|
|
pass
|
|
|
|
def get_totatives(num):
|
|
pass
|
|
|
|
def totient(num):
|
|
pass
|
|
|
|
assert( compute_divisors(60) == [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60] )
|
|
assert( sum_of_divisors(60) == 168 )
|
|
assert( divisor_count(60) == 12 )
|
|
assert( get_totatives(30) == [1, 7, 11, 13, 17, 19, 23, 29] )
|
|
assert( totient(30) == 8 ) |