Placement AptitudeVery hardProduct company OA · CAT level

For how many positive integers n does n! end in exactly 30 zeros?

  1. A. 5
  2. B. 1
  3. C. 4
  4. D. 0

Correct answer: D. 0

The number of trailing zeros of n! is ⌊n/5⌋ + ⌊n/25⌋ + ⌊n/125⌋ + … For n = 120 to 124 this is 24 + 4 = 28. At n = 125 the count jumps by three (125 = 5³ adds three fives at once) to 25 + 5 + 1 = 31. So the values 29 and 30 are skipped altogether and no factorial ends in exactly 30 zeros. 5 is the usual answer (five consecutive n share each attainable count), but it assumes every count is attainable.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic