Data Structures & AlgorithmsModerateSSC CGL Tier 2 · TCS NQT

Problem: How many positive divisors does the number 2^10 × 3^4 have?

  1. A. 55
  2. B. 40
  3. C. 16
  4. D. 54

Correct answer: A. 55

A divisor is 2^a · 3^b with 0 ≤ a ≤ 10 and 0 ≤ b ≤ 4, so there are 11 × 5 = 55. Multiplying the exponents gives 40, adding them gives 16, and excluding the number itself gives 54.

More Coding Interview Problems questions

Exams that ask this topic