I (as a teacher) saw in a book for $8^{th}$ grade students that the number of trailing zeroes of ${n!}\times{m!}$ is the sum of the trailing zeroes of $n!$ and $m!$. There also has been noticed that the number of trailing zeroes of $\dfrac{n!}{m!}$ ($m<n$) is their subtraction. i.e.
$$(\left\lfloor \frac{n}{5}\right\rfloor+ \left\lfloor \frac{n}{5^2}\right\rfloor+ \left\lfloor \frac{n}{5^3}\right\rfloor+\cdots)-(\left\lfloor \frac{m}{5}\right\rfloor+ \left\lfloor \frac{m}{5^2}\right\rfloor+ \left\lfloor \frac{m}{5^3}\right\rfloor+\cdots).$$
But I think this is wrong because for example $\dfrac{15!}{14!}=15$ but $3-2=1$.
Can one prove that this statement is correct if $n>m-1$? If so why this restriction is necessary?
Of course it is obvious that $\dfrac{(n+1)!}{n!}=n+1$ and the number of trailing zeroes depend on the number of trailing zeroes of the number $n+1$.
Where does this strange behavior comes from? i.e. in product of factorials we sum number of trailing zeroes but in division we should care about it?
Note: I always make mistakes in simple math calculations. Am I wrong here?
However, the number of zeros a quotient ends with may not be the difference of the number of zeros the dividend and divisor end with (cf. $15=60/4$) precisely because divisibility by $2$ "springs" into action. (The bottom line reason: $10$ is not prime.)
– Sep 25 '20 at 11:01