<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Enlaces Ligeros</title>
	<atom:link href="http://blog.tenuousconnections.com/index.php/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tenuousconnections.com</link>
	<description>Bienvenido al jardín del zurdo...here, we grow tenuous connections.</description>
	<lastBuildDate>Wed, 23 Feb 2011 19:32:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>Comment on Primal diversions by El jardinero zurdo</title>
		<link>http://blog.tenuousconnections.com/index.php/2011/02/21/289/#comment-194</link>
		<dc:creator>El jardinero zurdo</dc:creator>
		<pubDate>Wed, 23 Feb 2011 19:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2011/02/21/289/#comment-194</guid>
		<description>Here is a &lt;a href=&quot;http://xkcd.com/247/&quot; rel=&quot;nofollow&quot;&gt;relevant comic&lt;/a&gt;...</description>
		<content:encoded><![CDATA[<p>Here is a <a href="http://xkcd.com/247/" rel="nofollow">relevant comic</a>&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mathematical diversion by El jardinero zurdo</title>
		<link>http://blog.tenuousconnections.com/index.php/2011/02/09/288/#comment-193</link>
		<dc:creator>El jardinero zurdo</dc:creator>
		<pubDate>Fri, 11 Feb 2011 14:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2011/02/09/288/#comment-193</guid>
		<description>By the way, to use the &quot;number of digits&quot; trick (with base-10 logs), which I also used, you need to take the next higher integer from the result.  You can&#039;t just &lt;code&gt;ceil()&lt;/code&gt; the result, because that won&#039;t work for exact powers of 10.

e.g. # of digits in 8722&lt;sup&gt;8722&lt;/sup&gt; is 34371.  8722*log&lt;sub&gt;10&lt;/sub&gt;(8722) is 34370.05...so we take the next higher integer: 34371 (since, as you say, there is no such thing as a partial digit!).

But powers of 10 have that pesky 1 at the start.  For example, 10&lt;sup&gt;10&lt;/sup&gt; has 11 digits, not 10*log&lt;sub&gt;10&lt;/sub&gt;(10), which is precisely 10.  So we really need to take that &quot;next higher integer&quot; thing quite literally (9.99... --&gt; 10, but 10 --&gt; 11).  In programming terms, it&#039;s not &lt;code&gt;ceil(x)&lt;/code&gt;, I guess it&#039;s &lt;code&gt;floor(x+1)&lt;/code&gt; (same as &lt;code&gt;floor(x)+1&lt;/code&gt;).  Knowing that, it becomes a very handy tool.

&lt;h3&gt;Let the nerdiness continue:&lt;/h3&gt;
We can do this in other bases, too...  For example, in hex, the biggest number of a single digit is 0xf, equivalent to 9 in our base-10 example.

0xff&lt;sup&gt;0xff&lt;/sup&gt; has 510 digits
0xfff&lt;sup&gt;0xfff&lt;/sup&gt; has 12285 digits
0xffff&lt;sup&gt;0xffff&lt;/sup&gt; has 262140 digits
Of course, we need to be looking at the number of digits, represented in hex: 0x1fe, 0x2ffd, 0x3fffc...cool, fits the same pattern as my repeated-nines examples in base-10!

So, generally...the number of digits in these cases is n*(base&lt;sup&gt;n&lt;/sup&gt;-1)

222&lt;sub&gt;3&lt;/sub&gt;&lt;sup&gt;222&lt;sub&gt;3&lt;/sub&gt;&lt;/sup&gt; has 78 digits (in base-3)...  And 3 * (3&lt;sup&gt;3&lt;/sup&gt; - 1) == 78...yay, it seems to work!

...but...

1111&lt;sub&gt;b&lt;/sub&gt;&lt;sup&gt;1111&lt;sub&gt;b&lt;/sub&gt;&lt;/sup&gt; has 59 (binary) digits...let&#039;s see: 4 * (2&lt;sup&gt;4&lt;/sup&gt;-1) == 60...doh!...why why why?  Even simpler example: 11&lt;sub&gt;b&lt;/sub&gt;&lt;sup&gt;11&lt;sub&gt;b&lt;/sub&gt;&lt;/sup&gt; (3&lt;sup&gt;3&lt;/sup&gt;==27==11011&lt;sub&gt;b&lt;/sub&gt;) has 5 binary digits, not 2 * (2&lt;sup&gt;2&lt;/sup&gt;-1) == 6.   Sigh...  And I &lt;strong&gt;so&lt;/strong&gt; wanted that formula to work in all cases...  At the very least we can still calculate it correctly using logs:
&lt;pre&gt;&lt;code&gt;&gt;&gt;&gt; int(log(0b11,0b10)*0b11)+1
5
&gt;&gt;&gt; int(log(0b1111,0b10)*0b1111)+1
59
&lt;/code&gt;&lt;/pre&gt;
(Of course, we will run into precision problems using floating point when dealing with very large numbers, which is why I like the other, integer-only formula.  If only it also worked for base-2.  If you can tell me why it doesn&#039;t, I&#039;d be glad to hear it!)</description>
		<content:encoded><![CDATA[<p>By the way, to use the &#8220;number of digits&#8221; trick (with base-10 logs), which I also used, you need to take the next higher integer from the result.  You can&#8217;t just <code>ceil()</code> the result, because that won&#8217;t work for exact powers of 10.</p>
<p>e.g. # of digits in 8722<sup>8722</sup> is 34371.  8722*log<sub>10</sub>(8722) is 34370.05&#8230;so we take the next higher integer: 34371 (since, as you say, there is no such thing as a partial digit!).</p>
<p>But powers of 10 have that pesky 1 at the start.  For example, 10<sup>10</sup> has 11 digits, not 10*log<sub>10</sub>(10), which is precisely 10.  So we really need to take that &#8220;next higher integer&#8221; thing quite literally (9.99&#8230; &#8211;> 10, but 10 &#8211;> 11).  In programming terms, it&#8217;s not <code>ceil(x)</code>, I guess it&#8217;s <code>floor(x+1)</code> (same as <code>floor(x)+1</code>).  Knowing that, it becomes a very handy tool.</p>
<h3>Let the nerdiness continue:</h3>
<p>We can do this in other bases, too&#8230;  For example, in hex, the biggest number of a single digit is 0xf, equivalent to 9 in our base-10 example.</p>
<p>0xff<sup>0xff</sup> has 510 digits<br />
0xfff<sup>0xfff</sup> has 12285 digits<br />
0xffff<sup>0xffff</sup> has 262140 digits<br />
Of course, we need to be looking at the number of digits, represented in hex: 0x1fe, 0x2ffd, 0x3fffc&#8230;cool, fits the same pattern as my repeated-nines examples in base-10!</p>
<p>So, generally&#8230;the number of digits in these cases is n*(base<sup>n</sup>-1)</p>
<p>222<sub>3</sub><sup>222<sub>3</sub></sup> has 78 digits (in base-3)&#8230;  And 3 * (3<sup>3</sup> &#8211; 1) == 78&#8230;yay, it seems to work!</p>
<p>&#8230;but&#8230;</p>
<p>1111<sub>b</sub><sup>1111<sub>b</sub></sup> has 59 (binary) digits&#8230;let&#8217;s see: 4 * (2<sup>4</sup>-1) == 60&#8230;doh!&#8230;why why why?  Even simpler example: 11<sub>b</sub><sup>11<sub>b</sub></sup> (3<sup>3</sup>==27==11011<sub>b</sub>) has 5 binary digits, not 2 * (2<sup>2</sup>-1) == 6.   Sigh&#8230;  And I <strong>so</strong> wanted that formula to work in all cases&#8230;  At the very least we can still calculate it correctly using logs:</p>
<pre><code>>>> int(log(0b11,0b10)*0b11)+1
5
>>> int(log(0b1111,0b10)*0b1111)+1
59
</code></pre>
<p>(Of course, we will run into precision problems using floating point when dealing with very large numbers, which is why I like the other, integer-only formula.  If only it also worked for base-2.  If you can tell me why it doesn&#8217;t, I&#8217;d be glad to hear it!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mathematical diversion by pseudonym</title>
		<link>http://blog.tenuousconnections.com/index.php/2011/02/09/288/#comment-192</link>
		<dc:creator>pseudonym</dc:creator>
		<pubDate>Thu, 10 Feb 2011 18:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2011/02/09/288/#comment-192</guid>
		<description>That sequence is cool, and it also got me to thinking about why it&#039;s true.  But since the only calculator I have handy right now is the one that came on my iPhone, I can&#039;t work with the actual numbers.  

But base-10 logs should help!

The number of digits in (9^9) is log_10(9^9), which simplifies to 9 x log_10(9).  This gives 8.58... digits, which rounds up to 9 digits, since there&#039;s no such thing as a partial digit.

99 x log_10(99) = 197.57, rounding up to 198
999 x log_10(999) = 2996.56, rounding up to 1997
9999 x log_10(9999) = 39995.56, rounding up to 39996

Here&#039;s the long-precision results at each step:

8.588182584953924
197.56788426515745
2996.565922737756018
39995.565727233539808
499994.565707689566534
5999993.565705735294699
69999992.56570554342945

The fractional part seems to be converging on 0.5657... So, it looks like the trend will continue indefinitely!

So, next I got to thinking about exactly *why* this pattern occurs.

So, let&#039;s start with the general formula to figure out the number of digits at the nth step which (as seen above) is:

digits = ((10^n) - 1) * log((10^n) - 1)

The second term, log((10^n)-1), will always evaluate to slightly less than n; think of it as (n - epsilon).

So, we can restate the formula as:

digits = ((10^n) - 1) * (n-epsilon)

Distributing the second term across the first, this simplifies to:

digits = (n-epsilon) 10^n - (n-epsilon)

We can drop the eps; just remember that the result will be slightly less than we get without the eps.  So,

digits ~= n(10^n) - n

or

digits ~= n * (10^n - 1)

So, let&#039;s check this to see if we get the correct result at each step:

1:  1*(10-1) = 9, so we get slightly less than 9 digits.  But this rounds up to 9 since there&#039;s no such thing as a partial digit.
2:  2*(100-1) = 198
3: 3*(1000-1) = 2997
.
.
.

So n * ((10^n) -1) indeed gives the number of digits at step n.

And we don&#039;t need a calculator to compute this, since that formula will always give n-1 as the first digit(s), then n-1 nines, then 9-(n-1) as the last digits - exactly the pattern you&#039;re seeing.

Why is that?  Because (10^n) - 1 will give us n nines.  Multiplying any series of nines by a digit x will always give (x-1) as the first digit; then lots of nines, and finally 9-(x-1) as the last digit.  Or to look at it another way, it&#039;s like computing n*1000...00-n.  For example: 

99999 * 5 = 100000 * 5 - 5 =  50000 - 5 = 49995

So, that gives exactly the pattern you&#039;re seeing.

I know that&#039;s not quite a proof, especially since I&#039;m fudging with an epsilon value and rounding, but it&#039;s enough to convince me that this will work!

I&#039;m sure there&#039;s a much simpler way of looking at this, but (as you can see) I&#039;ve already spent too much time thinking about this problem.

I think we may be nerds.  Or geeks.  Or whatever it is the kids these days  are calling people who get overly excited about obscure mathematical patterns.  :-)</description>
		<content:encoded><![CDATA[<p>That sequence is cool, and it also got me to thinking about why it&#8217;s true.  But since the only calculator I have handy right now is the one that came on my iPhone, I can&#8217;t work with the actual numbers.  </p>
<p>But base-10 logs should help!</p>
<p>The number of digits in (9^9) is log_10(9^9), which simplifies to 9 x log_10(9).  This gives 8.58&#8230; digits, which rounds up to 9 digits, since there&#8217;s no such thing as a partial digit.</p>
<p>99 x log_10(99) = 197.57, rounding up to 198<br />
999 x log_10(999) = 2996.56, rounding up to 1997<br />
9999 x log_10(9999) = 39995.56, rounding up to 39996</p>
<p>Here&#8217;s the long-precision results at each step:</p>
<p>8.588182584953924<br />
197.56788426515745<br />
2996.565922737756018<br />
39995.565727233539808<br />
499994.565707689566534<br />
5999993.565705735294699<br />
69999992.56570554342945</p>
<p>The fractional part seems to be converging on 0.5657&#8230; So, it looks like the trend will continue indefinitely!</p>
<p>So, next I got to thinking about exactly *why* this pattern occurs.</p>
<p>So, let&#8217;s start with the general formula to figure out the number of digits at the nth step which (as seen above) is:</p>
<p>digits = ((10^n) &#8211; 1) * log((10^n) &#8211; 1)</p>
<p>The second term, log((10^n)-1), will always evaluate to slightly less than n; think of it as (n &#8211; epsilon).</p>
<p>So, we can restate the formula as:</p>
<p>digits = ((10^n) &#8211; 1) * (n-epsilon)</p>
<p>Distributing the second term across the first, this simplifies to:</p>
<p>digits = (n-epsilon) 10^n &#8211; (n-epsilon)</p>
<p>We can drop the eps; just remember that the result will be slightly less than we get without the eps.  So,</p>
<p>digits ~= n(10^n) &#8211; n</p>
<p>or</p>
<p>digits ~= n * (10^n &#8211; 1)</p>
<p>So, let&#8217;s check this to see if we get the correct result at each step:</p>
<p>1:  1*(10-1) = 9, so we get slightly less than 9 digits.  But this rounds up to 9 since there&#8217;s no such thing as a partial digit.<br />
2:  2*(100-1) = 198<br />
3: 3*(1000-1) = 2997<br />
.<br />
.<br />
.</p>
<p>So n * ((10^n) -1) indeed gives the number of digits at step n.</p>
<p>And we don&#8217;t need a calculator to compute this, since that formula will always give n-1 as the first digit(s), then n-1 nines, then 9-(n-1) as the last digits &#8211; exactly the pattern you&#8217;re seeing.</p>
<p>Why is that?  Because (10^n) &#8211; 1 will give us n nines.  Multiplying any series of nines by a digit x will always give (x-1) as the first digit; then lots of nines, and finally 9-(x-1) as the last digit.  Or to look at it another way, it&#8217;s like computing n*1000&#8230;00-n.  For example: </p>
<p>99999 * 5 = 100000 * 5 &#8211; 5 =  50000 &#8211; 5 = 49995</p>
<p>So, that gives exactly the pattern you&#8217;re seeing.</p>
<p>I know that&#8217;s not quite a proof, especially since I&#8217;m fudging with an epsilon value and rounding, but it&#8217;s enough to convince me that this will work!</p>
<p>I&#8217;m sure there&#8217;s a much simpler way of looking at this, but (as you can see) I&#8217;ve already spent too much time thinking about this problem.</p>
<p>I think we may be nerds.  Or geeks.  Or whatever it is the kids these days  are calling people who get overly excited about obscure mathematical patterns.  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Painter&#8217;s delight by El jardinero zurdo</title>
		<link>http://blog.tenuousconnections.com/index.php/2009/08/07/284/#comment-191</link>
		<dc:creator>El jardinero zurdo</dc:creator>
		<pubDate>Mon, 10 Aug 2009 06:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2009/08/07/284/#comment-191</guid>
		<description>Yes, I&#039;ve seen that video -- good for him for getting some results, at least...  I guess I&#039;d better get started: &quot;Oh, I&#039;ve been all around this great big world, and I&#039;ve seen all kinds of paaaayn-terrrrs....&quot;</description>
		<content:encoded><![CDATA[<p>Yes, I&#8217;ve seen that video &#8212; good for him for getting some results, at least&#8230;  I guess I&#8217;d better get started: &#8220;Oh, I&#8217;ve been all around this great big world, and I&#8217;ve seen all kinds of paaaayn-terrrrs&#8230;.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Painter&#8217;s delight by SmokingMoose</title>
		<link>http://blog.tenuousconnections.com/index.php/2009/08/07/284/#comment-190</link>
		<dc:creator>SmokingMoose</dc:creator>
		<pubDate>Mon, 10 Aug 2009 04:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2009/08/07/284/#comment-190</guid>
		<description>&quot;sorry&quot; to hear your paint troubles. for an entertaining customer service story have you seen Dave Carroll&#039;s United Breaks Guitars video ?... don&#039;t know if writing a song would speed up your painting job. http://www.youtube.com/watch?v=5YGc4zOqozo</description>
		<content:encoded><![CDATA[<p>&#8220;sorry&#8221; to hear your paint troubles. for an entertaining customer service story have you seen Dave Carroll&#8217;s United Breaks Guitars video ?&#8230; don&#8217;t know if writing a song would speed up your painting job. <a href="http://www.youtube.com/watch?v=5YGc4zOqozo" rel="nofollow">http://www.youtube.com/watch?v=5YGc4zOqozo</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on El primer año by matahari</title>
		<link>http://blog.tenuousconnections.com/index.php/2009/03/21/279/#comment-189</link>
		<dc:creator>matahari</dc:creator>
		<pubDate>Tue, 24 Mar 2009 15:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2009/03/21/279/#comment-189</guid>
		<description>It&#039;s been a while..... I totally understand the no blog zone feeling... it&#039;s tedious for sure. I&#039;m glad Spain suits you. Europe is so cool to be in. 
I think it takes time for language to settle in but you&#039;ll get it! You&#039;re in it for the long run... ;)</description>
		<content:encoded><![CDATA[<p>It&#8217;s been a while&#8230;.. I totally understand the no blog zone feeling&#8230; it&#8217;s tedious for sure. I&#8217;m glad Spain suits you. Europe is so cool to be in.<br />
I think it takes time for language to settle in but you&#8217;ll get it! You&#8217;re in it for the long run&#8230; ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on One last orange (aka the navel-gazing before the storm?) by matahari</title>
		<link>http://blog.tenuousconnections.com/index.php/2008/09/19/273/#comment-188</link>
		<dc:creator>matahari</dc:creator>
		<pubDate>Fri, 19 Sep 2008 23:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2008/09/19/273/#comment-188</guid>
		<description>Woohoo! Have a great trip!  I am to be truthful.... a little bit jealous.... ;)</description>
		<content:encoded><![CDATA[<p>Woohoo! Have a great trip!  I am to be truthful&#8230;. a little bit jealous&#8230;. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ¿Se equivocó?  ¡Sé proactivo! by matahari</title>
		<link>http://blog.tenuousconnections.com/index.php/2008/09/03/272/#comment-187</link>
		<dc:creator>matahari</dc:creator>
		<pubDate>Fri, 05 Sep 2008 03:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2008/09/03/272/#comment-187</guid>
		<description>Holy moly!  It&#039;s just a driver&#039;s license people! Get a grip! It&#039;s not brain surgery! I&#039;m afraid to ask what it takes to get any other thing done in Spain ...... geezus!</description>
		<content:encoded><![CDATA[<p>Holy moly!  It&#8217;s just a driver&#8217;s license people! Get a grip! It&#8217;s not brain surgery! I&#8217;m afraid to ask what it takes to get any other thing done in Spain &#8230;&#8230; geezus!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Life-cooking (in a non-cannibalistic way) by matahari</title>
		<link>http://blog.tenuousconnections.com/index.php/2008/07/26/270/#comment-186</link>
		<dc:creator>matahari</dc:creator>
		<pubDate>Sun, 27 Jul 2008 03:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2008/07/26/270/#comment-186</guid>
		<description>I like sweet-potatoe fries...mmmmm</description>
		<content:encoded><![CDATA[<p>I like sweet-potatoe fries&#8230;mmmmm</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Life-cooking (in a non-cannibalistic way) by el_commandante</title>
		<link>http://blog.tenuousconnections.com/index.php/2008/07/26/270/#comment-185</link>
		<dc:creator>el_commandante</dc:creator>
		<pubDate>Sun, 27 Jul 2008 02:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tenuousconnections.com/index.php/2008/07/26/270/#comment-185</guid>
		<description>Flaws are hard, particularly if you&#039;ve conditioned yourself to please someone else and meet (your conception of) their expectations. To admit flaws is to admit weakness and failure. To admit flaws is to be human. But to be human is to admit flaws... which for some of us is something we&#039;re still learning.</description>
		<content:encoded><![CDATA[<p>Flaws are hard, particularly if you&#8217;ve conditioned yourself to please someone else and meet (your conception of) their expectations. To admit flaws is to admit weakness and failure. To admit flaws is to be human. But to be human is to admit flaws&#8230; which for some of us is something we&#8217;re still learning.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

