Results 1 to 5 of 5

Thread: Modification : zeros

  1. #1
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Modification : zeros

    How many zeros are there at the end of 100!?


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: Modification : zeros

    I think the answer is 24.
    Because you see at the end of the 5!(120) you got one zero. End of 10!(3628800) you got 2 zeros. if you calculate like this every 5 factorial and 10 factorial contailns a extra zero..

    So now totally 20. After that one more conditions occurring here. Numbers 25, 50 and 75 when multiplied by some of the small numbers vailable eg (4, 2 and 6)generate an extra zero.

    So totally 24 zeros...i don't this is the easiest way...if anyone have other simple solution then plz post here..

    ----------------
    suresh


  3. #3
    Expert Member
    Join Date
    Jan 2007
    Answers
    272

    Re: Modification : zeros

    ur answer is correct...but i have mechanical method by which u can tell no of zeros after any number's factorial


  4. #4
    Expert Member
    Join Date
    Dec 2006
    Answers
    204

    Re: Modification : zeros

    i think its 21.


  5. #5
    Expert Member
    Join Date
    Jan 2007
    Answers
    249

    Re: Modification : zeros

    Hey Smart Coder

    100/5 = 20
    20/5 =4
    4/5 = 0

    20+4 = 24 zeroes....

    Thanks
    Manoj


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact