A maths teacher writes the product of every whole number from 1 to 100 on the board, and asks how many zeros it ends with.
- The product of 1 to 100 is written 100! (factorial).
- A zero at the end comes from a factor of 10, which is 2 x 5.
How many zeros are at the end of 100!?
Think it through first. When you're ready:
24
There are always more factors of 2 than factors of 5, so count the factors of 5. Multiples of 5 contribute 20 factors (5, 10, ..., 100), and multiples of 25 add another 4 (25, 50, 75, 100). That is 20 + 4 = 24 factors of 5, so 24 zeros.