Data Structures & AlgorithmsModerateTCS NQT · SSC CGL Tier 2

Problem: The product 2^3 · 3^2 · 5^1 · 7^2 has how many positive divisors?

  1. A. 12
  2. B. 36
  3. C. 17640
  4. D. 72

Correct answer: D. 72

Divisor count = (3+1)(2+1)(1+1)(2+1) = 4 · 3 · 2 · 3 = 72. Adding the (e + 1) terms (or multiplying the exponents) gives 12, dropping the factor for 5 gives 36, and 17640 is the number itself.

More Coding Interview Problems questions

Exams that ask this topic