<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>mathblog.dk</title> <link>http://www.mathblog.dk</link> <description>A man's journey through the wonderful world of Math and Programming</description> <lastBuildDate>Sat, 18 May 2013 08:22:48 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/mathblogdk" /><feedburner:info uri="mathblogdk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>mathblogdk</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Taking a break</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/nRroITStE_s/</link> <comments>http://www.mathblog.dk/taking-a-break/#comments</comments> <pubDate>Sat, 18 May 2013 08:22:48 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Other]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6766</guid> <description>&lt;p&gt;If you are following my blog regularly, you will know that I usually posts once a week on Saturday. However, nothing new has been posted the last couple of weeks. I just wanted to let you know that the site has not been abandoned or anything like that. However, I do have a lot of [...]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/taking-a-break/"&gt;Taking a break&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nRroITStE_s:QolBG9Enjrw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nRroITStE_s:QolBG9Enjrw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=nRroITStE_s:QolBG9Enjrw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nRroITStE_s:QolBG9Enjrw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/nRroITStE_s" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/taking-a-break/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.mathblog.dk/taking-a-break/</feedburner:origLink></item> <item><title>Project Euler 146: Investigating a Prime Pattern</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/nQY3Sap3C5s/</link> <comments>http://www.mathblog.dk/project-euler-146-investigating-a-prime-pattern/#comments</comments> <pubDate>Sat, 27 Apr 2013 05:48:24 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Modulo]]></category> <category><![CDATA[Prime factorisation]]></category> <category><![CDATA[Prime numbers]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6712</guid> <description>&lt;p&gt;In Problem 146 of Project Euler we are working with primes again, and some quite big ones even. The problem reads The smallest positive integer n for which the numbers n2+1, n2+3, n2+7, n2+9, n2+13, and n2+27 are consecutive primes is 10. The sum of all such integers n below one-million is 1242490. What is the sum of all such integers n below 150 million? At first [...]&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-146-investigating-a-prime-pattern/"&gt;Project Euler 146: Investigating a Prime Pattern&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nQY3Sap3C5s:C6SShD3T6Rw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nQY3Sap3C5s:C6SShD3T6Rw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=nQY3Sap3C5s:C6SShD3T6Rw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=nQY3Sap3C5s:C6SShD3T6Rw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/nQY3Sap3C5s" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-146-investigating-a-prime-pattern/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-146-investigating-a-prime-pattern/</feedburner:origLink></item> <item><title>Project Euler 145: How many reversible numbers are there below one-billion?</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/qjqaum4MYOY/</link> <comments>http://www.mathblog.dk/project-euler-145-how-many-reversible-numbers-are-there-below-one-billion/#comments</comments> <pubDate>Sat, 20 Apr 2013 05:26:24 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Algebra]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Pen & Paper]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6693</guid> <description>&lt;p&gt;In Problem 145 of Project Euler we move away from Geometry and over to number theory again, with a problem which reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Some positive integers n have the property that the sum [ n + reverse(n) ] consists entirely of odd (decimal) digits. For instance, 36 + 63 = 99 and 409 + 904 = 1313. We will call such numbers reversible&lt;br /&gt;How many reversible numbers are there below one-billion (109)?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This one is insanely easy to write a brute force method and that is the first thing I did. However, as we shall see there is a more analytic approach to the problem as well.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-145-how-many-reversible-numbers-are-there-below-one-billion/"&gt;Project Euler 145: How many reversible numbers are there below one-billion?&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=qjqaum4MYOY:5SkaZaqiXwQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=qjqaum4MYOY:5SkaZaqiXwQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=qjqaum4MYOY:5SkaZaqiXwQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=qjqaum4MYOY:5SkaZaqiXwQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/qjqaum4MYOY" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-145-how-many-reversible-numbers-are-there-below-one-billion/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-145-how-many-reversible-numbers-are-there-below-one-billion/</feedburner:origLink></item> <item><title>UVa Online Judge New Platform</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/pa8YtP7jf94/</link> <comments>http://www.mathblog.dk/uva-online-judge-new-platform/#comments</comments> <pubDate>Wed, 17 Apr 2013 18:19:04 +0000</pubDate> <dc:creator>Bjarki Ágúst</dc:creator> <category><![CDATA[UVa Online Judge]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6757</guid> <description>&lt;p&gt;We at MathBlog have written about a couple of problems from the &lt;a href="http://uva.onlinejudge.org/" title="UVa Online Judge"&gt;UVa Online Judge&lt;/a&gt;. The current UVa OJ platform is almost 7 years old, and so the UVa OJ team thinks it's time for an upgrade. They intend to build the platform up from scratch, but to do that, they need funding. Therefore, they've set up a campaign, located &lt;a href="http://www.indiegogo.com/projects/uva-online-judge-new-platform" title="The UVa OJ platform upgrade"&gt;here&lt;/a&gt;, where you can donate and help fund the project.There are 6 days left of the campaign, so we encourage you to let others know, and perhaps even donate yourself.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/uva-online-judge-new-platform/"&gt;UVa Online Judge New Platform&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=pa8YtP7jf94:fWAKJTVjC_Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=pa8YtP7jf94:fWAKJTVjC_Y:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=pa8YtP7jf94:fWAKJTVjC_Y:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=pa8YtP7jf94:fWAKJTVjC_Y:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/pa8YtP7jf94" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/uva-online-judge-new-platform/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.mathblog.dk/uva-online-judge-new-platform/</feedburner:origLink></item> <item><title>Project Euler 144: Investigating multiple reflections of a laser beam.</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/U80eG3_Sj24/</link> <comments>http://www.mathblog.dk/project-euler-144-investigating-multiple-reflections-of-a-laser-beam/#comments</comments> <pubDate>Sat, 13 Apr 2013 05:56:51 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Algebra]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Geometry]]></category> <category><![CDATA[Trigonometry]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6656</guid> <description>&lt;p&gt;Problem 144 of Project Euler is once again a geometry problem, just like the previous. However, it is completely different. The problem reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;In laser physics, a "white cell" is a mirror system that acts as a delay line for the laser beam. The beam enters the cell, bounces around on the mirrors, and eventually works its way back out.&lt;br /&gt;The specific white cell we will be considering is an ellipse with the equation 4x2 + y2 = 100&lt;br /&gt;The section corresponding to -0.01 ≤ x ≤ +0.01 at the top is missing, allowing the light to enter and exit through the hole.&lt;br /&gt;The light beam in this problem starts at the point (0.0,10.1) just outside the white cell, and the beam first impacts the mirror at (1.4,-9.6).&lt;br /&gt;How many times does the beam hit the internal surface of the white cell before exiting?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We will simply brute force our way through this problem, by calculating the laser beams path through the cell, and check if it hits the exit. In order to do that, we need to calculate how the laserbeam reflects. Once we know the angle of the reflecting beam, we can calculate the corresponding line, since we have the point of reflection. Once we have a line parameterization of the reflecting line, it is simply a matter of finding out where the line and the ellipse intersect. This will be the next point out laser beam hits. Confused yet? Don't be. I will elaborate on it.  Lets start by finding the slope of the reflecting beam.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-144-investigating-multiple-reflections-of-a-laser-beam/"&gt;Project Euler 144: Investigating multiple reflections of a laser beam.&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=U80eG3_Sj24:rZTJnBDMt0I:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=U80eG3_Sj24:rZTJnBDMt0I:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=U80eG3_Sj24:rZTJnBDMt0I:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=U80eG3_Sj24:rZTJnBDMt0I:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/U80eG3_Sj24" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-144-investigating-multiple-reflections-of-a-laser-beam/feed/</wfw:commentRss> <slash:comments>6</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-144-investigating-multiple-reflections-of-a-laser-beam/</feedburner:origLink></item> <item><title>Project Euler 143: Investigating the Torricelli point of a triangle</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/YG3u-1Rc_sU/</link> <comments>http://www.mathblog.dk/project-euler-143-investigating-the-torricelli-point-of-a-triangle/#comments</comments> <pubDate>Sat, 06 Apr 2013 05:56:51 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Algebra]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Geometry]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6616</guid> <description>&lt;p&gt;Problem 143 of Project Euler is a notorious problem. Notorious for having the fewest correct answers per time it has been released. If you sort by number of solvers, you will see a pretty good correlation between problem number and place on that list. However, this problem is moved quite a bit down that list. The problem reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Let ABC be a triangle with all interior angles being less than 120 degrees. Let X be any point inside the triangle and let XA = p, XB = q, and XC = r.&lt;br /&gt;If the sum is minimised and a, b, c, p, q and r are all positive integers we shall call triangle ABC a Torricelli triangle. For example, a = 399, b = 455, c = 511 is an example of a Torricelli triangle, with p + q + r = 784.&lt;br /&gt;Find the sum of all distinct values of p + q + r ≤ 120000 for Torricelli triangles.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After solving it, I can see why there are so few other people who have solved it. Because it was really difficult, and took a whole lot of research for me.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-143-investigating-the-torricelli-point-of-a-triangle/"&gt;Project Euler 143: Investigating the Torricelli point of a triangle&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=YG3u-1Rc_sU:P2Ik-eP1riQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=YG3u-1Rc_sU:P2Ik-eP1riQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=YG3u-1Rc_sU:P2Ik-eP1riQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=YG3u-1Rc_sU:P2Ik-eP1riQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/YG3u-1Rc_sU" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-143-investigating-the-torricelli-point-of-a-triangle/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-143-investigating-the-torricelli-point-of-a-triangle/</feedburner:origLink></item> <item><title>Project Euler 142: Perfect Square Collection</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/65PQOKQEf2U/</link> <comments>http://www.mathblog.dk/project-euler-142-perfect-square-collection/#comments</comments> <pubDate>Sat, 30 Mar 2013 06:39:09 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Algebra]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6603</guid> <description>&lt;p&gt;Problem 142 of Project Euler seems to be one in the easier end, at least if you aren't afraid of a little algebra. The problem reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Find the smallest x + y + z with integers x &gt; y &gt; z &gt; 0 such that x + y, x - y, x + z, x - z, y + z, y - z are all perfect squares.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I don't think we can manage to iterate over all possible values of x, y and z. So let us see if we can use the relations that has to be squares to something.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-142-perfect-square-collection/"&gt;Project Euler 142: Perfect Square Collection&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=65PQOKQEf2U:bRWgvqZg2qs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=65PQOKQEf2U:bRWgvqZg2qs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=65PQOKQEf2U:bRWgvqZg2qs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=65PQOKQEf2U:bRWgvqZg2qs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/65PQOKQEf2U" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-142-perfect-square-collection/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-142-perfect-square-collection/</feedburner:origLink></item> <item><title>Project Euler 141:Investigating progressive numbers, n, which are also square.</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/X3JL_HFqqcI/</link> <comments>http://www.mathblog.dk/project-euler-141investigating-progressive-numbers-n-which-are-also-square/#comments</comments> <pubDate>Sat, 23 Mar 2013 06:25:47 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Brute Force]]></category> <category><![CDATA[C#]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6584</guid> <description>&lt;p&gt;Problem 141 of Project Euler proved to be just as difficult as the number of people who has actually solved it shows.  The problem reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A positive integer, n, is divided by d and the quotient and remainder are q and r respectively. In addition d, q, and r are consecutive positive integer terms in a geometric sequence, but not necessarily in that order.&lt;br /&gt;Some progressive numbers, such as 9 and 10404 = 1022, happen to also be perfect squares.&lt;br /&gt;Find the sum of all progressive perfect squares below one trillion (10&lt;sup&gt;12&lt;/sup&gt;).&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I ended up getting the right idea when I was working out. I guess some times it really does help to do something else. In this problem it comes down to some really basic properties and insights so lets start with those&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-141investigating-progressive-numbers-n-which-are-also-square/"&gt;Project Euler 141:Investigating progressive numbers, n, which are also square.&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=X3JL_HFqqcI:Ww4O5K-Sdu4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=X3JL_HFqqcI:Ww4O5K-Sdu4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=X3JL_HFqqcI:Ww4O5K-Sdu4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=X3JL_HFqqcI:Ww4O5K-Sdu4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/X3JL_HFqqcI" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-141investigating-progressive-numbers-n-which-are-also-square/feed/</wfw:commentRss> <slash:comments>11</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-141investigating-progressive-numbers-n-which-are-also-square/</feedburner:origLink></item> <item><title>Project Euler 140: Modified Fibonacci golden nuggets</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/Qn6pYvfpx8s/</link> <comments>http://www.mathblog.dk/project-euler-140-modified-fibonacci-golden-nuggets/#comments</comments> <pubDate>Sat, 16 Mar 2013 06:37:12 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Diophantine Equation]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6549</guid> <description>&lt;p&gt;Problem 140 of Project Euler is very much a continuation of the Problem 137, as we can see from the problem description&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Consider the infinite polynomial series AG(x) = xG1 + x2G2 + x3G3 + ..., where Gk is the kth term of the second order recurrence relation Gk = Gk-1 + Gk-2, G1 = 1 and G2 = 4; that is, 1, 4, 5, 9, 14, 23, ... .&lt;br /&gt;We shall call AG(x) a golden nugget if x is rational. Find the sum of the first thirty golden nuggets.&lt;/b&gt;&lt;br /&gt;In Problem 137 I mentioned in the end that the problem could be solved using a Diophantine equation. This is exactly the way I will go for this problem.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-140-modified-fibonacci-golden-nuggets/"&gt;Project Euler 140: Modified Fibonacci golden nuggets&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=Qn6pYvfpx8s:cjHSmeY1AqY:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=Qn6pYvfpx8s:cjHSmeY1AqY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=Qn6pYvfpx8s:cjHSmeY1AqY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=Qn6pYvfpx8s:cjHSmeY1AqY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/Qn6pYvfpx8s" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-140-modified-fibonacci-golden-nuggets/feed/</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-140-modified-fibonacci-golden-nuggets/</feedburner:origLink></item> <item><title>Project Euler 139: Pythagorean tiles</title><link>http://feedproxy.google.com/~r/mathblogdk/~3/PcCVTly3i7U/</link> <comments>http://www.mathblog.dk/project-euler-139-pythagorean-tiles/#comments</comments> <pubDate>Sat, 09 Mar 2013 07:08:46 +0000</pubDate> <dc:creator>Kristian</dc:creator> <category><![CDATA[Project Euler]]></category> <category><![CDATA[Algebra]]></category> <category><![CDATA[C#]]></category> <category><![CDATA[Diophantine Equation]]></category> <category><![CDATA[Pell's equation]]></category> <category><![CDATA[Pythagorean Triplets]]></category><guid isPermaLink="false">http://www.mathblog.dk/?p=6528</guid> <description>&lt;p&gt;In Project Euler There are loads of problems that end up with a number theoretic solution. Problem 139 is no exception to that.  The problem reads&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Let (a, b, c) represent the three sides of a right angle triangle with integral length sides. It is possible to place four such triangles together to form a square with length c.&lt;br /&gt;For example, (3, 4, 5) triangles can be placed together to form a 5 by 5 square with a 1 by 1 hole in the middle and it can be seen that the 5 by 5 square can be tiled with twenty-five 1 by 1 squares.&lt;br /&gt;Given that the perimeter of the right triangle is less than one-hundred million, how many Pythagorean triangles would allow such a tiling to take place?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I will give you two different approaches to solving it.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Read the whole post at &lt;a href="http://www.mathblog.dk/project-euler-139-pythagorean-tiles/"&gt;Project Euler 139: Pythagorean tiles&lt;/a&gt;&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=PcCVTly3i7U:nCV8j-P8Flw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=PcCVTly3i7U:nCV8j-P8Flw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?i=PcCVTly3i7U:nCV8j-P8Flw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mathblogdk?a=PcCVTly3i7U:nCV8j-P8Flw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mathblogdk?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mathblogdk/~4/PcCVTly3i7U" height="1" width="1"/&gt;</description> <wfw:commentRss>http://www.mathblog.dk/project-euler-139-pythagorean-tiles/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://www.mathblog.dk/project-euler-139-pythagorean-tiles/</feedburner:origLink></item> </channel> </rss>
