Data Structures & AlgorithmsModerateICPC regional · Amazon SDE OA

How many positive divisors of 2^5 * 3^2 * 7 are odd?

  1. A. 24
  2. B. 36
  3. C. 6
  4. D. 35

Correct answer: C. 6

Odd divisors avoid the factor 2, so they are the divisors of 3^2 * 7, of which there are (2+1)(1+1) = 6. The total divisor count 6 * 3 * 2 = 36 is a different quantity.

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

Exams that ask this topic