MathCastle
Pre-CalculusChallengeAdvanced Number Theory

Advanced Number Theory · Challenge problem

For a positive integer nn, let z(n)z(n) be the number of trailing zeros of n!n! when written in base 1010. For example z(10)=2z(10) = 2 and z(24)=4z(24) = 4, and no factorial ends in exactly 55 zeros. How many integers kk with 1≤k≤10001 \le k \le 1000 are not equal to z(n)z(n) for any positive integer nn?