<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Wrong number</title>
	<atom:link href="http://bit-player.org/2009/wrong-number/feed" rel="self" type="application/rss+xml" />
	<link>http://bit-player.org/2009/wrong-number</link>
	<description>An amateur's outlook on computation and mathematics.</description>
	<pubDate>Thu, 17 May 2012 10:03:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Joe Ganley</title>
		<link>http://bit-player.org/2009/wrong-number#comment-2098</link>
		<dc:creator>Joe Ganley</dc:creator>
		<pubDate>Thu, 19 Mar 2009 16:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-2098</guid>
		<description>My 12-year-old was given as homework: How many trailing 0's are there in 1005! (See also my blog entry - http://joeganley.com/2008/09/1005.html -  in which we derived the same formula as in Carl Witty's comment above.)</description>
		<content:encoded><![CDATA[<p>My 12-year-old was given as homework: How many trailing 0&#8217;s are there in 1005! (See also my blog entry - <a href="http://joeganley.com/2008/09/1005.html" rel="nofollow">http://joeganley.com/2008/09/1005.html</a> -  in which we derived the same formula as in Carl Witty&#8217;s comment above.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1991</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Sat, 28 Feb 2009 23:40:47 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1991</guid>
		<description>I hadn't realized how privileged I am.

At this point I don't know where the &#60;pre&#62; tag is being stripped out. More important, I don't know why. Offhand, I can't see any particular security risk in letting folks post monospaced content, but what do I know.</description>
		<content:encoded><![CDATA[<p>I hadn&#8217;t realized how privileged I am.</p>
<p>At this point I don&#8217;t know where the &lt;pre&gt; tag is being stripped out. More important, I don&#8217;t know why. Offhand, I can&#8217;t see any particular security risk in letting folks post monospaced content, but what do I know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1989</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Sat, 28 Feb 2009 23:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1989</guid>
		<description>&#60;pre&#62; may work for you, but it doesn't work for me.  I already included &#60;pre&#62; / &#60;/pre&#62; tags in my comment; if you didn't see them when you edited the comment, then they must get stripped out before the comment is saved.  (Thanks for adding the &#60;pre&#62; tag for me, though!)</description>
		<content:encoded><![CDATA[<p>&lt;pre&gt; may work for you, but it doesn&#8217;t work for me.  I already included &lt;pre&gt; / &lt;/pre&gt; tags in my comment; if you didn&#8217;t see them when you edited the comment, then they must get stripped out before the comment is saved.  (Thanks for adding the &lt;pre&gt; tag for me, though!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1988</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Sat, 28 Feb 2009 22:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1988</guid>
		<description>@Carl Witty:

&#60;pre&#62; does work; I've inserted the tags.</description>
		<content:encoded><![CDATA[<p>@Carl Witty:</p>
<p>&lt;pre&gt; does work; I&#8217;ve inserted the tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1987</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Sat, 28 Feb 2009 22:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1987</guid>
		<description>I decided to try to compute some more digits of B!.  At this point, computing leading digits is "easy" if you have enough computing power, so I decided to go back to the trailing digits.  It's totally trivial to compute trillions of trailing digits, but the're all '0', so that's kind of boring; so I decided to look at the trailing digits just before the zeroes.

Using the Sage script at http://sage.math.washington.edu/home/cwitty/factorial_trailing.py, I have computed that the 11 digits just before the trailing zeroes start are: 01630550016 (and this time the script has comments).  It took a little under 3 minutes to check this, with the call decimal_factorial_nz_trailing(2*1312000, 11); each additional digit would multiply the run time by about 5.  (The times could be improved a lot by writing in Cython instead of Python, or by managing to prove a simple number theory fact; but the algorithm would still be exponential in the number of digits, so you'd only get a few more digits.)

While testing this on small examples, I noticed an interesting pattern; this makes it seem plausible that a much better algorithm might be found that could give a lot more digits.  The pattern is that factorial(5^k) shares some trailing non-zero digits with factorial(5^(k+4)).

Here are the last 40 trailing non-zero digits of factorial(5^k) for 1&#60;=k&#60;=11, grouped by k mod 4 (trailing "..." are all the omitted zero digits).

&lt;pre&gt;
(5^1)!:                                           12...
(5^5)!:  ...9717371988442487977107852522487820582912...
(5^9)!:  ...7560245386243275657453531611594764582912...

(5^2)!:                         15511210043330985984...
(5^6)!:  ...3093071149756783641357004124179329449984...
(5^10)!: ...9413837847010778827395667973098369449984...

(5^3)!:  ...1888345755854705552432637556500713177088...
(5^7)!:  ...3145601082485362382639921420238835417088...
(5^11)!: ...3953887529406591222834142592565235417088...

(5^4)!:  ...7534383573517418356160192763514392150016...
(5^8)!:  ...9246874176784347390937558035477630550016...
&lt;/pre&gt;

Note that 9 of the 11 trailing non-zero digits of B! occur already in (5^8)!.

If the &#60;pre&#62; tag were supported in comments here, then all the digits would line up nicely above; hopefully it's still easy to see the common digits anyway.</description>
		<content:encoded><![CDATA[<p>I decided to try to compute some more digits of B!.  At this point, computing leading digits is &#8220;easy&#8221; if you have enough computing power, so I decided to go back to the trailing digits.  It&#8217;s totally trivial to compute trillions of trailing digits, but the&#8217;re all &#8216;0&#8242;, so that&#8217;s kind of boring; so I decided to look at the trailing digits just before the zeroes.</p>
<p>Using the Sage script at <a href="http://sage.math.washington.edu/home/cwitty/factorial_trailing.py" rel="nofollow">http://sage.math.washington.edu/home/cwitty/factorial_trailing.py</a>, I have computed that the 11 digits just before the trailing zeroes start are: 01630550016 (and this time the script has comments).  It took a little under 3 minutes to check this, with the call decimal_factorial_nz_trailing(2*1312000, 11); each additional digit would multiply the run time by about 5.  (The times could be improved a lot by writing in Cython instead of Python, or by managing to prove a simple number theory fact; but the algorithm would still be exponential in the number of digits, so you&#8217;d only get a few more digits.)</p>
<p>While testing this on small examples, I noticed an interesting pattern; this makes it seem plausible that a much better algorithm might be found that could give a lot more digits.  The pattern is that factorial(5^k) shares some trailing non-zero digits with factorial(5^(k+4)).</p>
<p>Here are the last 40 trailing non-zero digits of factorial(5^k) for 1&lt;=k&lt;=11, grouped by k mod 4 (trailing &#8220;&#8230;&#8221; are all the omitted zero digits).</p>
<pre>
(5^1)!:                                           12...
(5^5)!:  ...9717371988442487977107852522487820582912...
(5^9)!:  ...7560245386243275657453531611594764582912...

(5^2)!:                         15511210043330985984...
(5^6)!:  ...3093071149756783641357004124179329449984...
(5^10)!: ...9413837847010778827395667973098369449984...

(5^3)!:  ...1888345755854705552432637556500713177088...
(5^7)!:  ...3145601082485362382639921420238835417088...
(5^11)!: ...3953887529406591222834142592565235417088...

(5^4)!:  ...7534383573517418356160192763514392150016...
(5^8)!:  ...9246874176784347390937558035477630550016...
</pre>
<p>Note that 9 of the 11 trailing non-zero digits of B! occur already in (5^8)!.</p>
<p>If the &lt;pre&gt; tag were supported in comments here, then all the digits would line up nicely above; hopefully it&#8217;s still easy to see the common digits anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Marron</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1980</link>
		<dc:creator>Peter Marron</dc:creator>
		<pubDate>Thu, 26 Feb 2009 22:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1980</guid>
		<description>But surely what is more spooky is that almost all natural numbers are larger than the numbers that you describe. And arbitrarily much larger as well. Then, just when you think that you have come to terms with that, and think that you have got a handle on the naturals, you realize that they are just peanuts to the reals...</description>
		<content:encoded><![CDATA[<p>But surely what is more spooky is that almost all natural numbers are larger than the numbers that you describe. And arbitrarily much larger as well. Then, just when you think that you have come to terms with that, and think that you have got a handle on the naturals, you realize that they are just peanuts to the reals&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1978</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Thu, 26 Feb 2009 15:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1978</guid>
		<description>&lt;i&gt;Carl, I have to ask: Did you get those results running Sage on your cell phone?&lt;/i&gt;

No; turns out Sage on my cell phone is too slow to be interesting.  (The biggest problem is that it doesn't have enough RAM, so almost everything uses swap space.)

I actually did the big computation on sage.math.washington.edu (24 cores, 128 GB RAM), which was purchased by William Stein using National Science Foundation Grant No. DMS-0821725.  But in retrospect, I'm pretty sure I could have run it on my laptop and still finished in reasonable time.  (Not my cell phone, though.)</description>
		<content:encoded><![CDATA[<p><i>Carl, I have to ask: Did you get those results running Sage on your cell phone?</i></p>
<p>No; turns out Sage on my cell phone is too slow to be interesting.  (The biggest problem is that it doesn&#8217;t have enough RAM, so almost everything uses swap space.)</p>
<p>I actually did the big computation on sage.math.washington.edu (24 cores, 128 GB RAM), which was purchased by William Stein using National Science Foundation Grant No. DMS-0821725.  But in retrospect, I&#8217;m pretty sure I could have run it on my laptop and still finished in reasonable time.  (Not my cell phone, though.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Davies</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1977</link>
		<dc:creator>Aaron Davies</dc:creator>
		<pubDate>Thu, 26 Feb 2009 15:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1977</guid>
		<description>&lt;a href="http://en.wikipedia.org/wiki/Skitt%27s_law" rel="nofollow"&gt;Skitt's law&lt;/a&gt;, math version?

btw, ur CAPTCHA==&#60;3</description>
		<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Skitt%27s_law" rel="nofollow">Skitt&#8217;s law</a>, math version?</p>
<p>btw, ur CAPTCHA==&lt;3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1976</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Thu, 26 Feb 2009 14:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1976</guid>
		<description>Carl Witty wrote:

&lt;blockquote&gt;Dealing with numbers this large is confusing.&lt;/blockquote&gt;

Yeah, I agree wholeheartedly. I had the same feeling when I first looked at the difference between approximations to log B^B and log B!. In floating-point notation these numbers have the same exponent and no change in the first six digits of the significand. How can subtracting 25^1,312,000 have so little effect? It took some pondering to accept that 0.000001 x 10^1,184,103 is not a small difference!</description>
		<content:encoded><![CDATA[<p>Carl Witty wrote:</p>
<blockquote><p>Dealing with numbers this large is confusing.</p></blockquote>
<p>Yeah, I agree wholeheartedly. I had the same feeling when I first looked at the difference between approximations to log B^B and log B!. In floating-point notation these numbers have the same exponent and no change in the first six digits of the significand. How can subtracting 25^1,312,000 have so little effect? It took some pondering to accept that 0.000001 x 10^1,184,103 is not a small difference!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brian</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1975</link>
		<dc:creator>brian</dc:creator>
		<pubDate>Thu, 26 Feb 2009 13:39:32 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1975</guid>
		<description>Talk about wonders of the computer age! All you have to do is post your questions at night, and when you come back early in the morning, all the answers are there waiting for you, like flax spun into gold.

Thank you Carl Witty and Alexander.

Carl, I have to ask: Did you get those results running Sage &lt;a href="http://neutraldrifts.blogspot.com/2009/02/carl-witty-does-sage-on-g1.html" rel="nofollow"&gt;on your cell phone&lt;/a&gt;?</description>
		<content:encoded><![CDATA[<p>Talk about wonders of the computer age! All you have to do is post your questions at night, and when you come back early in the morning, all the answers are there waiting for you, like flax spun into gold.</p>
<p>Thank you Carl Witty and Alexander.</p>
<p>Carl, I have to ask: Did you get those results running Sage <a href="http://neutraldrifts.blogspot.com/2009/02/carl-witty-does-sage-on-g1.html" rel="nofollow">on your cell phone</a>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1974</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Thu, 26 Feb 2009 09:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1974</guid>
		<description>OK, I couldn't stop thinking about this problem.

I wrote this script: http://sage.math.washington.edu/home/cwitty/factorial_digits.sage
which uses interval arithmetic (based on the MPFI and MPFR libraries) and the lngamma function to compute both the number of digits in the factorial result and some leading digits of the actual factorial.  Again, I tested with smaller values, and the results seemed correct.  (Sorry the script is undocumented.  The first argument to the function is the number of bits to use; the second argument is the number you're taking the factorial of.  If the given precision is insufficient, the function returns None; if it has enough precision, it returns a pair of the number of digits and of the leading digits, scaled to lie between 0.1 and 1.)

Computing with 1,000,000-bit floating-point numbers was not enough; but using 10-million bit numbers, and a little over 6 minutes of CPU time, I got both the exact number of digits in B! and the first 1,176,194 digits of B!.  The number of digits in B! is at http://sage.math.washington.edu/home/cwitty/num_digits_in_B_factorial.txt (this is a 1,834,104-digit number); the first 1,176,195 digits of B! are at http://sage.math.washington.edu/home/cwitty/leading_digits_of_B_factorial.txt (but the question mark after the final 2 means that it might actually be a 1, so I'm not counting that digit as "known").

Dealing with numbers this large is confusing.  When I noticed that the number of digits in the number of trailing zeroes of B! was 1,834,097, and the number of digits in the number of digits of B! was 1,834,104, my first thought was "OK, so almost all the digits are trailing zeroes".  But of course that's totally wrong... what this actually shows is that almost none of the digits are trailing zeroes.</description>
		<content:encoded><![CDATA[<p>OK, I couldn&#8217;t stop thinking about this problem.</p>
<p>I wrote this script: <a href="http://sage.math.washington.edu/home/cwitty/factorial_digits.sage" rel="nofollow">http://sage.math.washington.edu/home/cwitty/factorial_digits.sage</a><br />
which uses interval arithmetic (based on the MPFI and MPFR libraries) and the lngamma function to compute both the number of digits in the factorial result and some leading digits of the actual factorial.  Again, I tested with smaller values, and the results seemed correct.  (Sorry the script is undocumented.  The first argument to the function is the number of bits to use; the second argument is the number you&#8217;re taking the factorial of.  If the given precision is insufficient, the function returns None; if it has enough precision, it returns a pair of the number of digits and of the leading digits, scaled to lie between 0.1 and 1.)</p>
<p>Computing with 1,000,000-bit floating-point numbers was not enough; but using 10-million bit numbers, and a little over 6 minutes of CPU time, I got both the exact number of digits in B! and the first 1,176,194 digits of B!.  The number of digits in B! is at <a href="http://sage.math.washington.edu/home/cwitty/num_digits_in_B_factorial.txt" rel="nofollow">http://sage.math.washington.edu/home/cwitty/num_digits_in_B_factorial.txt</a> (this is a 1,834,104-digit number); the first 1,176,195 digits of B! are at <a href="http://sage.math.washington.edu/home/cwitty/leading_digits_of_B_factorial.txt" rel="nofollow">http://sage.math.washington.edu/home/cwitty/leading_digits_of_B_factorial.txt</a> (but the question mark after the final 2 means that it might actually be a 1, so I&#8217;m not counting that digit as &#8220;known&#8221;).</p>
<p>Dealing with numbers this large is confusing.  When I noticed that the number of digits in the number of trailing zeroes of B! was 1,834,097, and the number of digits in the number of digits of B! was 1,834,104, my first thought was &#8220;OK, so almost all the digits are trailing zeroes&#8221;.  But of course that&#8217;s totally wrong&#8230; what this actually shows is that almost none of the digits are trailing zeroes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1973</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Thu, 26 Feb 2009 08:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1973</guid>
		<description>Also:

I wrote this Sage one-liner to compute the number of digits in n!:

sage: def n_digits_in_factorial(k): return (RR(k+1).lngamma() / log(10.0)).ceiling()

I checked that this gives the correct answer for several test cases, ranging from 2 to 100000; so I believe it is  correct (although for large n, only the first digits of the result will be correct).

Then I get this result:

sage: RR(n_digits_in_factorial(25^1312000))
3.58756666520195e1834103

which agrees with your computation, so I think your result is correct.</description>
		<content:encoded><![CDATA[<p>Also:</p>
<p>I wrote this Sage one-liner to compute the number of digits in n!:</p>
<p>sage: def n_digits_in_factorial(k): return (RR(k+1).lngamma() / log(10.0)).ceiling()</p>
<p>I checked that this gives the correct answer for several test cases, ranging from 2 to 100000; so I believe it is  correct (although for large n, only the first digits of the result will be correct).</p>
<p>Then I get this result:</p>
<p>sage: RR(n_digits_in_factorial(25^1312000))<br />
3.58756666520195e1834103</p>
<p>which agrees with your computation, so I think your result is correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1972</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 26 Feb 2009 08:10:40 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1972</guid>
		<description>Hi.
That's a nice puzzle indeed, thanks.

Well, skipping a bit of messing with sums, the number of trailing zeros should be:

$$
Z = \sum_{m=1}^{m=\infty} \lfloor \frac {N} {10^m} \rfloor
$$

where $N$ is the number in question ($25^1312000$), and sum is actually a finite one with $\lfloor \log_{10} {N} \rfloor$ non-zero elements.

After that, we can notice that $Z$ is more than $N/10$ and less than $N/9$, and go no further, or try to compute $Z$ explicitly (in some sense of the word).

I wrote a Python script for this (well, Python has a nice long integer arithmetics). It goes like this:


Z = 0
N = 25**1312000

m = 1
N /= 5

while True:
____a = N &#62;&#62; m 
    
____if a == 0:
________break

____Z += a

____m += 1
____N /= 5

Here I take advantage of the fact that $N$ is a power of $5$, therefore all divisions by $5$ are precise. 

The script is running. I am quite optimistic about it -- I do still believe it's going to finish in a couple of days or so.

Another problem would be to extract some information about $Z$ later, like exact number of digits or first several most significant bits.</description>
		<content:encoded><![CDATA[<p>Hi.<br />
That&#8217;s a nice puzzle indeed, thanks.</p>
<p>Well, skipping a bit of messing with sums, the number of trailing zeros should be:</p>
<p>$$<br />
Z = \sum_{m=1}^{m=\infty} \lfloor \frac {N} {10^m} \rfloor<br />
$$</p>
<p>where $N$ is the number in question ($25^1312000$), and sum is actually a finite one with $\lfloor \log_{10} {N} \rfloor$ non-zero elements.</p>
<p>After that, we can notice that $Z$ is more than $N/10$ and less than $N/9$, and go no further, or try to compute $Z$ explicitly (in some sense of the word).</p>
<p>I wrote a Python script for this (well, Python has a nice long integer arithmetics). It goes like this:</p>
<p>Z = 0<br />
N = 25**1312000</p>
<p>m = 1<br />
N /= 5</p>
<p>while True:<br />
____a = N &gt;&gt; m </p>
<p>____if a == 0:<br />
________break</p>
<p>____Z += a</p>
<p>____m += 1<br />
____N /= 5</p>
<p>Here I take advantage of the fact that $N$ is a power of $5$, therefore all divisions by $5$ are precise. </p>
<p>The script is running. I am quite optimistic about it &#8212; I do still believe it&#8217;s going to finish in a couple of days or so.</p>
<p>Another problem would be to extract some information about $Z$ later, like exact number of digits or first several most significant bits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl Witty</title>
		<link>http://bit-player.org/2009/wrong-number#comment-1971</link>
		<dc:creator>Carl Witty</dc:creator>
		<pubDate>Thu, 26 Feb 2009 07:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://bit-player.org/?p=296#comment-1971</guid>
		<description>&lt;i&gt;Fred Gruenberger would have wanted to know how many trailing zeros there are in B!. Can we answer?&lt;/i&gt;

Yes.

The number of trailing zeroes in n! is $\lfloor n/5 \rfloor + \lfloor n/5^2 \rfloor + \lfloor n/5^3 \rfloor + \ldots$.

I'm not sure how to calculate this for an arbitrary very large n.  But fortunately, B is a power of 5, so each of the terms in the above series is also a power of 5, and you can use the formula for the sum of a geometric series to see that the number of trailing zeroes is (B-1)/(5-1).

This takes only a few seconds to compute; just for fun, I've posted the resulting 1,834,097-digit number at http://sage.math.washington.edu/home/cwitty/num_trailing_zeroes_in_B_factorial.txt (I used Sage to do the computation).</description>
		<content:encoded><![CDATA[<p><i>Fred Gruenberger would have wanted to know how many trailing zeros there are in B!. Can we answer?</i></p>
<p>Yes.</p>
<p>The number of trailing zeroes in n! is $\lfloor n/5 \rfloor + \lfloor n/5^2 \rfloor + \lfloor n/5^3 \rfloor + \ldots$.</p>
<p>I&#8217;m not sure how to calculate this for an arbitrary very large n.  But fortunately, B is a power of 5, so each of the terms in the above series is also a power of 5, and you can use the formula for the sum of a geometric series to see that the number of trailing zeroes is (B-1)/(5-1).</p>
<p>This takes only a few seconds to compute; just for fun, I&#8217;ve posted the resulting 1,834,097-digit number at <a href="http://sage.math.washington.edu/home/cwitty/num_trailing_zeroes_in_B_factorial.txt" rel="nofollow">http://sage.math.washington.edu/home/cwitty/num_trailing_zeroes_in_B_factorial.txt</a> (I used Sage to do the computation).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

