Data Structures & AlgorithmsHardGATE CS · ICPC regional

How many positive divisors of 720 are perfect squares?

  1. A. 7
  2. B. 4
  3. C. 9
  4. D. 6

Correct answer: D. 6

720 = 2^4 * 3^2 * 5. A divisor is a square exactly when every prime exponent is even, so count choices of even exponents: 3 choices for 2^4, 2 for 3^2, 1 for 5.

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

Exams that ask this topic