Data Structures & AlgorithmsModerateICPC regional · TCS NQT

Problem: What is the sum of the proper divisors of 220 (divisors less than 220)?

  1. A. 284
  2. B. 504
  3. C. 18
  4. D. 11

Correct answer: A. 284

Proper divisors 1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110 sum to 284 (220 and 284 are amicable). Including 220 gives 504, adding the prime factors 2 + 5 + 11 gives 18, and 11 counts the divisors.

More Coding Interview Problems questions

Exams that ask this topic