2005 iTest Problems/Problem 37
Revision as of 18:43, 13 October 2025 by Mathloveryeah (talk | contribs)
Problem
How many zeroes appear at the end of
factorial?
Solution 1
Since we want to find the number of zeros at the end of
, it is the same as finding the largest value of
such that
is a divisor of
Since
and there are more factors of
than
finding the number of zeros at the end of
is the same as finding the largest value of
such that
that is a divisor of
We then can use the floor function to find the factors of
in
.This is done by Legendre's formula. Since
, we only need to compute up to 3. Using the formula, we find that
.