<?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: Project Euler in F# &#8211; Problem 28</title>
	<atom:link href="http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/</link>
	<description>Functional programming on .Net</description>
	<lastBuildDate>Wed, 18 Aug 2010 12:04:06 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ggse</title>
		<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/comment-page-1/#comment-6051</link>
		<dc:creator>ggse</dc:creator>
		<pubDate>Wed, 15 Jul 2009 11:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=128#comment-6051</guid>
		<description>The sum is also given by a formula : for a n by n spiral, S = (4*n^3+3*n^2+8*n-9)/6.</description>
		<content:encoded><![CDATA[<p>The sum is also given by a formula : for a n by n spiral, S = (4*n^3+3*n^2+8*n-9)/6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claudio</title>
		<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/comment-page-1/#comment-4347</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Mon, 25 May 2009 07:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=128#comment-4347</guid>
		<description>Jorge and Thedric, you both guessed it right!

The solution with fold is perfect while the recursive one is easier to understand and to use with academic purposes.</description>
		<content:encoded><![CDATA[<p>Jorge and Thedric, you both guessed it right!</p>
<p>The solution with fold is perfect while the recursive one is easier to understand and to use with academic purposes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Esquer</title>
		<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/comment-page-1/#comment-4302</link>
		<dc:creator>Jorge Esquer</dc:creator>
		<pubDate>Sat, 23 May 2009 23:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=128#comment-4302</guid>
		<description>Here&#039;s my take with fold:

printf &quot;%A&quot; (Seq.fold (fun sum x -&gt; sum + 4 * x * x - 6 * (x - 1)) 1 [3..2..1001])</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my take with fold:</p>
<p>printf &#8220;%A&#8221; (Seq.fold (fun sum x -&gt; sum + 4 * x * x &#8211; 6 * (x &#8211; 1)) 1 [3..2..1001])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thedric Walker</title>
		<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/comment-page-1/#comment-4289</link>
		<dc:creator>Thedric Walker</dc:creator>
		<pubDate>Sat, 23 May 2009 16:37:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=128#comment-4289</guid>
		<description>Pretty cool article. If I had to guess, I would say putting in any even number would cause this to blow up. This is because the exit condition assumes that n-2 will eventually result in 1. However, for even numbers that never happens.

But that&#039;s just my guess.</description>
		<content:encoded><![CDATA[<p>Pretty cool article. If I had to guess, I would say putting in any even number would cause this to blow up. This is because the exit condition assumes that n-2 will eventually result in 1. However, for even numbers that never happens.</p>
<p>But that&#8217;s just my guess.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Esquer</title>
		<link>http://www.fsharp.it/2009/05/22/project-euler-in-f-problem-28/comment-page-1/#comment-4270</link>
		<dc:creator>Jorge Esquer</dc:creator>
		<pubDate>Sat, 23 May 2009 04:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.fsharp.it/?p=128#comment-4270</guid>
		<description>Would the bug be that, if you pass an even number as n, it&#039;ll never match 1 because it will jump from 2 to 0 and thus keep subtracting 2 indefinitely?</description>
		<content:encoded><![CDATA[<p>Would the bug be that, if you pass an even number as n, it&#8217;ll never match 1 because it will jump from 2 to 0 and thus keep subtracting 2 indefinitely?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
