Placement AptitudeModerateTCS NQT Advanced · Infosys pattern

What is the HCF of 2¹² − 1 and 2¹⁸ − 1?

  1. A. 4095
  2. B. 3
  3. C. 63
  4. D. 7

Correct answer: C. 63

gcd(2ᵐ − 1, 2ⁿ − 1) = 2^gcd(m, n) − 1. gcd(12, 18) = 6, so the HCF is 2⁶ − 1 = 63. 7 = 2³ − 1 is a common factor, but not the highest.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic