<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>The Math Less Traveled</title>
	<atom:link href="http://www.mathlesstraveled.com//?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.mathlesstraveled.com</link>
	<description>Explorations in mathematical beauty</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:21:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>P vs NP: What&#8217;s the problem?</title>
		<link>http://www.mathlesstraveled.com/?p=755</link>
		<comments>http://www.mathlesstraveled.com/?p=755#comments</comments>
		<pubDate>Wed, 01 Sep 2010 14:21:19 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[computation]]></category>
		<category><![CDATA[open problems]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[decision]]></category>
		<category><![CDATA[Kalamazoo]]></category>
		<category><![CDATA[P vs NP]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=755</guid>
		<description><![CDATA[
As promised (better late than never), I&#8217;m going to begin explaining the (in)famous P vs NP question (see the previous post for a bit more context).   As a start, here&#8217;s a super-concise, 30,000-foot version of the question:


Are there problems whose solutions can be efficiently verified, but which cannot be efficiently solved?


Of course, this [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.mathlesstraveled.com/?p=744">As promised</a> (better late than never), I&#8217;m going to begin explaining the (in)famous <b>P vs NP</b> question (see the previous post for a bit more context).   As a start, here&#8217;s a super-concise, 30,000-foot version of the question:
</p>
<p>
<i>Are there problems whose solutions can be efficiently verified, but which cannot be efficiently solved?</i>
</p>
<p>
Of course, this is so vague as to be almost meaningless!  My job over the next few posts will be to un-vagueify it for you.  Looking at the statement, three questions may immediately come to mind, and we&#8217;ll consider each in turn:
</p>
<ul>
<li>
What counts as a <i>problem</i>?
</li>
<li>
What do we mean by <i>efficient</i>?
</li>
<li>
What do we mean by <i>verify</i>?</p>
</li>
</ul>
<p>Today we&#8217;ll start by considering the first question: what counts as a <i>problem</i>?
</p>
<p>
The P vs NP question is usually stated in terms of <i>decision   problems</i>, which are problems with a yes/no answer.  For example, <i>Is there a way to drive from here to Kalamazoo without driving on a   major highway?</i> Either there is a way to do it, or there isn&#8217;t, and we might hope that a computer (given an appropriate map as input) would be able to tell us which.
</p>
<p><center><img src="/custom/images/kalamazoo.jpg" alt="Kalamazoo" /></center></p>
<p>Of course, not every problem is a decision problem.  For example, <i>How long does it take to get to Kalamazoo if you go by the fastest possible route?</i> We might hope that a computer could answer this question too, but the answer we are looking for is an amount of time, rather than yes or no. This is not an isolated example; there are lots of interesting and important problems like this.  So why restrict ourselves to just decision problems?
</p>
<p>
It&#8217;s easy to see that decision problems are the <i>simplest possible</i> kind of problem.  The answer carries just a single &#8220;bit&#8221; of information. (The only thing that could possibly be simpler than a problem with a yes/no answer is a problem with a &#8220;no/no&#8221; answer, which carries zero information.  For example, &#8220;Does this dress make me look fat?&#8221;  But these aren&#8217;t the sorts of problems we are usually interested in solving with a computer.)  There is a long scientific tradition of studying the <i>simplest possible kind</i> of something, in order to gain insight into more complicated things as well.  That&#8217;s what we&#8217;re doing here.
</p>
<p>
But can studying decision problems really give us insight into problems with more complicated answers as well?  Actually, yes!  To see an example of what I mean, consider again our question <i>How long does it take to get to Kalamazoo if you go by the fastest possible route?</i> This is a problem with a &#8220;complicated&#8221; answer (you might think that a single number is not very complicated, but you have to admit that it is way more complicated than a simple yes/no!).  But now consider this related question: <i>Is it possible to get to Kalamazoo in <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/6f8f57715090da2632453988d9a1501b.gif' title='m' alt='m' align='bottom' style='vertical-align: -4pt'/> minutes or fewer?</i> Actually, this is a whole family of questions parameterized by the time <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/6f8f57715090da2632453988d9a1501b.gif' title='m' alt='m' align='bottom' style='vertical-align: -4pt'/>.  For any particular <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/6f8f57715090da2632453988d9a1501b.gif' title='m' alt='m' align='bottom' style='vertical-align: -4pt'/>, this is clearly a decision problem with a yes or no answer.  But if we had a computer program which could efficiently solve this problem for any <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/6f8f57715090da2632453988d9a1501b.gif' title='m' alt='m' align='bottom' style='vertical-align: -4pt'/>, we could use it to solve the original problem to any desired accuracy.  For example, we might ask the following series questions, with the answer to each question shown in bold:
</p>
<ul>
<li>
<i>Is it possible to get to Kalamazoo in 1000 minutes or fewer?</i> <b>YES</b>
</li>
<li>
<i>Is it possible to get to Kalamazoo in 500 minutes   or fewer?</i> <b>NO</b>
</li>
<li>
<i>Is it possible to get to Kalamazoo in 750 minutes   or fewer?</i> <b>YES</b>
</li>
<li>
<i>Is it possible to get to Kalamazoo in 625 minutes   or fewer?</i> <b>NO</b>
</li>
<li>
<i>and so on&#8230;</i></p>
</li>
</ul>
<p>After only a few more questions, we would learn that if we go by the fastest possible route and go exactly the speed limit the whole time and never stop for food or gas or to use a restroom, it would take exactly 665 minutes to get to Kalamazoo.
</p>
<p>
&#8220;That&#8217;s all very well,&#8221; you might say, &#8220;I can see how that works for problems with numerical answers.  But what about answers that are more complicated yet?&#8221;  For example, what if we wanted to know not only the time it takes to get to Kalamazoo by the fastest route, but also the route itself?  This is certainly not just a number, it is a list of turns, or a list of street names, or something complicated like that. Surely we can&#8217;t reduce this to just some decision problem?
</p>
<p>
Well, no matter how complicated the answer to a problem, it is always possible to encode the answer in <i>binary</i>, as a sequence of ones and zeros.  For example, to encode a series of turns we might agree to encode a left turn as 01, a right turn as 10, going straight as 11, and use 00 to indicate the end of the directions.  So 011110101100 would mean &#8220;Turn left, then go straight, then turn left twice, go straight again, and you&#8217;re there.&#8221;  In order to encode street names we would need a much more complex encoding but it can be done easily enough. For example we might encode the letter A as 00000, B as 00001, C as 00010, and so on.
</p>
<p>
OK, so what?  Here&#8217;s the punchline: given a problem P with some complicated answer and a suitable way to encode the answer to P in binary, we can make the following decision problem: </p>
<p><i>Is the <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/8ce4b16b22b58894aa86c421e8759df3.gif' title='k' alt='k' align='bottom' style='vertical-align: -4pt'/>th binary digit in the binary encoding of the answer to P a one?</i></p>
<p>I hope you can see how we could use a computer program capable of solving this problem for any <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/8ce4b16b22b58894aa86c421e8759df3.gif' title='k' alt='k' align='bottom' style='vertical-align: -4pt'/> to solve the original problem: just ask about the binary digit (or <i>bit</i>) at each position, and build up the answer to P one bit at a time.
</p>
<p>Perhaps you think this is <i>bit</i> contrived.  But it shows that in some sense, there&#8217;s nothing fundamentally interesting going on with problems that have complicated answers; we can always reduce them to decision problems. So for these reasons (and perhaps a few others), the P vs NP question is phrased in terms of decision problems only.  We can now restate the P vs NP question a bit more precisely:
</p>
<p>
<i>Are there <b>decision</b> problems whose solutions can be efficiently verified, but which cannot be efficiently solved?</i>
</p>
<p>
In my next post, I&#8217;ll explain what we mean by that hand-wavy word <i>efficiently</i>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=755</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>P ≠ NP?</title>
		<link>http://www.mathlesstraveled.com/?p=744</link>
		<comments>http://www.mathlesstraveled.com/?p=744#comments</comments>
		<pubDate>Tue, 10 Aug 2010 18:36:55 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[computation]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[open problems]]></category>
		<category><![CDATA[people]]></category>
		<category><![CDATA[proof]]></category>
		<category><![CDATA[Deolalikar]]></category>
		<category><![CDATA[Millenium]]></category>
		<category><![CDATA[P vs NP]]></category>
		<category><![CDATA[prize]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=744</guid>
		<description><![CDATA[A few days ago, Vinay Deolalikar, a Principal Research Scientist at HP Labs, began circulating a draft of a paper entitled &#8220;P ≠ NP&#8221;.  The mathematics and computer science communities immediately erupted in a frenzy of excitement and activity.
The million dollar question: why the excitement?  Well, that&#8217;s exactly it: it is a million-dollar [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, <a href="http://www.hpl.hp.com/personal/Vinay_Deolalikar/">Vinay Deolalikar</a>, a Principal Research Scientist at HP Labs, began circulating a <a href="http://www.hpl.hp.com/personal/Vinay_Deolalikar/Papers/pnp12pt.pdf">draft of a paper</a> entitled &#8220;P ≠ NP&#8221;.  The mathematics and computer science communities <a href="http://gregbaker.ca/blog/2010/08/07/p-n-np/">immediately</a> <a href="http://rjlipton.wordpress.com/2010/08/08/a-proof-that-p-is-not-equal-to-np/">erupted</a> in a <a href="http://rjlipton.wordpress.com/2010/08/09/issues-in-the-proof-that-p?np/">frenzy</a> of <a href="http://scientopia.org/blogs/goodmath/2010/08/09/holy-freaking-cow-p-np/">excitement</a> and <a href="http://scottaaronson.com/blog/?p=456">activity</a>.</p>
<p>The million dollar question: why the excitement?  Well, that&#8217;s exactly it: it <i>is</i> a million-dollar question.  The <a href="http://www.claymath.org/millennium/P_vs_NP/">P vs NP problem</a> is one of the seven <a href="http://www.claymath.org/millennium/">Millenium Prize Problems</a> established in 2000 by the <a href="http://www.claymath.org/">Clay Mathematics Institute</a>; each problem carries with it a prize of $1,000,000.  One of the seven &#8212; the <a href="http://www.claymath.org/millennium/Poincare_Conjecture/">Poincaré Conjecture</a> &#8212; has <a href="http://www.claymath.org/poincare/">already been solved</a>, by the Russian mathematician <a href="http://en.wikipedia.org/wiki/Grigori_Perelman">Grigori Perelman</a> (who famously refused to accept both a <a href="http://en.wikipedia.org/wiki/Fields_Medal">Fields Medal</a> and the $1 million).  And it&#8217;s not even really about the $1 million prize; the P vs NP problem is widely agreed to be the most significant (and difficult) open question in theoretical computer science, so for someone to solve it would be a Really Big Deal.</p>
<p>So, did Deolalikar really solve it?  Will he win the $1 million?  Well&#8230; it&#8217;s way too early to tell!  Here are a few things to keep in mind:</p>
<ul>
<li>Since P vs NP is such a famous problem, there are <i>tons</i> of &#8220;attempts&#8221; at solving it published all the time.  Most are by people who either have an overinflated estimate of their mathematical understanding, or believe the solution was told to them in a dream by benevolent aliens, or both.  Hence they <a href="http://www.scottaaronson.com/blog/?p=304">aren&#8217;t even really worth serious mathematicians&#8217; time to read</a>.  Sad but true.  But this is clearly not the case here: Deolalikar is a respected researcher who has done related work in the past, and his 100-page paper is well-written and demonstrates a good understanding of the relevant issues (you <a href="http://gregbaker.ca/blog/2010/08/07/p-n-np/">don&#8217;t have to take my word for it</a>).  Even if the proof ends up having some sort of fatal flaw, it&#8217;s clear that he has some interesting new ideas that may lead to other discoveries. Hence the excitement.</li>
<li>Unfortunately, there have already been some <a href="http://rjlipton.wordpress.com/2010/08/09/issues-in-the-proof-that-p?np/">possible flaws pointed out</a>.  But keep in mind that any paper of this magnitude is bound to contain tons of errors, omissions, and typos (if you don&#8217;t believe me, try writing one sometime!).  Only time will tell whether these flaws turn out to be fatal problems that invalidate Deolalikar&#8217;s entire approach, mistakes that can be fixed relatively easily, or just misunderstandings on the part of the people who pointed them out.</li>
<li>Supposing the flaws are fixable and Deolalikar&#8217;s proof ends up being accepted by the mathematical community, it will still be quite a few years before he could possibly win the $1 million. First, the proof needs to be published in a major mathematical journal (which will probably take at least a year), then there is a mandatory two-year waiting period, and then a special committee has to examine the proof and decide whether to award the prize!  So don&#8217;t hold your breath.</li>
</ul>
<p>At this point, you may also be wondering what the heck the P vs NP problem actually <i>is</i>, and why it is so important.  Fortunately, it&#8217;s the one Millenium Prize problem that I am actually qualified to explain, and in the following post or two I intend to do just that!  (Unfortunately I am emphatically <i>not</i> qualified to explain anything about Deolalikar&#8217;s attempted proof.)  I&#8217;ve been intending for quite a while to write about some interesting topics in the intersection of mathematics and computer science (my day job, after all, is as a computer scientist!) and this will provide the perfect excuse.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=744</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>More cookies</title>
		<link>http://www.mathlesstraveled.com/?p=738</link>
		<comments>http://www.mathlesstraveled.com/?p=738#comments</comments>
		<pubDate>Tue, 27 Jul 2010 17:30:06 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[challenges]]></category>
		<category><![CDATA[counting]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[students]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=738</guid>
		<description><![CDATA[I recently received the following interesting problem from Shadowcat, which is a generalization of the cookie problem I&#8217;ve written about previously.  We again want to count the ways to distribute identical cookies to non-identical students, with the twist that we impose an upper bound on the number of cookies received by each student (quite [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received the following interesting problem from Shadowcat, which is a generalization of the <a href="http://www.mathlesstraveled.com/?p=285">cookie problem</a> I&#8217;ve written about previously.  We again want to count the ways to distribute identical cookies to non-identical students, with the twist that we impose an <i>upper bound</i> on the number of cookies received by each student (quite reasonable if we want to be mindful of the students&#8217; nutrition):</p>
<blockquote><p>
Imagine that instead of ten cookies and five students, you have fifty cookies and ten students.  (It&#8217;s easier to quantify this situation using larger numbers.)  How many ways can you distribute these cookies among the students so that no student has any more than ten cookies?</p>
<p>Students may be given any number of cookies less than or equal to ten, including zero.  The cookies are identical, just as in the original problem, so, as with the original problem, it doesn&#8217;t matter which cookie the student gets, just how many.  But the students, again, are *not* identical, so which student gets a specific number of cookies is important.
</p></blockquote>
<p>I unfortunately haven&#8217;t had much time to think about it yet.  Feel free to leave comments, thoughts, partial solutions, and solutions in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=738</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Right answers for the wrong reasons</title>
		<link>http://www.mathlesstraveled.com/?p=733</link>
		<comments>http://www.mathlesstraveled.com/?p=733#comments</comments>
		<pubDate>Wed, 30 Jun 2010 08:34:33 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[right for the wrong reason]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=733</guid>
		<description><![CDATA[

Here&#8217;s a recent xkcd which as a math educator I found particularly funny.  Some questions for my readers:

What numbers besides 3 and 9 would &#8220;work&#8221; here?
Do you have any particularly funny or interesting stories of students getting something right for the wrong reason?  Post them in a comment (or, better yet, on your [...]]]></description>
			<content:encoded><![CDATA[<p><center><br />
<a border="0" href="http://xkcd.com/759/"><img src="http://imgs.xkcd.com/comics/3x9.png" alt="xkcd #759" /></a></center></p>
<p>Here&#8217;s a recent <a href="http://xkcd.com/">xkcd</a> which as a math educator I found particularly funny.  Some questions for my readers:</p>
<ol>
<li>What numbers besides 3 and 9 would &#8220;work&#8221; here?</li>
<li>Do you have any particularly funny or interesting stories of students getting something right for the wrong reason?  Post them in a comment (or, better yet, on your own blog if you have one!).</li>
</ol>
<p>Also, many parts of my <a href="http://www.mathlesstraveled.com/?p=727">optimal change-carrying challenge</a> remain unanswered (although this is likely due in part to the unfortunate downtime I experienced shortly after publishing it).  If you haven&#8217;t already, give it a try, you&#8217;re sure to find some aspect of the problem that interests you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=733</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Optimal change-carrying</title>
		<link>http://www.mathlesstraveled.com/?p=727</link>
		<comments>http://www.mathlesstraveled.com/?p=727#comments</comments>
		<pubDate>Thu, 24 Jun 2010 10:55:07 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[challenges]]></category>
		<category><![CDATA[counting]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[minimum]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=727</guid>
		<description><![CDATA[Recently Michael left the following challenge in a comment:

I’ve been trying to optimize my change-carrying habits. What is the smallest amount of quarters, dimes, nickels and pennies one can carry while still being able to give perfect change (two decimals)?

It&#8217;s not 100% clear what Michael meant by &#8220;give perfect change&#8221;, but let&#8217;s assume the goal [...]]]></description>
			<content:encoded><![CDATA[<p>Recently Michael left the <a href="http://www.mathlesstraveled.com/?p=706&#038;cpage=1#comment-55186">following challenge in a comment</a>:</p>
<blockquote><p>
I’ve been trying to optimize my change-carrying habits. What is the smallest amount of quarters, dimes, nickels and pennies one can carry while still being able to give perfect change (two decimals)?
</p></blockquote>
<p>It&#8217;s not 100% clear what Michael meant by &#8220;give perfect change&#8221;, but let&#8217;s assume the goal is to be able to make any amount between 1 and 99 cents.  For non-US readers, US coins are worth 1, 5, 10, and 25 cents.</p>
<p>Some questions for exploration:</p>
<ol>
<li>What&#8217;s the smallest number of coins you can come up with that works?  What are they?</li>
<li>Are there multiple solutions, or is the solution unique?</li>
<li>How can you prove that a proposed solution is optimal? Unique?</li>
<li>Can you answer the question for a different system of coins?  For example, I am currently spending the summer in Cambridge, England, where coins are worth 1, 2, 5, 10, 20, and 50 pence.  What if you also include the 1- and 2-pound (100 and 200 pence) coins, and want to be able to make change for every amount up to 5 pounds (the smallest note)?</li>
<li>The US and UK coin systems both have the property that a <i>greedy strategy</i> works for giving the smallest amount of change.  That is, to make a certain amount of change with the smallest possible number of coins, you can just keep picking the biggest coin less than or equal to the remaining amount.  What about coin systems without this property?  Do they make this problem harder? Easier?</li>
<li>If you got to design your own system of coins with whatever denominations you wanted, how would you design it so that the minimum number of coins needed to make all amounts between 1 and 99 cents is as small as possible?  As LARGE as possible?</li>
<li>What are some methodologies for attacking this sort of question in general?</li>
</ol>
<p>Feel free to come up with your own generalizations as well.  Post questions, discussion, and solutions in the comments but don&#8217;t peek until you&#8217;ve tried solving it!  I&#8217;ve posted another <a href="http://www.mathlesstraveled.com/?p=118">change-making puzzle</a> before as well; the discussion there might also give you ideas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=727</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Manufactoria</title>
		<link>http://www.mathlesstraveled.com/?p=719</link>
		<comments>http://www.mathlesstraveled.com/?p=719#comments</comments>
		<pubDate>Tue, 25 May 2010 15:42:30 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[games]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[puzzles]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=719</guid>
		<description><![CDATA[A friend of mine just pointed me to a most excellent puzzle game, Manufactoria, wherein you build little machines to test robots.  For now I won&#8217;t give away the secret of what real math/computer science topic the game teaches you, but I&#8217;ll write more about it later.  For now, just have fun playing [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine just pointed me to a most excellent puzzle game, <a href="http://jayisgames.com/games/manufactoria/">Manufactoria</a>, wherein you build little machines to test robots.  For now I won&#8217;t give away the secret of what real math/computer science topic the game teaches you, but I&#8217;ll write more about it later.  For now, just have fun playing the game! =)</p>
<p><center><br />
<img src="/custom/images/manufactoria.png" alt="Manufactoria" /><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=719</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>The broken weight problem: solutions and further exploration</title>
		<link>http://www.mathlesstraveled.com/?p=706</link>
		<comments>http://www.mathlesstraveled.com/?p=706#comments</comments>
		<pubDate>Tue, 11 May 2010 19:14:48 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[challenges]]></category>
		<category><![CDATA[number theory]]></category>
		<category><![CDATA[solutions]]></category>
		<category><![CDATA[balanced]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[ternary]]></category>
		<category><![CDATA[weight]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=706</guid>
		<description><![CDATA[First of all, let me say to all my readers how fantastic it felt to post a puzzle, after not posting anything for two months, and get eighteen thoughtful, insightful comments in just three days; it&#8217;s every blogger&#8217;s dream.  You all are fantastic and make this a lot of fun &#8212; thanks for reading!
I [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, let me say to all my readers how fantastic it felt to post a puzzle, after not posting anything for two months, and get <i>eighteen</i> thoughtful, insightful comments in just three days; it&#8217;s every blogger&#8217;s dream.  You all are fantastic and make this a lot of fun &#8212; thanks for reading!</p>
<p>I thought I&#8217;d take a post just to summarize some of the responses and solutions to the <a href="http://www.mathlesstraveled.com/?p=701">broken weight problem</a>.  As many commenters realized, the solution is that the weights are of sizes 1, 3, 9, and 27.  Hmm, powers of three&#8230; coincidence?  Of course not!</p>
<p>As several commenters noted, something involving base three readily presents itself if we realize that there are three possibilities for each weight: it can be on the left of the balance scale, on the right, or not on the scale at all.  Since one side of the scale corresponds to adding the weight and the other side to subtracting, we are essentially writing numbers in base three, but using the digits -1, 0, and 1 instead of the usual 0, 1, 2.  For example, 25 can be written as 10(-1)1, that is, <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/20800777557ed0b190b0c51b53e5d758.gif' title='1 \cdot 27 + 0 \cdot 9 - 1 \cdot 3 + 1 \cdot 1' alt='1 \cdot 27 + 0 \cdot 9 - 1 \cdot 3 + 1 \cdot 1' align='bottom' style='vertical-align: -4pt'/> (if we were really going to use this system we&#8217;d want to come up with a better symbol for -1).  In fact, this is known as <a href="http://en.wikipedia.org/wiki/Balanced_ternary">balanced ternary</a>, and it is a fact (as proved by a few commenters) that <i>n</i> digits of balanced ternary allow us to uniquely represent every integer between <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/0076e2a15f89293abf6d61c3f6a2e5e5.gif' title='\pm \frac{3^n - 1}{2}' alt='\pm \frac{3^n - 1}{2}' align='bottom' style='vertical-align: -4pt'/>.  With four digits (as in the problem) we can uniquely represent every integer between -40 and 40.  There was a bit of confusion in the comments about being able to represent some integers in more than one way, but I think if you try it out you will find that this is not the case.</p>
<p>From this problem (generalizing it to arbitrary numbers of weights), we can see that</p>
<p><center><br />
<img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/a3d9dda6c9b770ef0141dc86fcb95be6.gif' title='\displaystyle 1 + 3 + \dots + 3^{n-1} = \frac{3^n - 1}{2}.' alt='\displaystyle 1 + 3 + \dots + 3^{n-1} = \frac{3^n - 1}{2}.' align='bottom' style='vertical-align: -4pt'/><br />
</center></p>
<p>JM noted that this generalizes to</p>
<p><center><br />
<img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/eab60e7e9abfabef07b353fa8420e984.gif' title='\displaystyle 1 + b + b^2 + \dots + b^{n-1} = \frac{b^n - 1}{b - 1}' alt='\displaystyle 1 + b + b^2 + \dots + b^{n-1} = \frac{b^n - 1}{b - 1}' align='bottom' style='vertical-align: -4pt'/><br />
</center></p>
<p>and wondered whether this has anything to do with solving the problem, or with problems like it.  Indeed it does; here&#8217;s one for you: suppose you are tasked with designing a set of weights.  The weights should make it possible to weigh as many different integer weights as possible, without leaving any out, just like the weights 1, 3, 9, 27 make it possible to weigh every integer weight up to 40 without leaving any out.  The one difference is that you want to have <i>two identical copies</i> of each weight.  What is the best you can do?</p>
<p>I&#8217;ve left the problem slightly vague on purpose, but I hope you will have fun solving it and figuring out what it has to do with JM&#8217;s observation!  Can you come up with other interesting generalizations of the problem?</p>
<p>Finally, Sam Shah posted a link to a <a href="http://samjshah.com/2010/05/03/weights-goldsmiths-optimization/">description of his experience</a> using the problem in a real-life problem-solving session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=706</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The broken weight problem</title>
		<link>http://www.mathlesstraveled.com/?p=701</link>
		<comments>http://www.mathlesstraveled.com/?p=701#comments</comments>
		<pubDate>Sat, 01 May 2010 19:14:18 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[challenges]]></category>
		<category><![CDATA[number theory]]></category>
		<category><![CDATA[puzzles]]></category>
		<category><![CDATA[puzzle]]></category>
		<category><![CDATA[weights]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=701</guid>
		<description><![CDATA[Here&#8217;s a fantastic problem I recently heard.  Apparently it was first posed by Claude Gaspard Bachet de Méziriac in a book of arithmetic problems published in 1612, and can also be found in Heinrich Dorrie&#8217;s 100 Great Problems of Elementary Mathematics.

A merchant had a forty pound measuring weight that broke into four pieces as [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a fantastic problem I recently heard.  Apparently it was first posed by <a href="http://en.wikipedia.org/wiki/Claude_Gaspard_Bachet_de_Méziriac">Claude Gaspard Bachet de Méziriac</a> in a book of arithmetic problems published in 1612, and can also be found in Heinrich Dorrie&#8217;s <a href="http://www.amazon.com/Problems-Elementary-Mathematics-classics-mathematics/dp/0486613488/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1272740517&#038;sr=1-1">100 Great Problems of Elementary Mathematics</a>.</p>
<blockquote><p>
A merchant had a forty pound measuring weight that broke into four pieces as the result of a fall. When the pieces were subsequently weighed, it was found that the weight of each piece was a whole number of pounds and that the four pieces could be used to weigh every integral weight between 1 and 40 pounds.  What were the weights of the pieces?</p></blockquote>
<p>Note that since this was a 17th-century merchant, he of course used a balance scale to weigh things.  So, for example, he could use a 1-pound weight and a 4-pound weight to weigh a 3-pound object, by placing the 3-pound object and 1-pound weight on one side of the scale, and the 4-pound weight on the other side.</p>
<p>The solution to this puzzle is really fascinating and leads into all sorts of fun generalizations and other topics; I&#8217;ll write more later.  For now, as always, feel free to leave questions, observations, and solutions in the comments (so don&#8217;t look at the comments before you&#8217;ve solved it if you don&#8217;t want to see the answer!).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=701</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>A gentle introduction to the 5th Polymath project</title>
		<link>http://www.mathlesstraveled.com/?p=697</link>
		<comments>http://www.mathlesstraveled.com/?p=697#comments</comments>
		<pubDate>Wed, 21 Apr 2010 22:11:54 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[counting]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[number theory]]></category>
		<category><![CDATA[open problems]]></category>
		<category><![CDATA[discrepancy]]></category>
		<category><![CDATA[Erdős]]></category>
		<category><![CDATA[polymath]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=697</guid>
		<description><![CDATA[I highly recommend reading Jason Dyer&#8217;s description of the Erdős discrepancy problem, the subject of the most recent Polymath project (the Polymath projects are an experiment in massively collaborative mathematics, where anyone at all can contribute something towards a solution).  The Erdős discrepancy problem in particular is fascinating because it is quite easy to [...]]]></description>
			<content:encoded><![CDATA[<p>I highly recommend reading <a href="http://numberwarrior.wordpress.com/2010/04/21/a-gentle-introduction-to-the-5th-polymath-project/">Jason Dyer&#8217;s description</a> of the <a href="http://michaelnielsen.org/polymath1/index.php?title=The_Erd%C5%91s_discrepancy_problem">Erdős discrepancy problem</a>, the subject of the most recent <a href="http://michaelnielsen.org/polymath1/index.php?title=Main_Page">Polymath project</a> (the Polymath projects are an experiment in massively collaborative mathematics, where anyone at all can contribute something towards a solution).  The Erdős discrepancy problem in particular is fascinating because it is quite easy to understand the statement of the problem with only a knowledge of basic arithmetic&#8212;but it has been unsolved for almost 80 years!!  Jason&#8217;s explanation of the problem is clear and engaging, and has cute pictures&#8212;go give it a read!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=697</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Penn Alexander math club: map coloring</title>
		<link>http://www.mathlesstraveled.com/?p=694</link>
		<comments>http://www.mathlesstraveled.com/?p=694#comments</comments>
		<pubDate>Tue, 23 Feb 2010 23:06:07 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[geometry]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[puzzles]]></category>
		<category><![CDATA[teaching]]></category>
		<category><![CDATA[four-color theorem]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[map coloring]]></category>
		<category><![CDATA[math club]]></category>

		<guid isPermaLink="false">http://www.mathlesstraveled.com/?p=694</guid>
		<description><![CDATA[Today in math club I had the students explore map coloring.  I tried to leave it as open-ended as possible to start&#8212;I just said that we were going to draw maps with countries, and try to give each country a color, so that no two adjacent countries have the same color.  I was [...]]]></description>
			<content:encoded><![CDATA[<p>Today in math club I had the students explore map coloring.  I tried to leave it as open-ended as possible to start&#8212;I just said that we were going to draw maps with countries, and try to give each country a color, so that no two adjacent countries have the same color.  I was careful <i>not</i> to specify what a &#8220;country&#8221; is, or what it means for two countries to be &#8220;next to&#8221; each other!</p>
<p>Pretty much on their own, they figured out how to draw a map with four countries all touching each other, which therefore required four colors.  When I challenged them to draw a map with five countries all touching each other, they came up with maps involving countries touching at a corner, and with &#8220;satellite&#8221; disconnected regions that had to be given the same color as the &#8220;mother country&#8221;.  They also figured out that if we allow these things, we can draw maps requiring an arbitrary number of colors, and conjectured that without these things we can&#8217;t have five countries all touching each other.  I then told them about the <a href="http://en.wikipedia.org/wiki/Four-color_theorem">four-color theorem</a> and we had fun trying to four-color a map of North America (including the US states).  </p>
<p>Then I showed them how to interpret maps as <a href="http://en.wikipedia.org/wiki/Graph_(mathematics)">graphs</a>, why maps correspond to <a href="http://en.wikipedia.org/wiki/Planar_graph">planar graphs</a>, and how to turn the map-coloring question into a graph-coloring question. I showed them the complete graph on 5 vertices and how it would correspond to having five countries all touching each other.  Then for fun I posed the <a href="http://en.wikipedia.org/wiki/Water,_gas,_and_electricity">three utilities problem</a>, which after playing with for a while, they correctly guessed could not be solved within the given constraints.  One student did come up with an ingenious solution involving a pair of &#8220;teleporters&#8221;, which (although I didn&#8217;t point this out to them at the time) corresponds to the fact that <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/374abe8edbb53a48d08befa9aef58bd0.gif' title='K_{3,3}' alt='K_{3,3}' align='bottom' style='vertical-align: -4pt'/> <i>can</i> be embedded on a torus!  I then showed them how to interpret this also as a statement about graphs (specifically, the non-planarity of <img src='http://wso.williams.edu/~byorgey/wordpress/wp-content/plugins/latexrender/pictures/374abe8edbb53a48d08befa9aef58bd0.gif' title='K_{3,3}' alt='K_{3,3}' align='bottom' style='vertical-align: -4pt'/>), and then told them <a href="http://en.wikipedia.org/wiki/Planar_graph">Kuratowski&#8217;s Theorem</a> (which I still find rather amazing and magical).</p>
<p>To finish up, I had them explore the idea of dividing up a continent into countries only by drawing straight lines that went completely from one side of the continent to the other.  They correctly figured out that such maps would always be two-colorable.  We looked at some examples and their corresponding graphs (which, they noted, always consist of a bunch of quadrilaterals).  When I showed them the inductive proof of two-colorability, one of the students noted that the proof generalized to non-straight boundaries, as long as the boundaries are drawn as continuous lines with both endpoints on the &#8220;coastline&#8221; of the continent (which I hadn&#8217;t realized)!</p>
<p>All in all, this was probably our most fun and engaging meeting yet!  Now that the Mathcounts competition is over, I think we&#8217;ll have a lot of fun doing some more open-ended, exploratory things like this rather than practicing with problem sets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathlesstraveled.com/?feed=rss2&amp;p=694</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
