Quantitative AptitudeVery hardInfosys SP · TCS NQT Prime

How many trailing zeros does the product 1! × 2! × 3! × … × 30! have?

  1. A. 81
  2. B. 87
  3. C. 7
  4. D. 93

Correct answer: B. 87

Powers of 2 are plentiful, so count 5s: the exponent of 5 in k! is ⌊k/5⌋ + ⌊k/25⌋. Summing for k = 1 to 30 gives 81 from ⌊k/5⌋ and 6 from ⌊k/25⌋ (k = 25 to 30), total 87.

More Number System, LCM and HCF questions

Exams that ask this topic