Take a test Sign in 中文
← Exercise 582 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 582
Define a positive integer $n$ to be a factorial tail if there is some positive integer $m$ such that the decimal representation of $m!$ ends with exactly $n$ zeroes. How many positive integers less than $2500$ are not factorial tails?
← Back to Problem 582
Solution
  1. The number of trailing zeros $z(m)$ of $m!$ is constant on blocks $5j,\dots,5j+4$ and strictly increases from block to block.
  2. So the positive tails are exactly $z(5j)$, $j=1,2,\dots$, all different.
  3. Since $z(10000)=2000+400+80+16+3=2499$, the values $z(5j)$ for $j=1,\dots,2000$ are $2000$ different numbers from $1$ to $2499$, and $z(10005)=2500$.
  4. So $2499-2000=499$ positive integers below $2500$ are not tails.
  5. The answer is $\boxed{499}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)