Find the smallest such that ends with 10 zeroes.
Problem 795
Official solution
The number of zeroes that ends with is the largest power of 10 dividing . The exponent of 5 dividing exceeds the exponent of 2 dividing , so we simply seek the exponent of 5 dividing . For a number less than 125, this exponent is just the number of multiples of 5, but not 25, less than plus twice the number of multiples of 25 less than . Counting up, we see that 24! ends with 4 zeroes while 25! ends with 6 zeroes, so cannot end with 5 zeroes. Continuing to count up, we see that the smallest such that ends with 10 zeroes is 45.