Placement AptitudeHardTCS NQT Advanced · Infosys pattern

How many zeros are there at the end of 50! when it is written in base 12?

  1. A. 22
  2. B. 12
  3. C. 23
  4. D. 47

Correct answer: A. 22

12 = 2² × 3. Power of 2 in 50! = 25 + 12 + 6 + 3 + 1 = 47 → 47 // 2 = 23 copies of 2². Power of 3 = 16 + 5 + 1 = 22. Zeros = min(23, 22) = 22. 23 forgets that 3 is the scarcer factor here.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic