中文 / English
← Archive

How Many Zeros Hides 100!

Issue 5 Warm-up Published 17 Aug 2026

Tier Warm-up — How Many Zeros Hides 100!

The problem

The number ends in a long run of zeros. How many trailing zeros does it have — that is, what is the largest such that divides ?
  • A trailing zero is produced by a factor .
  • You are asked for the count, not for the value of .

Take a minute

Reveal hint 1
Every factor of needs one and one . Which of the two runs out first in ?
Reveal hint 2
Count factors of in three passes: multiples of , of , and of .

Solution

Answer trailing zeros.

Derivation

  1. Decide which prime is the bottleneck.

  2. Count multiples of .

  3. Add the second factor from multiples of .

  4. Add the third factor from .

  5. Total.