Question: The python program creates a list of the proper divisors of a given number. Then it will take 2 numbers as an input,(range) and returns
The python program creates a list of the proper divisors of a given number. Then it will take 2 numbers as an input,(range) and returns 3 lists for each type of numbers. Function decides if the number is :
Abundant: The sum of the proper factors is greater than the number itself.
Deficient: The sum of the proper factors is less than the number itself.
Perfect: The sum of the proper factors is equal to than the number itself.
-------- example ------
if x(n) < n then n is classed as deficient if x(n) == n then n is classed as perfect if x(n) > n then n is classed as abundant
example :
6 has proper divisors of 1, 2, and 3.
1 + 2 + 3 = 6, so 6 is classed as a perfect number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
