Free2Code
 
Time: 2008-12-04, 10:05pm
Factorial Challenge
Subject: Factorial Challenge  ·  Posted: 2004-12-16, 08:01am
Rank: ? (171)
Member #: 11947
How many zeros are at the end of 1,097,324,659! w/out actaully calculating the factorial?

(answer posted in 3 days, i think that should be enough )

 
  Reply to this ·  Post link ·  Top
Subject: Re: Factorial Challenge  ·  Posted: 2004-12-18, 06:11am
Rank: ? (171)
Member #: 11947
nobody!??

Ok a hint:

1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10...

now... a number times a number ending in zero will result in a zero added to the end of the number:

2*5 & 10

so any number ending in 5 (2 is below five, so we'll use upper bound)
and any number ending in 0... (make sure ot count multiple zeroes!!)

 
  Reply to this ·  Post link ·  Top
This post has been removed by the author
 
  Top

Pages: 1

Please login or register to post a reply.

icons