<?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 on: Euler Problem 120</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/06/06/euler-problem-120/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/06/06/euler-problem-120/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:28:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/06/euler-problem-120/#comment-39750</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 09 Jun 2009 14:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2538#comment-39750</guid>
		<description>&lt;p&gt;Hi fzz -&lt;/p&gt;
&lt;p&gt;Thanks.  Yep, the 5 lines from n = 2 to n = n - 1 can be replaced with the single line &lt;/p&gt;
&lt;p&gt;n = (a - 1)2&lt;/p&gt;
&lt;p&gt;which makes the simple code even simpler ;-)&lt;/p&gt;
&lt;p&gt;I didn&#039;t adequately express my thoughts above:  2x it should be &quot;This &lt;i&gt;pattern&lt;/i&gt; is true for all...&quot;&lt;/p&gt;
&lt;p&gt;...mrt&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi fzz -</p>
<p>Thanks.  Yep, the 5 lines from n = 2 to n = n &#8211; 1 can be replaced with the single line </p>
<p>n = (a &#8211; 1)2</p>
<p>which makes the simple code even simpler <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I didn&#8217;t adequately express my thoughts above:  2x it should be &#8220;This <i>pattern</i> is true for all&#8230;&#8221;</p>
<p>&#8230;mrt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fzz</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/06/06/euler-problem-120/#comment-39744</link>
		<dc:creator>fzz</dc:creator>
		<pubDate>Tue, 09 Jun 2009 09:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2538#comment-39744</guid>
		<description>&lt;p&gt;This is one Euler problen that could be solved with a single worksheet formula. Your inner While...Wend loop is unnecessary. You&#039;re finding the largest even number strictly less than a. That doesn&#039;t require a loop. For odd a, it&#039;s a-1, and for even a it&#039;s a-2. Both can be combined into a - 2 + (a Mod 2). Or as a worksheet formula,&lt;/p&gt;
&lt;p&gt;=SUMPRODUCT(ROW(3:1000)*(ROW(3:1000)-2+MOD(ROW(3:1000),2)))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is one Euler problen that could be solved with a single worksheet formula. Your inner While&#8230;Wend loop is unnecessary. You&#8217;re finding the largest even number strictly less than a. That doesn&#8217;t require a loop. For odd a, it&#8217;s a-1, and for even a it&#8217;s a-2. Both can be combined into a &#8211; 2 + (a Mod 2). Or as a worksheet formula,</p>
<p>=SUMPRODUCT(ROW(3:1000)*(ROW(3:1000)-2+MOD(ROW(3:1000),2)))</p>
]]></content:encoded>
	</item>
</channel>
</rss>

