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