Mathematics (JEE)ModerateCodeforces Div2 B

How many trailing zeros does 150! have when written in base 12?

  1. A. 72
  2. B. 146
  3. C. 73
  4. D. 145

Correct answer: A. 72

Since 12 = 2^2 * 3, each trailing zero needs two factors of 2 and one factor of 3; v2(150!) = 146 and v3(150!) = 72, so the count is min(146 // 2, 72) = 72.

More Permutations, Combinations and Probability questions

Exams that ask this topic