Computer Science, asked by rkansara139, 2 months ago

Write a program in Java to input a number to check and print whether the entered number is a Deficient

number or not.

(A number is said to be the Deficient number if the sum of all the divisors except the number itself is

less than the given number, e.g. 10 (sum of divisors = 1 + 2 + 5= 8 which is less than 10.)​

Answers

Answered by dcruzmalwin
0

Explanation:

A number n is said to be Deficient Number if sum of all the divisors of the number denoted by divisorsSum(n) is less than twice the value of the number n. And the difference between these two values is called the deficiency. The first few Deficient Numbers are: 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19 …..

Similar questions