<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx</link><description>I thought it would be fun to try something new here.&amp;#160; So I am going to present a logic puzzle and let people try to answer it.&amp;#160; I will post the solution in the future but I want to give people a chance to try to solve it. So here is the first</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#9762640</link><pubDate>Tue, 16 Jun 2009 19:33:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9762640</guid><dc:creator>Neil</dc:creator><description>&lt;p&gt;Hi, I found a website with logic puzles online. It's Crosswords-world.net, and this is the link to nonograms section &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new"&gt;&lt;a rel="nofollow" target="_new" href="http://crosswords-world.net/jap/"&gt;http://crosswords-world.net/jap/&lt;/a&gt;&amp;quot;&amp;gt;японские"&gt;&lt;a rel="nofollow" target="_new" href="http://crosswords-world.net/jap/"&gt;http://crosswords-world.net/jap/&lt;/a&gt;&amp;quot;&amp;gt;японские&lt;/a&gt; кроссворды&amp;lt;/a&amp;gt; or this &lt;a rel="nofollow" target="_new" href="http://crosswords-world.net/jap/"&gt;http://crosswords-world.net/jap/&lt;/a&gt;. There are more interesting puzzles.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9762640" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8848489</link><pubDate>Mon, 11 Aug 2008 20:08:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8848489</guid><dc:creator>imRahulSoni</dc:creator><description>&lt;p&gt;That was cool :-)&lt;/p&gt;
&lt;p&gt;Thanks for posting it Tom.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8848489" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8832076</link><pubDate>Mon, 04 Aug 2008 23:28:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8832076</guid><dc:creator>ASP.NET Debugging</dc:creator><description>&lt;p&gt;The answer is now posted at:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/tom/archive/2008/08/04/answer-login-puzzle-buying-donuts-puzzle.aspx"&gt;http://blogs.msdn.com/tom/archive/2008/08/04/answer-login-puzzle-buying-donuts-puzzle.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8832076" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8832048</link><pubDate>Mon, 04 Aug 2008 23:14:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8832048</guid><dc:creator>Douglas Adams</dc:creator><description>&lt;p&gt;If I where to guess 42. Which is the Answer to Life, the Universe, and Everything.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8832048" width="1" height="1"&gt;</description></item><item><title>ANSWER Login Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8831599</link><pubDate>Mon, 04 Aug 2008 20:16:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8831599</guid><dc:creator>ASP.NET Debugging</dc:creator><description>&lt;p&gt;Here is the answer to the question that was posted, here . There are a few ways to answer this, you can&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8831599" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8818500</link><pubDate>Sun, 03 Aug 2008 18:32:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8818500</guid><dc:creator>joshka</dc:creator><description>&lt;p&gt;ans: 43&lt;/p&gt;
&lt;p&gt;1. can buy any amount where n % 3 = 0 for n&amp;gt;=6&lt;/p&gt;
&lt;p&gt;as:&lt;/p&gt;
&lt;p&gt;9x0 + 6x1 = 6&lt;/p&gt;
&lt;p&gt;9x1 + 6x0 = 9&lt;/p&gt;
&lt;p&gt;9x0 + 6x2 = 12&lt;/p&gt;
&lt;p&gt;9x1 + 6x1 = 15&lt;/p&gt;
&lt;p&gt;9x0 + 6x3 = 18&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;2. similarly any amount where n % 3 = 2 for n&amp;gt;= 26&lt;/p&gt;
&lt;p&gt;(26 % 3 = 2, and 26= 20+6)&lt;/p&gt;
&lt;p&gt;3. similarly any amount where n % 3 = 1 for n &amp;gt;= 46 (20x2 + 6)&lt;/p&gt;
&lt;p&gt;thus:&lt;/p&gt;
&lt;p&gt;as n % 3 = 0, 1, or 2 for all n, the answer is less than 46.&lt;/p&gt;
&lt;p&gt;45 % 3 = 0 (thus from 1, buyable)&lt;/p&gt;
&lt;p&gt;44 % 3 = 2 (thus from 2, buyable)&lt;/p&gt;
&lt;p&gt;43 % 3 is not buyable&lt;/p&gt;
&lt;p&gt;lots missed from this logic for a full proof, but it's close enough.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8818500" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8815280</link><pubDate>Sun, 03 Aug 2008 13:12:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8815280</guid><dc:creator>Hanan</dc:creator><description>&lt;p&gt;The answer is 5, you can purchase any number greater than that, it will just require purchasing a few extra donuts along with them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8815280" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8810910</link><pubDate>Sun, 03 Aug 2008 05:29:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8810910</guid><dc:creator>Matthew Dennis</dc:creator><description>&lt;p&gt;37, after that there is a sequence of 6 numbers that can be made, so by adding 6 to the numbers allows the remaining numbers to be made.&lt;/p&gt;
&lt;p&gt;Used BFI alogrithm (brute force and ignorance)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8810910" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8802676</link><pubDate>Sat, 02 Aug 2008 01:28:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8802676</guid><dc:creator>Andrey Andreev</dc:creator><description>&lt;p&gt;My wife calculated the number 43. She showed 43 to be impossible and the 6 numbers after 43 to be &amp;quot;possible&amp;quot;, by which one easily concludes that every larger number is possible (by adding a 6box to a proved one). I can post a detailed proof if requested&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8802676" width="1" height="1"&gt;</description></item><item><title>re: Logic Puzzle: Buying donuts puzzle</title><link>http://blogs.msdn.com/b/tom/archive/2008/07/31/logic-puzzle-buying-donuts-puzzle.aspx#8802022</link><pubDate>Fri, 01 Aug 2008 23:42:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8802022</guid><dc:creator>Jean-Philippe Leconte</dc:creator><description>&lt;p&gt;Answer: 43&lt;/p&gt;
&lt;p&gt;Just by listing the possible answers, you find out that the first 6 sequential numbers you can produce are 44 to 49, those allow you to produce all possible numbers.&lt;/p&gt;
&lt;p&gt;For fun : 6, 9, 12, 15, 18, 20, 21, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49...&lt;/p&gt;
&lt;p&gt;Didn't even have to fire Mathematica... ;) but thx for the puzzle. (yes, I doubled every letter in my email domain part)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8802022" width="1" height="1"&gt;</description></item></channel></rss>