GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Kanbay

 Print  |  
Question:  51 factorial endedwith how many zeros?



February 02, 2007 10:13:36 #4
 manish   Member Since: Visitor    Total Comments: N/A 

RE: 51 factorial endedwith how many zeros?
 
 
    [ 51/5 ] +[51/5^2 ] +.....=12

    [51/2] +[51/2^2]+[51/2^3] +[51/2^4]+[51/2^5] +.........=47


      since there are 12 5's and 47 2's
      we can multiply 12 5's and 12 2's to get 10^12

  thus we will have 12 0's at the end of 51!
     

 

Back To Question