Data Structures & AlgorithmsModerateGATE CS · ICPC regional

What is the sum of all divisors of 36 (sigma function)?

  1. A. 91
  2. B. 92
  3. C. 93
  4. D. 96

Correct answer: A. 91

The divisors of 36 are 1, 2, 3, 4, 6, 9, 12, 18 and 36, which sum to 91. The multiplicative formula (1+2+4)(1+3+9) gives the same result.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic