Problem 576: (2006 AIME I, 4)
Let $N$ be the number of consecutive 0's at the right end of the decimal representation of the product $1!2!3!4!\cdots99!100!.$ Find the remainder when $N$ is divided by 1000.
- There are more factors of $2$ than of $5$, so $N$ is the number of factors $5$ in the product. The number $j$ is a factor of $k!$ for $k=j,\dots,100$, i.e.\ $101-j$ times.
- Each multiple of $5$ contributes one $5$ for each of its appearances, and each multiple of $25$ one more: $N=\sum_{5\mid j}(101-j)+\sum_{25\mid j}(101-j)$.
- The first sum is $96+91+\cdots+1=\frac{20\cdot97}2=970$, the second $76+51+26+1=154$. So $N=1124$.
- The remainder is $124$. The answer is $\boxed{124}$.
Let $N$ be the number of consecutive 0's at the right end of the decimal representation of the product $1!2!3!4!\cdots79!80!.$ Find the remainder when $N$ is divided by 1000.