help | forum home | logged in as: guest | login/register
link mingle
interview_questions
Bookmarks
Trailing zeros in n!
1
Votes

How many trailing zeros are there in n factorial?

saved under General Puzzles by interview_questions

 
no of Zros in N! = floor(N/5) + floor(N/5^2)+ floor(N/5^3)...+ floor(N/lg5 N) where lg5 is log to base 5.
comment by video on 2008-06-25 11:51:06
 



Enter the string above
 
Thumbnails by Thumbshots.com