What is the value of such that has exactly number of trailing zeros?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of trailing zeros of k ! is given by: z k = i = 1 ∑ ∞ ⌊ 5 i k ⌋ , where ⌊ x ⌋ is the greatest integer function. The number of trailing zeros of a product of factorial is the sum of z k as follows:
Z n = k = 1 ∑ n z k = k = 1 ∑ n i = 1 ∑ ∞ ⌊ 5 i k ⌋ = 0 + 0 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 3 + 3 + . . .
\(\begin{array} {} \Rightarrow & Z_9 & = 5 & \color{red}{<} 2\times 9 \\ & Z_{14} & = 10 + 5 = 15 & \color{red}{<} 2\times 14 \\ & Z_{19} & = 15+15 = 30 & \color {red} {<} 2\times 19 \\ & Z_{24} & = 20 +30 = 50 & \color {red} {>} 2\times 24 \end{array} \)
⇒ 1 9 < n < 2 4 ⇒ 4 ( n − 1 9 ) + 3 0 4 n − 7 6 + 3 0 2 n n = 2 n = 2 n = 4 6 = 2 3