Computer Science, asked by vaishnaviisingh21, 9 months ago

An abundant number is a number for which the sum of its proper divisors(excluding number itself) is greater than the original number.Write a program to input a number and check whether it's an abundant number or not.
Sample input:12
Sample output:
It's proper divisors are 1,2,3,4,6
Sum= 1+2+3+4+6=16
Hence 12 is an abundant number
Guys plz solve this

Answers

Answered by sainishubham4716
1

Answer:

A number n is said to be Abundant Number if sum of all the proper divisors of the number denoted by sum(n) is greater than the value of the number n. And the difference between these two values is called the abundance.

Mathematically, if below condition holds the number is said to be Abundant number:

sum(n)> n

abundance = sum(n) - n

sum(n): aliquot sum - The sum of all proper divisors of n

Given a number n, our task is to find if this number is Abundant number or not.

The first few Abundant Numbers are: 12, 18, 20, 24, 30, 36, 40, 42, 48, 54, 56, 60, 66 …..

Similar questions