{"id":18579,"date":"2021-08-26T10:38:15","date_gmt":"2021-08-26T05:08:15","guid":{"rendered":"https:\/\/python-programs.com\/?p=18579"},"modified":"2021-11-22T18:37:18","modified_gmt":"2021-11-22T13:07:18","slug":"python-program-to-check-abundant-number-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-abundant-number-or-not\/","title":{"rendered":"Python Program to Check Abundant Number or Not"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Reverse the Order of Palindrome Words in a Sentence<\/a>
\nAbundant Number:<\/strong><\/p>\n

An abundant number is one in which the sum of the number’s proper divisors is greater than the number itself.<\/p>\n

To check for an Abundant number, find and add the number’s proper divisors, then compare the sum to the number; if the sum is greater than the number, the number is an Abundant number; otherwise, the number is not an Abundant number. The difference between the sum and the number is referred to as abundant.<\/p>\n

For example :<\/p>\n

Let Number = 18<\/p>\n

The proper divisors are:<\/p>\n

1*18<\/p>\n

6*3<\/p>\n

9*2<\/p>\n

The sum=1+6+9+3+2= 21 >18<\/p>\n

Therefore 18 is an Abundant Number.<\/p>\n

Some of the examples of Abundant Numbers are:<\/p>\n

12, 18, 20, 24, 30, 36, 40, 42, 48, 54, 56, 60, 66…..and so on.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 24<\/pre>\n

Output:<\/strong><\/p>\n

The given Number { 24 } is an Abundant Number<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number = 25<\/pre>\n

Output:<\/strong><\/p>\n

The given Number { 25 } is Not an Abundant Number<\/pre>\n

Program to Check Abundant Number or Not in Python<\/h2>\n

Below are the ways to check whether the given number is an Abundant Number or not in Python<\/p>\n