Suppose $a$, $b$ and $c$ are positive integers with $a+b+c=2006$, and $a!b!c!=m\cdot 10^n$, where $m$ and $n$ are integers and $m$ is not divisible by $10$. What is the smallest possible value of $n$? $\textbf{(A)}\ 489 \qquad \textbf{(B)}\ 492 \qquad \textbf{(C)}\ 495 \qquad \textbf{(D)}\ 498 \qquad \textbf{(E)}\ 501$
$n$ is the number of factors of $5$ in $a!b!c!$ (there are more $2$s), i.e.\ $\sum_{i\ge1}\left(\lfloor\frac a{5^i}\rfloor+\lfloor\frac b{5^i}\rfloor+\lfloor\frac c{5^i}\rfloor\right)$.
Since $\lfloor x\rfloor+\lfloor y\rfloor+\lfloor z\rfloor>x+y+z-3$, each term is at least $\lfloor\frac{2006}{5^i}\rfloor-2$. With $\lfloor2006/5^i\rfloor=401,80,16,3$, $n\ge500-8=492$.
$a=b=624$, $c=758$ attains it ($152+152+188=492$). The answer is (B).
Suppose $a$, $b$, $c$ are positive integers with $a+b+c=300$, and $a!\,b!\,c!=m\cdot10^n$ with $m$ not divisible by $10$. What is the smallest possible value of $n$?