Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Check whether an input is an abundant number
ResourceFunction["AbundantNumberQ"][n] checks whether the sum of the proper divisors of the integer n is greater than n. |
Check whether 5 is abundant:
| In[1]:= |
| Out[1]= |
Check whether 12 is abundant:
| In[2]:= |
| Out[2]= |
For noninteger input, AbundantNumberQ returns False:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Prime numbers are never abundant:
| In[5]:= |
| Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License