Question
Question: Find n such that n! has 12 zeros...
Find n such that n! has 12 zeros
Answer
The values of n such that n! has 12 zeros are 50, 51, 52, 53, 54.
Explanation
Solution
The number of trailing zeros in n! is determined by the number of factors of 5 in its prime factorization. This can be calculated using Legendre's formula: Z(n)=∑k=1∞⌊n/5k⌋. We need Z(n)=12. Z(n)=⌊n/5⌋+⌊n/25⌋+⌊n/125⌋+… Assuming ⌊n/125⌋=0, we have Z(n)=⌊n/5⌋+⌊n/25⌋=12. If ⌊n/25⌋=2, then 50≤n<75. This implies ⌊n/5⌋=10, so 50≤n<55. The intersection is 50≤n<55. For n=50,51,52,53,54, Z(n)=12.
