<?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>Math Goes Pop! &#187; Math Gets Around</title>
	<atom:link href="http://www.mathgoespop.com/category/math-gets-around/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mathgoespop.com</link>
	<description>Ruminations on the Intersection Between Mathematics and Popular Culture</description>
	<lastBuildDate>Sat, 04 Feb 2012 02:21:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Lego Math Maniac</title>
		<link>http://www.mathgoespop.com/2012/01/lego-math-maniac.html</link>
		<comments>http://www.mathgoespop.com/2012/01/lego-math-maniac.html#comments</comments>
		<pubDate>Wed, 25 Jan 2012 19:49:23 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[Math in the News]]></category>
		<category><![CDATA[Kleiber's Law]]></category>
		<category><![CDATA[Legos]]></category>
		<category><![CDATA[Power Law]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1640</guid>
		<description><![CDATA[<p>Though I have lived in Southern California for several years, I have never been to Legoland, a theme park based around the classic (and awesome) children&#8217;s toys.  The park perennially sits in the shadow of more popular parks in the region (e.g. Disneyland, Universal Studios, and the Banana Club Museum), and its prices make it hard <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2012/01/lego-math-maniac.html">Lego Math Maniac</a></span>]]></description>
			<content:encoded><![CDATA[<p>Though I have lived in Southern California for several years, I have never been to <a href="http://www.legoland.com/">Legoland</a>, a theme park based around the classic (and awesome) children&#8217;s toys.  The park perennially sits in the shadow of more popular parks in the region (e.g. <a href="http://disneyland.disney.go.com/">Disneyland</a>, <a href="http://www.universalstudioshollywood.com/">Universal Studios</a>, and the <a href="http://www.bananaclub.com/InsideMuseum.htm">Banana Club Museum</a>), and its prices make it hard to justify a visit for an adult male with no children, no matter how many fond Lego memories he may have from his childhood.  However, given the recent attention Lego has received in the context of mathematics, it may be time to finally plan a trip.</p>
<p>A recent <a href="http://www.wired.com/wiredscience/2012/01/the-mathematics-of-lego/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+wired%2Findex+%28Wired%3A+Index+3+%28Top+Stories+2%29%29&amp;utm_content=Google+Reader">article</a> on Wired&#8217;s website discusses the mathematics of Lego &#8211; more specifically, it highlights an article on the complexity of Lego systems.  As any child will tell you, Lego sets can vary from very simple, small sets, to much larger and more complicated ones.  As a simple corollary, smaller sets will have fewer pieces, and larger sets will have more pieces.  But how does the number of <em>types</em> of pieces grow as the size of the set grows?  For example, if a 100 piece set consists of 10 different types of pieces, is it reasonable to guess that a 1000 piece set will consist of 100 different types of pieces?</p>
<p style="text-align: center;"><object width="480" height="360" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/mdp7KxcYt6c?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed width="480" height="360" type="application/x-shockwave-flash" src="http://www.youtube.com/v/mdp7KxcYt6c?version=3&amp;hl=en_US&amp;rel=0" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>
<p style="text-align: left;">In a word, no.  Though the number of different types of pieces will grow as the size of a set grows, it will grow slower than the size of the set (in other words, it will grow sub-linearly).  To put it another way, as the size of the Lego set grows, rather than building more and more new types of pieces, the same types of pieces that are present in smaller sets tend to be used in new ways.  The effect is that the proportion of distinct piece types <em>decreases</em> as the size of the set grows.  From a mathematical standpoint, if we let <em>y</em> denote the number of different types of pieces, and <em>x</em> be the number of pieces, then this power law is giving us the following equation:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=y%20%3D%20Ax%5E%7Bb%7D%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='y = Ax^{b},' title='y = Ax^{b},' class='latex' /></p>
<p style="text-align: left;">for some constants <em>A</em> and <em>b</em>, with <em>b</em> between 0 and 1.  While <em>y</em> grows as <em>x</em> grows, it does not grow as quickly as <em>x</em> itself.</p>
<p style="text-align: left;">Taken in a broader context, though, this should not be surprising.  Examples of similar phenomena are prevalent throughout nature, as well as in made-made phenomena such as urban planning.  One example cited in the Wired article is <a href="http://en.wikipedia.org/wiki/Kleiber%27s_law">Kleiber&#8217;s Law</a>, which states that the ratio of an animal&#8217;s metabolic rate to its mass tends to decrease as mass increases (in other words, larger animals are capable of metabolizing more efficiently).  <a href="http://www.sciencedaily.com/releases/2009/09/090903163945.htm">Here&#8217;s</a> an article that discusses an analogue of this power law in the context of brain development, and relates this to the development of cities.</p>
<p style="text-align: left;">So the next time you give a Lego set to a child, feel free to explain this connection &#8211; I&#8217;m sure any child will welcome the math lesson (at least, any child worth giving a Lego set to in the first place).  It&#8217;s also worth noting that this phenomenon is most likely not unique to Lego sets &#8211; I am eagerly awaiting a similar report on the mathematics of <a href="http://en.wikipedia.org/wiki/Tinkertoy">Tinkertoys</a> &#8211; though unfortunately, in this case the number of piece types seems not to have increased in nearly a century.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2012/01/lego-math-maniac.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Car Talk Mathematics</title>
		<link>http://www.mathgoespop.com/2012/01/cartalk.html</link>
		<comments>http://www.mathgoespop.com/2012/01/cartalk.html#comments</comments>
		<pubDate>Sat, 07 Jan 2012 21:10:53 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[Math on the Radio]]></category>
		<category><![CDATA[arithmetic]]></category>
		<category><![CDATA[Car Talk]]></category>
		<category><![CDATA[fundamental counting principle]]></category>
		<category><![CDATA[fundamental theorem of arithmetic]]></category>
		<category><![CDATA[npr]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1611</guid>
		<description><![CDATA[<p>Happy 2012! I hope you all has a restful and calorie-filled holiday.  For my part, the holidays typically involve a fair amount of driving, and ergo, a fair amount of listening to podcasts.  To that end, I&#8217;d like to ease into a new year of mathematics by considering a simple puzzle, one which was featured recently <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2012/01/cartalk.html">Car Talk Mathematics</a></span>]]></description>
			<content:encoded><![CDATA[<p>Happy 2012! I hope you all has a restful and calorie-filled holiday.  For my part, the holidays typically involve a fair amount of driving, and ergo, a fair amount of listening to podcasts.  To that end, I&#8217;d like to ease into a new year of mathematics by considering a simple puzzle, one which was featured recently on NPR&#8217;s <a href="http://www.cartalk.com/">Car Talk</a>.  If you are not fortunate enough to have listened to this show, it centers on two brothers from Cambridge, Massachusetts, affectionately known as Click and Clack, the Tappet Brothers (though their real names are Tom and Ray Magliozzi).  Each week, in between a fair amount of good-natured banter, the brothers field a variety of automotive questions from callers nationwide.</p>
<div class="wp-caption aligncenter" style="width: 314px"><a href="http://imgs.xkcd.com/comics/brakes.png"><img src="http://imgs.xkcd.com/comics/brakes.png" alt="" width="304" height="526" /></a><p class="wp-caption-text">Even XKCD is on the Car Talk bandwagon! (Click the image to go to the source)</p></div>
<p>Most significant to our present discussion, however, is Car Talk&#8217;s weekly diversion known as the Puzzler.  Each week, the brothers read a Puzzler (i.e. a brain teaser) to their listeners and request solutions.  The Puzzler&#8217;s solution is revealed the following week, and a new Puzzler is then presented; moreover, one of the correct listener submissions is chosen at random, and the winner receives a gift certificate for some Car Talk schwag.  While these puzzles are sometimes car-related, this is not a prerequisite, and indeed the puzzler I would now like to discuss makes no mention of cars.</p>
<p>Here&#8217;s the puzzle, with wording modified slightly from Car Talk&#8217;s <a href="http://www.cartalk.com/content/puzzlers/2011">website</a>: Suppose there are 20,000 lights in a row, all turned off.  One person comes through and pulls the cord on every light, turning each of them on.  A second person then comes through and pulls the cord on every second light. A third person then pulls the cord on every third light, and so on. After the 20,000th person has gone through the room, which lights are turned on?</p>
<p>This problem also goes by the name of the Locker Problem, with open and shut lockers substituting for on and off lights.  But no matter how you contextualize the problem, the solution is the same.  To get some idea of what the answer should be, let&#8217;s consider what happens just for the first few (say, 10) light bulbs.  Feel free to think about this problem on your own before continuing on!</p>
<p>After the first person walks through the room, all the light bulbs are on.  So, the first 10 light bulbs will look like this:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights1.jpg"><img class="aligncenter size-large wp-image-1613" title="lights1" src="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights1-1024x165.jpg" alt="" width="596" height="96" /></a>After every second cord is pulled, half the lights will be on, and half will be off:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights2.jpg"><img class="aligncenter size-large wp-image-1614" title="lights2" src="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights2-1024x165.jpg" alt="" width="596" height="96" /></a>Now here&#8217;s where the fun begins.  When every third cord is pulled, off lights will turn on, and on lights will turn off.  This means that the arrangement of the first ten lights will look like this:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights3.jpg"><img class="aligncenter size-large wp-image-1615" title="lights3" src="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights3-1024x165.jpg" alt="" width="596" height="96" /></a>And, when every fourth cord is pulled, we get the following picture:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights4.jpg"><img class="aligncenter size-large wp-image-1616" title="lights4" src="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights4-1024x165.jpg" alt="" width="596" height="96" /></a>You can probably fill in the rest.  Note that when every 6th, 7th, 8th, 9th, or 10th cord is pulled, only one light in first 10 switches, so most of the work is already done.  In the end, the string of the first 10 lights will look like this:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights9.jpg"><img class="aligncenter size-large wp-image-1617" title="lights9" src="http://www.mathgoespop.com/wp-content/uploads/2012/01/lights9-1024x165.jpg" alt="" width="596" height="96" /></a>Here we see that three of the first ten lights remain lit: the 1st, 4th, and 9th.  The astute reader will note that 1, 4, and 9 all share a common property; they are all perfect squares (1 = 1<sup>2</sup>, 4 = 2<sup>2</sup>, 9 = 3<sup>2</sup>).  The question to be asked, of course, is whether this pattern continues, and if it does, why?</p>
<p>To answer these questions we&#8217;ll need to think a bit more deeply about what&#8217;s going on.  First, when does a given light bulb in our string of 20,000 get its cord pulled?  Extrapolating from the first few cases, we see that if a person goes through the chain and pulls every <em>d</em>th cord, then the light bulbs with their cords pulled are precisely the ones whose numbers are multiples of <em>d</em>.  Therefore, the <em>n</em>th bulb&#8217;s cord is pulled once for every divisor of <em>n</em>.  More concretely, we see for example that the 12th light bulb will have its cord pulled <em></em>6 times: by the 1st, 2nd, 3rd, 4th, 6th, and 12th person, since 1, 2, 3, 4, 6, and 12 are precisely the divisors of 12.</p>
<p>What does this divisibility information tell us about the status of a given light bulb?  Since all the lights start in the off position, we see that a light will be off at the end if its cord is pulled an even number of times, and it will be on at the end if its cord is pulled an odd number of times.  In other words, the <em>n</em>th light will be on at the end of this process precisely when <em>n</em> has an odd number of divisors.</p>
<p>All we need to do now is convince ourselves that the numbers with an odd number of divisors are precisely the squares.  There are a couple of ways to do this.</p>
<p>Way 1: Pick your favorite whole number <em>n</em>.  For any divisor <em>d</em> of <em>n</em>, <em>n/d</em> is also a divisor (for example, if <em>n</em> = 30, the fact that 5 is a divisor immediately tells us that 30/5 = 6 is a divisor too).  In this way, we can naturally count up all the divisors of <em>n</em> in pairs.  Because of this, the only way we can have an odd number of divisors is if one of the pairs has the same number repeated twice, i.e. if for some divisor <em>d</em>, <em>d</em> and <em>n/d</em> are equal.  But if they are equal, this means that <em>n</em> = <em>d</em><sup>2</sup>, in other words, <em>n</em> is a square.</p>
<p>Way 2: By the <a href="http://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmetic">fundamental theorem of arithmetic</a>, Any positive whole number <em>n</em> &gt; 1 can be written in an essentially unique way as a product of prime numbers, i.e. for any <em>n</em> &gt; 1 we can write</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=n%20%3D%20p_%7B1%7D%5E%7Bk_%7B1%7D%7Dp_%7B2%7D%5E%7Bk_%7B2%7D%7D%5Cldots%20p_%7Br%7D%5E%7Bk_%7Br%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='n = p_{1}^{k_{1}}p_{2}^{k_{2}}\ldots p_{r}^{k_{r}}' title='n = p_{1}^{k_{1}}p_{2}^{k_{2}}\ldots p_{r}^{k_{r}}' class='latex' />,</p>
<p style="text-align: left;">where the numbers <img src='http://s.wordpress.com/latex.php?latex=p_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{i}' title='p_{i}' class='latex' /> are primes, and the exponents <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}' title='k_{i}' class='latex' /> are greater than zero (for example, <img src='http://s.wordpress.com/latex.php?latex=180%20%3D%202%5E%7B2%7D%20%5Ccdot%203%5E%7B2%7D%20%5Ccdot%205&#038;bg=T&#038;fg=000000&#038;s=0' alt='180 = 2^{2} \cdot 3^{2} \cdot 5' title='180 = 2^{2} \cdot 3^{2} \cdot 5' class='latex' />).  In particular, any divisor of <em>n</em> must be composed of the same primes as <em>n</em> itself, so that if <em>d</em> is a divisor, we can write</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=d%20%3D%20p_%7B1%7D%5E%7Bm_%7B1%7D%7Dp_%7B2%7D%5E%7Bm_%7B2%7D%7D%5Cldots%20p_%7Br%7D%5E%7Bm_%7Br%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='d = p_{1}^{m_{1}}p_{2}^{m_{2}}\ldots p_{r}^{m_{r}}' title='d = p_{1}^{m_{1}}p_{2}^{m_{2}}\ldots p_{r}^{m_{r}}' class='latex' />,</p>
<p style="text-align: left;">where each exponent <img src='http://s.wordpress.com/latex.php?latex=m_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='m_{i}' title='m_{i}' class='latex' /> is no larger than <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}' title='k_{i}' class='latex' /> (for example, 12 is a divisor of 180 but 24 isn&#8217;t, since 2 goes into 24 three times but into 180 only twice).</p>
<p style="text-align: left;">How many divisors are there? Well, <img src='http://s.wordpress.com/latex.php?latex=p_%7B1%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{1}' title='p_{1}' class='latex' /> could divide <em>d</em> as few as 0 times, or as many as <img src='http://s.wordpress.com/latex.php?latex=k_%7B1%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{1}' title='k_{1}' class='latex' /> times &#8211; we have <img src='http://s.wordpress.com/latex.php?latex=k_%7B1%7D%2B1&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{1}+1' title='k_{1}+1' class='latex' /> different ways to choose the exponent on <img src='http://s.wordpress.com/latex.php?latex=p_%7B1%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{1}' title='p_{1}' class='latex' />, corresponding to the numbers 0, 1, 2, &#8230;, up to <img src='http://s.wordpress.com/latex.php?latex=k_%7B1%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{1}' title='k_{1}' class='latex' />.  Similarly, we have <img src='http://s.wordpress.com/latex.php?latex=k_%7B2%7D%20%2B%201&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{2} + 1' title='k_{2} + 1' class='latex' /> different ways to choose the exponent on <img src='http://s.wordpress.com/latex.php?latex=p_%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{2}' title='p_{2}' class='latex' />, and so on for each prime, so that there are <img src='http://s.wordpress.com/latex.php?latex=k_%7Br%7D%20%2B1&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{r} +1' title='k_{r} +1' class='latex' /> different ways to choose the exponent on <img src='http://s.wordpress.com/latex.php?latex=p_%7Br%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{r}' title='p_{r}' class='latex' />.  By the <a href="http://en.wikipedia.org/wiki/Rule_of_product">fundamental counting principle</a>, this means that the number of divisors of <em>n</em> is equal to</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%28k_%7B1%7D%2B1%29%28k_%7B2%7D%2B1%29%5Cldots%20%28k_%7Br%7D%2B1%29.&#038;bg=T&#038;fg=000000&#038;s=0' alt='(k_{1}+1)(k_{2}+1)\ldots (k_{r}+1).' title='(k_{1}+1)(k_{2}+1)\ldots (k_{r}+1).' class='latex' /></p>
<p style="text-align: left;">Remember that our light will be on only if the number of divisors is odd, in other words, only if the above product is odd.  Notice that if any term in the above product is even, the product itself will be even &#8211; so in order for the product to be odd, each term in the product must be odd.  Since each <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D%2B1&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}+1' title='k_{i}+1' class='latex' /> must be odd, this means that each exponent <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}' title='k_{i}' class='latex' /> must be even.  But if each <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}' title='k_{i}' class='latex' /> is even, then <img src='http://s.wordpress.com/latex.php?latex=k_%7Bi%7D%2F2&#038;bg=T&#038;fg=000000&#038;s=0' alt='k_{i}/2' title='k_{i}/2' class='latex' /> is always a whole number, so</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=p_%7B1%7D%5E%7Bk_%7B1%7D%2F2%7Dp_%7B2%7D%5E%7Bk_%7B2%7D%2F2%7D%5Cldots%20p_%7Br%7D%5E%7Bk_%7Br%7D%2F2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='p_{1}^{k_{1}/2}p_{2}^{k_{2}/2}\ldots p_{r}^{k_{r}/2}' title='p_{1}^{k_{1}/2}p_{2}^{k_{2}/2}\ldots p_{r}^{k_{r}/2}' class='latex' /></p>
<p style="text-align: left;">is a whole number whose square is equal to <em>n</em>.  Hence, once again we conclude <em>n</em> is a square.</p>
<p style="text-align: left;">There are plenty of variants to this problem worth pondering &#8211; for example, what if people only come in and pull every <em>d</em>th cord only for <em>d</em> prime?  Or, what if instead of the 2nd person pulling every 2nd cord, and the third person pulling every 3rd cord, the second person pulls every 2nd cord twice, the third person pulls every 3rd cord three times, and so on?  No doubt you can come up with some variants on your own as well.</p>
<p style="text-align: left;">If you prefer the locker version, here&#8217;s an interactive <a href="http://connectedmath.msu.edu/CD/Grade6/Locker/index.html">site</a> where you can watch with satisfaction as lockers open and close.  No matter what model you use, though, this is a cute little problem on integers and their divisibility, and the result can be surprising for first time viewers.  So kudos to Car Talk for discussing this problem on a national stage! (Kudos also to Tom for drawing my attention to this particular episode of the program.)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2012/01/cartalk.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Mathematics Community</title>
		<link>http://www.mathgoespop.com/2011/10/math-with-community.html</link>
		<comments>http://www.mathgoespop.com/2011/10/math-with-community.html#comments</comments>
		<pubDate>Sun, 16 Oct 2011 17:53:39 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[Math on TV]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[kickpuncher]]></category>
		<category><![CDATA[stable marriage problem]]></category>
		<category><![CDATA[stable roommate problem]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1477</guid>
		<description><![CDATA[<p>Whether knowingly or not, NBC Thursday night comedies have made occasional dalliances with mathematics.  For example, you can see here for a mathematical discussion inspired by The Office, and here for one inspired by Parks and Recreation.</p>
<p>Today I would like to add to this esteemed list the show Community, now in its third season on NBC&#8217;s <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/10/math-with-community.html">A Mathematics Community</a></span>]]></description>
			<content:encoded><![CDATA[<p>Whether knowingly or not, NBC Thursday night comedies have made occasional dalliances with mathematics.  For example, you can see <a href="http://www.mathgoespop.com/2011/05/dunder-math-lin.html">here</a> for a mathematical discussion inspired by <a href="http://en.wikipedia.org/wiki/The_Office_%28U.S._TV_series%29">The Office</a>, and <a href="http://www.mathgoespop.com/2011/05/parks-and-recreational-mathematics.html">here</a> for one inspired by <a href="http://en.wikipedia.org/wiki/Parks_and_Recreation">Parks and Recreation</a>.</p>
<p>Today I would like to add to this esteemed list the show <a href="http://en.wikipedia.org/wiki/Community_%28TV_series%29">Community</a>, now in its third season on NBC&#8217;s Thursday block.  As the title indicates, the show centers around a group of friends who are students at the fictional Greendale Community College (how this formula will pan out if the show lasts more than four seasons is uncertain).</p>
<p>In a recent episode (titled Competitive Ecology), the gang divides themselves up into pairs of lab partners for Biology class, but they quickly discover their pairings are less than ideal &#8211; especially since, with an odd number in the central crew, one member must pair up with someone who is not in their clique.  Their first assignment is to build a terrarium, and with the deadline quickly approaching, they need to find away to shuffle around the pairings and get their assignment done on time.</p>
<p style="text-align: center;"><object width="512" height="288"><param name="movie" value="http://www.hulu.com/embed/QMZUcjcT09fDIny-xRQsGA" /><param name="allowFullScreen" value="true" /><embed type="application/x-shockwave-flash" width="512" height="288" src="http://www.hulu.com/embed/QMZUcjcT09fDIny-xRQsGA" allowfullscreen="true"></embed></object></p>
<p>Once they&#8217;ve decided to change partners, a debate ensues about the fairest way to switch up their initial pairings.  Finally, frequent ringleader Jeff Winger (played by <a href="http://en.wikipedia.org/wiki/Joel_McHale">Joel McHale</a>) proposes the following solution (note that Abed is another member of the central study group, while Todd is the outsider who found a turtle for his terrarium earlier in the episode):</p>
<blockquote><p>Ok, let&#8217;s make this simple, and do it like student housing.  Everyone  write down their lab partner preferences from one to eight.  Abed,  you&#8217;re a computer, you figure out a way to put us in our optimal  pairings.  And before you all go putting Todd down last, don&#8217;t forget,  he comes with a turtle &#8211; you&#8217;re halfway done.  How does that sound?</p></blockquote>
<p>Indeed, Jeff &#8211; the problem is more closely related to student housing than you imagine.  Before spoiling the math connection, though, allow me to show you the following dialogue, which takes place once Abed has determined the new pairings.</p>
<blockquote><p>Abed: Umm, all right.  Yep.  According to my system, Annie&#8217;s gonna be  with Shirley, Pierce is with me, Troy&#8217;s with Britta, and Jeff is with  Todd.</p>
<p>Annie: Okay, let&#8217;s get to work!</p>
<p>Jeff: Uhh, wait.  Umm, how did I end up with Todd?  No offense, but he wasn&#8217;t exactly at the top of my list.</p>
<p>Todd: None taken.</p>
<p>Abed: It&#8217;s what the algorithm dictated.</p>
<p>Jeff: And we&#8217;re just supposed to trust your algorithm?</p>
<p>Abed: Are you questioning my algorithm?</p>
<p>Jeff: Not necessarily &#8211; is your algorithm above questioning?</p>
<p>Abed: Not necessarily.</p>
<p>Jeff: Will you just tell us how you chose?</p>
<p>Abed: I used the ballots to rank everyone by popularity, and I put  the most popular with the least popular.  I figured it would maximize  each partnership&#8217;s audience appeal.</p>
<p>Jeff: Oh, I see. So I was number one, and he was obviously number eight, no offense Todd.</p>
<p>Abed: You and Todd were four and five.</p>
<p>Jeff: I was <em>four</em>?</p>
<p>Abed: Todd was four.</p>
<p>Jeff: I was <em>five</em>?</p></blockquote>
<p>More significant than the dent to Jeff&#8217;s ego, however, should be the dent to Abed&#8217;s for his naïve approach to solving this problem.  Ironically, though he claims that Abed is a computer, it is Jeff&#8217;s remark that has the most prescience.  For indeed, this problem is well known as the <a href="http://en.wikipedia.org/wiki/Stable_roommates_problem">stable roommates problem</a>, and has already been studied quite a bit.</p>
<p>More important than &#8220;audience appeal&#8221; from a mathematical standpoint is the stability of the final pairing.  Roughly speaking, a collection of pairings is said to be <em>stable</em> if no two people from two separate pairs would rather be paired up with each other.  For example, in Abed&#8217;s final pairing, if Jeff prefers Annie to Todd and Annie prefers Jeff to Shirley, then Abed&#8217;s collection isn&#8217;t stable, because Annie and Jeff would both be happier if they swapped partners.</p>
<p>An algorithm to solve this problem was discovered in 1985.  The algorithm is explained in the Wikipedia link above, but let&#8217;s see an example of it in action using the Community cast as a starting point.  To keep things simple, let me suppose there are only four people instead of eight: say, Annie, Jeff, Troy, and Britta.</p>
<p>First, note that a stable solution to this problem is not always possible.  For example, suppose everyone grows weary of Jeff&#8217;s hubris, and so he ranks last in everyone&#8217;s list of preferences.  Then we may be given the following scenario:</p>

<table id="wp-table-reloaded-id-5-no-1" class="wp-table-reloaded wp-table-reloaded-id-5">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Name</th><th class="column-2">First Choice</th><th class="column-3">Second Choice</th><th class="column-4">Third Choice</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Annie</td><td class="column-2">Britta</td><td class="column-3">Troy</td><td class="column-4">Jeff</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Britta</td><td class="column-2">Troy</td><td class="column-3">Annie</td><td class="column-4">Jeff</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Jeff</td><td class="column-2">Troy</td><td class="column-3">Annie</td><td class="column-4">Britta</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Troy</td><td class="column-2">Annie</td><td class="column-3">Britta</td><td class="column-4">Jeff</td>
	</tr>
</tbody>
</table>

<p>In this scenario, everyone aside from Jeff ranks Jeff last, and we also have a cycle (Annie is Troy&#8217;s first choice, Troy is Britta&#8217;s first choice, and Britta is Annie&#8217;s first choice).  In this case, there can be no stable solution.  For example, suppose Troy and Jeff are paired up, and Annie and Britta are paired up.  In this case, Troy would rather be with Britta, and vice versa.  Similarly, if Annie is stuck with Jeff, she would rather be with Troy, and vice versa, and if Britta is paired with Jeff, she would Annie, and vice versa.</p>
<p>Sometimes, however, solutions will exist.  Consider, for example, the following list of preferences:</p>

<table id="wp-table-reloaded-id-6-no-1" class="wp-table-reloaded wp-table-reloaded-id-6">
<thead>
	<tr class="row-1 odd">
		<th class="column-1">Name</th><th class="column-2">First Choice</th><th class="column-3">Second Choice</th><th class="column-4">Third Choice</th>
	</tr>
</thead>
<tbody>
	<tr class="row-2 even">
		<td class="column-1">Annie</td><td class="column-2">Britta</td><td class="column-3">Jeff</td><td class="column-4">Troy</td>
	</tr>
	<tr class="row-3 odd">
		<td class="column-1">Britta</td><td class="column-2">Troy</td><td class="column-3">Jeff</td><td class="column-4">Annie</td>
	</tr>
	<tr class="row-4 even">
		<td class="column-1">Jeff</td><td class="column-2">Annie</td><td class="column-3">Troy</td><td class="column-4">Britta</td>
	</tr>
	<tr class="row-5 odd">
		<td class="column-1">Troy</td><td class="column-2">Annie</td><td class="column-3">Britta</td><td class="column-4">Jeff</td>
	</tr>
</tbody>
</table>

<p>In this case, a stable solution is found in the following way: first, we go in order and list everyone&#8217;s first choice (this is the proposal round).  In the event that someone receives a second proposal, that person will reject the person who is lower on their preference list, and the rejected person will then ask the next person on their list.</p>
<p>Given the list above, here&#8217;s how things will go down: Annie will propose to Britta, Britta will propose to Troy, Jeff will propose to Annie, and Troy will propose to Annie.  Since Jeff is higher on Annie&#8217;s list than Troy, Annie will reject Troy, at which point Troy will propose to Britta.  Britta will then reject Annie&#8217;s proposal, and Annie will propose to Jeff.  This gives the pairing of Jeff with Annie and Britta with Troy, and this is stable.</p>
<p>For larger groups of people, the algorithm may need to go into a second stage after the proposal round.  Try a ranking with all eight zany characters and see what happens!</p>
<p style="text-align: center;"><object width="512" height="288"><param name="movie" value="http://www.hulu.com/embed/M1QOZh7gDS2vLz3HGyRD4w" /><param name="allowFullScreen" value="true" /><embed type="application/x-shockwave-flash" width="512" height="288" src="http://www.hulu.com/embed/M1QOZh7gDS2vLz3HGyRD4w" allowfullscreen="true"></embed></object></p>
<p>Note that this problem is closely related to the<a href="http://en.wikipedia.org/wiki/Stable_marriage_problem"> stable marriage problem</a>, with one key difference &#8211; in the stable marriage problem, the group is always cut in half along gender lines (males and females), so each person only provides a ranking of the members of the opposite sex.  Interestingly, this problem always has a stable solution, and its application goes beyond sorting people into couples &#8211; it is used, for instance, in the pairing of medical students with hospitals for residency.</p>
<p>So, sorry Abed, but you are not a computer after all.  But perhaps after reading this, you will be one step closer to the cyborg in Kickpuncher who you idolize so dearly.</p>
<div id="attachment_1500" class="wp-caption aligncenter" style="width: 308px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/10/Picture-6.png"><img class="size-full wp-image-1500" title="Kickpuncher" src="http://www.mathgoespop.com/wp-content/uploads/2011/10/Picture-6.png" alt="" width="298" height="457" /></a><p class="wp-caption-text">His cyberpunches have the power of kicks!</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/10/math-with-community.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wedding Mathematics, Part 3</title>
		<link>http://www.mathgoespop.com/2011/09/wedding-mathematics-part-3.html</link>
		<comments>http://www.mathgoespop.com/2011/09/wedding-mathematics-part-3.html#comments</comments>
		<pubDate>Tue, 20 Sep 2011 02:50:09 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Et cetera]]></category>
		<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[e]]></category>
		<category><![CDATA[fibonacci sequence]]></category>
		<category><![CDATA[golden ratio]]></category>
		<category><![CDATA[pi]]></category>
		<category><![CDATA[plastic constant]]></category>
		<category><![CDATA[riemann hypothesis]]></category>
		<category><![CDATA[weddings]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1391</guid>
		<description><![CDATA[<p>Today I would like to wrap up my series on mathematics and weddings (a series begun here and continued here) with a little advice for soon-to-be brides and grooms who are looking to integrate some math into their celebrations.  If this describes you, then congratulations &#8211; not only on your upcoming nuptials, but also on the <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/09/wedding-mathematics-part-3.html">Wedding Mathematics, Part 3</a></span>]]></description>
			<content:encoded><![CDATA[<p>Today I would like to wrap up my series on mathematics and weddings (a series begun <a href="http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html">here</a> and continued <a href="http://www.mathgoespop.com/2011/09/menageproblem.html">here</a>) with a little advice for soon-to-be brides and grooms who are looking to integrate some math into their celebrations.  If this describes you, then congratulations &#8211; not only on your upcoming nuptials, but also on the classy way you are looking to celebrate them.</p>
<p>For our own wedding, my bride and I decided it would be natural to incorporate some mathematics into the table numbers.  There is some freedom in how one decides to do this.  For example, we initially toyed with the idea of using numbers for the tables that were somehow significant to us and our relationship, but found it too difficult to come up with examples meeting this criterion.  If one wants intrinsically interesting numbers, there are many examples among the whole numbers (I was particularly fond of using the <a href="http://en.wikipedia.org/wiki/1729_%28number%29">smallest whole number expressible as the sum of cubes in two different ways</a>).  In the end, though, we decided to expand the realm of p0ssibilities beyond the range of whole numbers.  This turned out to be a good decision, both aesthetically and educationally.</p>
<div id="attachment_1392" class="wp-caption aligncenter" style="width: 614px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/09/307071_10150266178495592_518300591_7799467_6534693_n.jpg"><img class="size-full wp-image-1392" title="etable" src="http://www.mathgoespop.com/wp-content/uploads/2011/09/307071_10150266178495592_518300591_7799467_6534693_n.jpg" alt="" width="604" height="452" /></a><p class="wp-caption-text">Table number e. Hat tip to Caroline for the shot.</p></div>
<p>If you are looking for a way to incorporate some math into your celebration, the table numbers are certainly one option.  At each of our tables we had a small placard, with the number on one side and a brief description of the number (and some table exercises!) on the reverse.  I tried to have sympathy for our audience, and give descriptions that a general audience would be able to understand, though I gave myself more flexibility with a table occupied by other math students.  For sake of completeness, here are all the numbers we used, along with their descriptions (see if you can tell which table had the math students!).  In no particular order:</p>
<p><strong>1. <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Pi">here</a> for more).</strong></p>
<p>The ratio of a circle&#8217;s circumference to its diameter, <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> is perhaps the most famous irrational number. Historically, <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> has also been known as Archimedes&#8217; constant, and Archimedes himself proved that <img src='http://s.wordpress.com/latex.php?latex=3%5Cfrac%7B10%7D%7B71%7D%3C%5Cpi%3C3%5Cfrac%7B1%7D%7B7%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='3\frac{10}{71}&lt;\pi&lt;3\frac{1}{7}' title='3\frac{10}{71}&lt;\pi&lt;3\frac{1}{7}' class='latex' />.</p>
<p style="text-align: left;">More than one trillion digits of the decimal expansion of <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> have been computed, and folks with nothing better to do than recite those digits come together each <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> day (March 14th, naturally) to see who has memorized the longest string of numbers in the decimal expansion. If you&#8217;re looking for more interesting properties of <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' />, though, here are a few to mull over:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7B%5Cpi%7D%7B4%7D%20%3D%201%20-%20%5Cfrac%7B1%7D%7B3%7D%20%2B%20%5Cfrac%7B1%7D%7B5%7D%20-%20%5Cfrac%7B1%7D%7B7%7D%20%2B%20%5Cldots%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='\frac{\pi}{4} = 1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \ldots,' title='\frac{\pi}{4} = 1 - \frac{1}{3} + \frac{1}{5} - \frac{1}{7} + \ldots,' class='latex' /></p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7B2%7D%7B%5Cpi%7D%20%3D%20%5Cfrac%7B%5Csqrt%7B2%7D%7D%7B2%7D%5Ccdot%20%5Cfrac%7B%5Csqrt%7B2%2B%5Csqrt%7B2%7D%7D%7D%7B2%7D%5Ccdot%20%5Cfrac%7B%5Csqrt%7B2%2B%5Csqrt%7B2%2B%5Csqrt%7B2%7D%7D%7D%7D%7B2%7D%20%5Cldots%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='\frac{2}{\pi} = \frac{\sqrt{2}}{2}\cdot \frac{\sqrt{2+\sqrt{2}}}{2}\cdot \frac{\sqrt{2+\sqrt{2+\sqrt{2}}}}{2} \ldots,' title='\frac{2}{\pi} = \frac{\sqrt{2}}{2}\cdot \frac{\sqrt{2+\sqrt{2}}}{2}\cdot \frac{\sqrt{2+\sqrt{2+\sqrt{2}}}}{2} \ldots,' class='latex' /></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7B%5Cpi%7D%7B2%7D%20%3D%20%5Cfrac%7B2%7D%7B1%7D%5Ccdot%20%5Cfrac%7B2%7D%7B3%7D%5Ccdot%20%5Cfrac%7B4%7D%7B3%7D%5Ccdot%20%5Cfrac%7B4%7D%7B5%7D%5Ccdot%20%5Cfrac%7B6%7D%7B5%7D%5Ccdot%20%5Cfrac%7B6%7D%7B7%7D%5Cldots%20.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\frac{\pi}{2} = \frac{2}{1}\cdot \frac{2}{3}\cdot \frac{4}{3}\cdot \frac{4}{5}\cdot \frac{6}{5}\cdot \frac{6}{7}\ldots .' title='\frac{\pi}{2} = \frac{2}{1}\cdot \frac{2}{3}\cdot \frac{4}{3}\cdot \frac{4}{5}\cdot \frac{6}{5}\cdot \frac{6}{7}\ldots .' class='latex' /></p>
<p>Table exercises!</p>
<p>1. Use geometry to show that 2\sqrt{2}&lt;\pi&lt;4. These bounds are not as good as those of Archimedes, but they are easier to derive.</p>
<p>2. (Harder!) Explain why \pi is irrational, i.e. why it cannot be written as a fraction p/q where p and q are integers.</p>
<p><strong>2. <em>e</em> (see <a href="http://en.wikipedia.org/wiki/E_%28mathematical_constant%29">here</a> for more).</strong></p>
<p><em>e</em>, a.k.a. Euler&#8217;s number, a.k.a. Napier&#8217;s Constant, is an irrational number of fundamental importance. While it lacks the general public awareness of a number like <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' />, I assure you it is no less charming. Typically defined as the limit</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=e%3A%3D%5Clim_%7Bn%5Crightarrow%5Cinfty%7D%5Cleft%281%2B%5Cfrac%7B1%7D%7Bn%7D%5Cright%29%5E%7Bn%7D%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='e:=\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n},' title='e:=\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n},' class='latex' /></p>
<p><em>e</em> enjoys many other identities, including</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=e%3D1%2B%5Cfrac%7B1%7D%7B1%21%7D%2B%5Cfrac%7B1%7D%7B2%21%7D%2B%5Cfrac%7B1%7D%7B3%21%7D%2B%5Cfrac%7B1%7D%7B4%21%7D%2B%5Cldots%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='e=1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+\frac{1}{4!}+\ldots,' title='e=1+\frac{1}{1!}+\frac{1}{2!}+\frac{1}{3!}+\frac{1}{4!}+\ldots,' class='latex' /></p>
<p>and</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=e%3D%5Clim_%7Bn%5Crightarrow%5Cinfty%7D%5Cfrac%7Bn%7D%7B%5Csqrt%5Bn%5D%7Bn%21%7D%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='e=\lim_{n\rightarrow\infty}\frac{n}{\sqrt[n]{n!}}.' title='e=\lim_{n\rightarrow\infty}\frac{n}{\sqrt[n]{n!}}.' class='latex' /></p>
<p><em>e</em> also determines the base of the exponential function <img src='http://s.wordpress.com/latex.php?latex=e%5E%7Bx%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='e^{x}' title='e^{x}' class='latex' />, unique among all exponential functions in the study of calculus because it is equal to its own derivative.</p>
<p>Table exercises!</p>
<p>1. Use one of the identities above to verify that <em>e</em> &lt; 3.</p>
<p>2. Use one of the identities above to verify that <em>e</em> is irrational, i.e. that it cannot be written as a ratio <em>p</em>/<em>q</em> where <em>p</em> and <em>q</em> are integers.</p>
<p>3. Suppose each of you has brought a hat to this wedding. Everyone leaves his or her hat inside, and when a person leaves, he can&#8217;t be bothered to search for the hat he brought, and simply takes one from the hat pile at random. Show that the probability nobody ends up with the hat they came in with tends to 1/<em>e</em> as the number of people increases.</p>
<p><strong>3. <img src='http://s.wordpress.com/latex.php?latex=%5Czeta%283%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(3)' title='\zeta(3)' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Ap%C3%A9ry%27s_constant">here</a> for more).</strong></p>
<p>Take all the perfect cubes (<img src='http://s.wordpress.com/latex.php?latex=1%5E%7B3%7D%3D1%2C%202%5E%7B3%7D%3D8%2C%203%5E%7B3%7D%3D27&#038;bg=T&#038;fg=000000&#038;s=0' alt='1^{3}=1, 2^{3}=8, 3^{3}=27' title='1^{3}=1, 2^{3}=8, 3^{3}=27' class='latex' />, and so on), take the reciprocals of all those perfect cubes, and add them all together. You will end up with a number that is sometimes called Apéry&#8217;s constant, and is written</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Czeta%283%29%20%3D%201%2B%5Cfrac%7B1%7D%7B2%5E%7B3%7D%7D%2B%5Cfrac%7B1%7D%7B3%5E%7B3%7D%7D%2B%5Cfrac%7B1%7D%7B4%5E%7B3%7D%7D%2B%5Cldots%20%5Capprox%201.202%5Cldots%20.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(3) = 1+\frac{1}{2^{3}}+\frac{1}{3^{3}}+\frac{1}{4^{3}}+\ldots \approx 1.202\ldots .' title='\zeta(3) = 1+\frac{1}{2^{3}}+\frac{1}{3^{3}}+\frac{1}{4^{3}}+\ldots \approx 1.202\ldots .' class='latex' /></p>
<p>The constant is named in honor of Roger Apéry, who proved in 1978 that this number is irrational. Intuitively, one can interpret <img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B%5Czeta%283%29%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\frac{1}{\zeta(3)}' title='\frac{1}{\zeta(3)}' class='latex' /> as the probability that three randomly chosen whole numbers will have no prime factors in common.</p>
<p>One can consider more general numbers as well. For example, for any whole number <em>k</em> bigger than 1, the sum</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Czeta%28k%29%3D1%2B%5Cfrac%7B1%7D%7B2%5E%7Bk%7D%7D%2B%5Cfrac%7B1%7D%7B3%5E%7Bk%7D%7D%2B%5Cfrac%7B1%7D%7B4%5E%7Bk%7D%7D%2B%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(k)=1+\frac{1}{2^{k}}+\frac{1}{3^{k}}+\frac{1}{4^{k}}+\ldots' title='\zeta(k)=1+\frac{1}{2^{k}}+\frac{1}{3^{k}}+\frac{1}{4^{k}}+\ldots' class='latex' /></p>
<p>will yield some finite value. When <em>k</em> is even, one has nice formulas for the values, for instance <img src='http://s.wordpress.com/latex.php?latex=%5Czeta%282%29%3D%5Cfrac%7B%5Cpi%5E%7B2%7D%7D%7B6%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(2)=\frac{\pi^{2}}{6}' title='\zeta(2)=\frac{\pi^{2}}{6}' class='latex' />, <img src='http://s.wordpress.com/latex.php?latex=%5Czeta%284%29%3D%5Cfrac%7B%5Cpi%5E%7B4%7D%7D%7B90%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(4)=\frac{\pi^{4}}{90}' title='\zeta(4)=\frac{\pi^{4}}{90}' class='latex' />.</p>
<p>In fact, it is possible to let <em>k</em> take on quite a large range of values. The function one gets is called the Riemann zeta function, and lies at the center of one of the most famous unsolved problems in mathematics.</p>
<p>Table exercises!</p>
<p>1. Show that <img src='http://s.wordpress.com/latex.php?latex=%5Czeta%281%29%3D%5Cinfty&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(1)=\infty' title='\zeta(1)=\infty' class='latex' />.</p>
<p>2. Given that <img src='http://s.wordpress.com/latex.php?latex=%5Czeta%282%29%3D%5Cfrac%7B%5Cpi%5E%7B2%7D%7D%7B6%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\zeta(2)=\frac{\pi^{2}}{6}' title='\zeta(2)=\frac{\pi^{2}}{6}' class='latex' />, show that <img src='http://s.wordpress.com/latex.php?latex=1%2B%5Cfrac%7B1%7D%7B3%5E%7B2%7D%7D%2B%5Cfrac%7B1%7D%7B5%5E%7B2%7D%7D%2B%5Cfrac%7B1%7D%7B7%5E%7B2%7D%7D%2B%5Cldots%3D%5Cfrac%7B%5Cpi%5E%7B2%7D%7D%7B8%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='1+\frac{1}{3^{2}}+\frac{1}{5^{2}}+\frac{1}{7^{2}}+\ldots=\frac{\pi^{2}}{8}' title='1+\frac{1}{3^{2}}+\frac{1}{5^{2}}+\frac{1}{7^{2}}+\ldots=\frac{\pi^{2}}{8}' class='latex' />.</p>
<p><strong>4. <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma' title='\gamma' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant">here</a> for more).</strong></p>
<img src='http://s.wordpress.com/latex.php?latex=%5Cgamma&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma' title='\gamma' class='latex' />, a.k.a. the Euler-Mascheroni constant (not to be confused with Euler&#8217;s number <em>e</em>), is perhaps best introduced geometrically. Consider the following figure:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2011/09/Picture-1.png"><img class="aligncenter size-full wp-image-1402" title="gammapic" src="http://www.mathgoespop.com/wp-content/uploads/2011/09/Picture-1.png" alt="" width="600" height="398" /></a>The black portion of the area pictured above is found by drawing rectangles between two integers <em>n</em> and <em>n</em> + 1 with height 1/<em>n</em> (the rectangle between 1 and 2 has height 1, the rectangle between 2 and 3 has height 1/2, and so on), and subtracting the area under the graph of the function <em>y</em> = 1/<em>x</em>.  The total black area, if this picture were to be extented out to infinity, would represent the number <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma' title='\gamma' class='latex' />.</p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cgamma&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma' title='\gamma' class='latex' /> can be approximated by its decimal expansion, <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma%5Capprox0.5772%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma\approx0.5772\ldots' title='\gamma\approx0.5772\ldots' class='latex' />, and while this number comes up quite naturally in number theory and mathematical statistics, surprisingly little is known about it. For example, it is unknown whether or not <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma' title='\gamma' class='latex' /> is a rational number (unlike constants such as <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> or <em>e</em>, which are known to be irrational).</p>
<p>Table exercises!</p>
<p>1. Using geometry and the figure above, show that <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma%3E%5Cfrac%7B1%7D%7B4%7D%2B%5Cfrac%7B1%7D%7B12%7D%2B%5Cfrac%7B1%7D%7B24%7D%2B%5Cfrac%7B1%7D%7B40%7D%2B%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma&gt;\frac{1}{4}+\frac{1}{12}+\frac{1}{24}+\frac{1}{40}+\ldots' title='\gamma&gt;\frac{1}{4}+\frac{1}{12}+\frac{1}{24}+\frac{1}{40}+\ldots' class='latex' />.</p>
<p>2. Show that the sum on the right hand side of the inequality in the first exercise equals <img src='http://s.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\frac{1}{2}' title='\frac{1}{2}' class='latex' />, so that <img src='http://s.wordpress.com/latex.php?latex=%5Cgamma%3E%5Cfrac%7B1%7D%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\gamma&gt;\frac{1}{2}' title='\gamma&gt;\frac{1}{2}' class='latex' />.</p>
<p><strong>5. <img src='http://s.wordpress.com/latex.php?latex=%5Cinfty&#038;bg=T&#038;fg=000000&#038;s=0' alt='\infty' title='\infty' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Infinity">here</a> for more).</strong></p>
<p><img src='http://s.wordpress.com/latex.php?latex=%5Cinfty&#038;bg=T&#038;fg=000000&#038;s=0' alt='\infty' title='\infty' class='latex' /> is a concept of central importance in mathematics, and ergo, a concept of central importance in all things. While the figure-eight symbol for infinity is known and loved by all, it was not introduced until the year 1655, though many ancient cultures grappled with the idea of the infinite.</p>
<p>Though <img src='http://s.wordpress.com/latex.php?latex=%5Cinfty&#038;bg=T&#038;fg=000000&#038;s=0' alt='\infty' title='\infty' class='latex' /> may seem like a single idea, great minds have shown that not all infinities are created equal. For example, the mathematician Georg Cantor showed that even though there are infinitely many whole numbers, and there are infinitely many real numbers, there are (in a sense that can be made rigorous) infinitely many more real numbers than counting numbers.</p>
<p>On a related note, the love Matt and Meg feel for you all for standing with them on this day is undoubtedly infinite. How this compares to their love for one another, however, is a problem that has yet to be investigated.</p>
<p>Table exercises!</p>
<p>1. Show that there are infinitely many prime numbers.</p>
<p>2. How does the number of even integers compare to the number of integers? Are there more of one type of number?</p>
<p>3. Suppose a set is finite with <em>N</em> elements. Show that the set of subsets of the original set is finite with <img src='http://s.wordpress.com/latex.php?latex=2%5E%7BN%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='2^{N}' title='2^{N}' class='latex' /> elements.</p>
<p><strong>6. <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Golden_ratio">here</a> for more).</strong></p>
<p>Suppose two line segments have length <em>a</em> and <em>b</em>, with <em>a</em> larger than <em>b</em>. If the ratio of <em>a</em> to <em>b</em> is the same as the ratio of <em>a</em> + <em>b</em> to <em>b</em>, this ratio is called the golden ratio, and is written <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' />. In other words,</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi%3D%5Cfrac%7Ba%7D%7Bb%7D%20%3D%20%5Cfrac%7Ba%2Bb%7D%7Ba%7D%20%3D%201%20%2B%20%5Cfrac%7B1%7D%7B%5Cvarphi%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi=\frac{a}{b} = \frac{a+b}{a} = 1 + \frac{1}{\varphi}' title='\varphi=\frac{a}{b} = \frac{a+b}{a} = 1 + \frac{1}{\varphi}' class='latex' />.</p>
<p>This, in turn, implies that <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi%5E%7B2%7D-%5Cvarphi-1%3D0&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi^{2}-\varphi-1=0' title='\varphi^{2}-\varphi-1=0' class='latex' />, or (by the quadratic formula)</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi%3D%5Cfrac%7B1%2B%5Csqrt%7B5%7D%7D%7B2%7D%5Capprox1.618%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi=\frac{1+\sqrt{5}}{2}\approx1.618\ldots' title='\varphi=\frac{1+\sqrt{5}}{2}\approx1.618\ldots' class='latex' />.</p>
<p style="text-align: left;">The golden ratio has a rich history, both mathematically and artistically. It is also closely related to the Fibonacci sequence, the sequence of numbers whose first two terms are 0 and 1, and where all subsequent terms are found by adding the previous two terms. In other words, the sequence begins <img src='http://s.wordpress.com/latex.php?latex=0%2C1%2C1%2C2%2C3%2C5%2C8%2C13%2C%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='0,1,1,2,3,5,8,13,\ldots' title='0,1,1,2,3,5,8,13,\ldots' class='latex' />. If we let <img src='http://s.wordpress.com/latex.php?latex=F_%7Bn%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='F_{n}' title='F_{n}' class='latex' /> denote the <img src='http://s.wordpress.com/latex.php?latex=n%5E%7Bth%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='n^{th}' title='n^{th}' class='latex' /> Fibonacci number (so <img src='http://s.wordpress.com/latex.php?latex=F_%7B0%7D%3D0%2C%20F_%7B7%7D%3D13&#038;bg=T&#038;fg=000000&#038;s=0' alt='F_{0}=0, F_{7}=13' title='F_{0}=0, F_{7}=13' class='latex' />, and so on), then</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi%3D%5Clim_%7Bn%5Crightarrow%5Cinfty%7D%5Cfrac%7BF_%7Bn%2B1%7D%7D%7BF_%7Bn%7D%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi=\lim_{n\rightarrow\infty}\frac{F_{n+1}}{F_{n}}.' title='\varphi=\lim_{n\rightarrow\infty}\frac{F_{n+1}}{F_{n}}.' class='latex' />
<p style="text-align: left;">Table exercises!</p>
<p style="text-align: left;">1. Show why the above limit formula for <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> is true.</p>
<p style="text-align: left;">2. Show that <img src='http://s.wordpress.com/latex.php?latex=F_%7Bn%7D%3D%5Cfrac%7B%5Cvarphi%5E%7Bn%7D-%281-%5Cvarphi%29%5E%7Bn%7D%7D%7B%5Csqrt%7B5%7D%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='F_{n}=\frac{\varphi^{n}-(1-\varphi)^{n}}{\sqrt{5}}' title='F_{n}=\frac{\varphi^{n}-(1-\varphi)^{n}}{\sqrt{5}}' class='latex' />.</p>
<p style="text-align: left;">3. Show that for any <em>n</em>, <img src='http://s.wordpress.com/latex.php?latex=F_%7B0%7D%2BF_%7B1%7D%2BF_%7B2%7D%2B%5Cldots%2BF_%7Bn%7D%3DF_%7Bn%2B2%7D-1&#038;bg=T&#038;fg=000000&#038;s=0' alt='F_{0}+F_{1}+F_{2}+\ldots+F_{n}=F_{n+2}-1' title='F_{0}+F_{1}+F_{2}+\ldots+F_{n}=F_{n+2}-1' class='latex' />.</p>
<p style="text-align: left;"><strong>7. <img src='http://s.wordpress.com/latex.php?latex=%5CLambda&#038;bg=T&#038;fg=000000&#038;s=0' alt='\Lambda' title='\Lambda' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/De_Bruijn%E2%80%93Newman_constant">here</a> for more).</strong></p>
<p style="text-align: left;">The de Bruijn-Newman constant, the value of which is currently unknown, is intimately connected to the Riemann Hypothesis. There exists a class of functions <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t}(x)' title='H_{t}(x)' class='latex' />, one for each real number <em>t</em>. <img src='http://s.wordpress.com/latex.php?latex=H_%7B0%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{0}(x)' title='H_{0}(x)' class='latex' /> is essentially the Riemann <img src='http://s.wordpress.com/latex.php?latex=%5Cxi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\xi' title='\xi' class='latex' /> function, and in particular, the Riemann Hypothesis is true if and only if <img src='http://s.wordpress.com/latex.php?latex=H_%7B0%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{0}(x)' title='H_{0}(x)' class='latex' /> has only real zeros.</p>
<p>Here are some properties of the family of functions <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t}(x)' title='H_{t}(x)' class='latex' />:</p>
<p>1. <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t}(x)' title='H_{t}(x)' class='latex' /> has only real zeros for any <img src='http://s.wordpress.com/latex.php?latex=t%5Cgeq1%2F2&#038;bg=T&#038;fg=000000&#038;s=0' alt='t\geq1/2' title='t\geq1/2' class='latex' />.</p>
<p>2. If <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t}(x)' title='H_{t}(x)' class='latex' /> has only real zeros, then for any <img src='http://s.wordpress.com/latex.php?latex=t%5E%7B%5Cprime%7D%5Cgeq%20t&#038;bg=T&#038;fg=000000&#038;s=0' alt='t^{\prime}\geq t' title='t^{\prime}\geq t' class='latex' />, <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%5E%7B%5Cprime%7D%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t^{\prime}}(x)' title='H_{t^{\prime}}(x)' class='latex' /> has only real zeros too.</p>
<p>3. There exists a real value <img src='http://s.wordpress.com/latex.php?latex=t_%7B%2A%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='t_{*}' title='t_{*}' class='latex' /> such that <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt_%7B%2A%7D%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t_{*}}(x)' title='H_{t_{*}}(x)' class='latex' /> has at least one non-real zero.</p>
<p>These properties combine to show the existence of a constant <img src='http://s.wordpress.com/latex.php?latex=%5CLambda&#038;bg=T&#038;fg=000000&#038;s=0' alt='\Lambda' title='\Lambda' class='latex' />, lying somewhere in the range <img src='http://s.wordpress.com/latex.php?latex=-%5Cinfty%3C%5CLambda%5Cleq1%2F2&#038;bg=T&#038;fg=000000&#038;s=0' alt='-\infty&lt;\Lambda\leq1/2' title='-\infty&lt;\Lambda\leq1/2' class='latex' />, such that <img src='http://s.wordpress.com/latex.php?latex=H_%7Bt%7D%28x%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='H_{t}(x)' title='H_{t}(x)' class='latex' /> has only real zeroes if and only if <img src='http://s.wordpress.com/latex.php?latex=t%5Cgeq%5CLambda&#038;bg=T&#038;fg=000000&#038;s=0' alt='t\geq\Lambda' title='t\geq\Lambda' class='latex' />. This is how the de Bruijn-Newman constant is defined. Moreover, the Riemann Hypothesis is equivalent to the statement that <img src='http://s.wordpress.com/latex.php?latex=%5CLambda%5Cleq0&#038;bg=T&#038;fg=000000&#038;s=0' alt='\Lambda\leq0' title='\Lambda\leq0' class='latex' />.</p>
<p>The current best estimates for <img src='http://s.wordpress.com/latex.php?latex=%5CLambda&#038;bg=T&#038;fg=000000&#038;s=0' alt='\Lambda' title='\Lambda' class='latex' /> state that</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=-2.7%5Ctimes10%5E%7B-9%7D%3C%5CLambda%5Cleq1%2F2%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='-2.7\times10^{-9}&lt;\Lambda\leq1/2,' title='-2.7\times10^{-9}&lt;\Lambda\leq1/2,' class='latex' /></p>
<p style="text-align: left;">so if the Riemann Hypothesis is true, it is, in some sense, “just barely” true. In particular, it&#8217;s possible that <img src='http://s.wordpress.com/latex.php?latex=%5CLambda%3D0&#038;bg=T&#038;fg=000000&#038;s=0' alt='\Lambda=0' title='\Lambda=0' class='latex' />, in which case you are really just sitting at the 0 table. But while your table may be marked as such, you should know that none of you are zeros in our hearts.</p>
<p style="text-align: left;">Table exercises!</p>
<p style="text-align: left;">1. Prove or disprove the Riemann Hypothesis.</p>
<p style="text-align: left;"><strong>8. <em>i</em> (see <a href="http://en.wikipedia.org/wiki/Imaginary_unit">here</a> for more).</strong><em> </em></p>
<p style="text-align: left;"><em>i</em>, more formally known as the square root of -1, is defined to be one of two solutions to the equation <img src='http://s.wordpress.com/latex.php?latex=x%5E%7B2%7D%3D-1&#038;bg=T&#038;fg=000000&#038;s=0' alt='x^{2}=-1' title='x^{2}=-1' class='latex' /> (the other solution being -<em>i</em>).</p>
<p style="text-align: left;">While this might seem like an arbitrary construction, in the larger context of history, it makes perfect sense. Just as the whole numbers are perfectly good for solving basic counting problems, but may be insufficient for problems involving debts or losses (where negative numbers play a prominent role), or problems involving rates or ratios (where fractions take the spotlight), the extension of numbers to include <em>i</em> leads to a wide variety of applications. This include (but are not limited to) applications in electrical engineering, signal processing, and fluid dynamics.</p>
<p style="text-align: left;"><em>i</em> is also one of the key ingredients in Euler&#8217;s identity, one of the most popular formulas in mathematics. This formula states that <img src='http://s.wordpress.com/latex.php?latex=e%5E%7Bi%5Cpi%7D%2B1%3D0&#038;bg=T&#038;fg=000000&#038;s=0' alt='e^{i\pi}+1=0' title='e^{i\pi}+1=0' class='latex' />, and is noted for its unification of five constants of fundamental importance in mathematics: <em>e</em>, <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' />, <em>i</em>, 1 and 0.</p>
<p style="text-align: left;">Table exercises!</p>
<p style="text-align: left;">1. Show that <img src='http://s.wordpress.com/latex.php?latex=i%5E%7Bn%7D%3D1&#038;bg=T&#038;fg=000000&#038;s=0' alt='i^{n}=1' title='i^{n}=1' class='latex' /> whenever <em>n</em> is divisible by 4.</p>
<p style="text-align: left;">2. Find all <em>x</em> satisfying the equation <img src='http://s.wordpress.com/latex.php?latex=x%5E%7B4%7D-1%3D0&#038;bg=T&#038;fg=000000&#038;s=0' alt='x^{4}-1=0' title='x^{4}-1=0' class='latex' />.</p>
<p style="text-align: left;">3. The set of complex numbers is defined as the set of all <em>a</em> + <em>bi</em>, where <em>a</em> and <em>b</em> are real numbers. 1 + <em>i</em> is a complex number, as is <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D-7i&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}-7i' title='\sqrt{2}-7i' class='latex' />. Can you define an addition law on the set of complex numbers? A multiplication law?</p>
<p style="text-align: left;"><strong>9. <img src='http://s.wordpress.com/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\rho' title='\rho' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Plastic_number">here</a> for more).</strong></p>
<p style="text-align: left;">The plastic constant <img src='http://s.wordpress.com/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\rho' title='\rho' class='latex' /> can be viewed as a cousin to the golden ratio <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> (see the <img src='http://s.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> table for more information). Formally, <img src='http://s.wordpress.com/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\rho' title='\rho' class='latex' /> is equal to the real root of the equation <img src='http://s.wordpress.com/latex.php?latex=x%5E%7B3%7D%3Dx%2B1&#038;bg=T&#038;fg=000000&#038;s=0' alt='x^{3}=x+1' title='x^{3}=x+1' class='latex' />. The value of <img src='http://s.wordpress.com/latex.php?latex=%5Crho&#038;bg=T&#038;fg=000000&#038;s=0' alt='\rho' title='\rho' class='latex' /> is</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Crho%3D%5Csqrt%5B3%5D%7B%5Cfrac%7B1%7D%7B2%7D%2B%5Cfrac%7B1%7D%7B6%7D%5Csqrt%7B%5Cfrac%7B23%7D%7B3%7D%7D%7D%2B%5Csqrt%5B3%5D%7B%5Cfrac%7B1%7D%7B2%7D-%5Cfrac%7B1%7D%7B6%7D%5Csqrt%7B%5Cfrac%7B23%7D%7B3%7D%7D%7D%5Capprox1.3247%5Cldots.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\rho=\sqrt[3]{\frac{1}{2}+\frac{1}{6}\sqrt{\frac{23}{3}}}+\sqrt[3]{\frac{1}{2}-\frac{1}{6}\sqrt{\frac{23}{3}}}\approx1.3247\ldots.' title='\rho=\sqrt[3]{\frac{1}{2}+\frac{1}{6}\sqrt{\frac{23}{3}}}+\sqrt[3]{\frac{1}{2}-\frac{1}{6}\sqrt{\frac{23}{3}}}\approx1.3247\ldots.' class='latex' /></p>
<p style="text-align: left;">Just as the golden ratio is intimately related to the Fibonacci sequence, the plastic constant is related to a sequence known as the Padovan sequence. The first three numbers in the Padovan sequence are given by</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P_%7B0%7D%3DP_%7B1%7D%3DP_%7B2%7D%3D1%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='P_{0}=P_{1}=P_{2}=1,' title='P_{0}=P_{1}=P_{2}=1,' class='latex' /></p>
<p style="text-align: left;">and the <em>n</em>th term is given by adding two earlier terms in the sequence:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P_%7Bn%7D%3DP_%7Bn-2%7D%2BP_%7Bn-3%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P_{n}=P_{n-2}+P_{n-3}.' title='P_{n}=P_{n-2}+P_{n-3}.' class='latex' /></p>
<p style="text-align: left;">For example, the first few terms in the sequence are given by <img src='http://s.wordpress.com/latex.php?latex=1%2C1%2C1%2C2%2C2%2C3%2C4%2C5%2C7%2C9%2C%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='1,1,1,2,2,3,4,5,7,9,\ldots' title='1,1,1,2,2,3,4,5,7,9,\ldots' class='latex' />.</p>
<p style="text-align: left;">One can similarly construct a sequence known as the Perrin sequence. This sequence is similar to the Padovan sequence, but in this case, the equations needed to get started are <img src='http://s.wordpress.com/latex.php?latex=A_%7B0%7D%3D3%2CA_%7B1%7D%3D0%2CA_%7B2%7D%3D2%2CA_%7Bn%7D%3DA_%7Bn-2%7D%2BA_%7Bn-3%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_{0}=3,A_{1}=0,A_{2}=2,A_{n}=A_{n-2}+A_{n-3}' title='A_{0}=3,A_{1}=0,A_{2}=2,A_{n}=A_{n-2}+A_{n-3}' class='latex' />. In either case,</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Clim_%7Bn%5Crightarrow%5Cinfty%7D%5Cfrac%7BA_%7Bn%2B1%7D%7D%7BA_%7Bn%7D%7D%3D%5Crho%3D%5Clim_%7Bn%5Crightarrow%5Cinfty%7D%5Cfrac%7BP_%7Bn%2B1%7D%7D%7BP_%7Bn%7D%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\lim_{n\rightarrow\infty}\frac{A_{n+1}}{A_{n}}=\rho=\lim_{n\rightarrow\infty}\frac{P_{n+1}}{P_{n}}.' title='\lim_{n\rightarrow\infty}\frac{A_{n+1}}{A_{n}}=\rho=\lim_{n\rightarrow\infty}\frac{P_{n+1}}{P_{n}}.' class='latex' /></p>
<p style="text-align: left;">Table exercises!</p>
<p style="text-align: left;">1. Show why the limit formulas given above are true.</p>
<p style="text-align: left;">2. Show that the first few terms of the Perrin sequence are <img src='http://s.wordpress.com/latex.php?latex=3%2C0%2C2%2C3%2C2%2C5%2C5%2C7%2C10%2C%5Cldots&#038;bg=T&#038;fg=000000&#038;s=0' alt='3,0,2,3,2,5,5,7,10,\ldots' title='3,0,2,3,2,5,5,7,10,\ldots' class='latex' />.</p>
<p style="text-align: left;">3. Show that if <em>p</em> is a prime number, <img src='http://s.wordpress.com/latex.php?latex=A_%7Bp%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='A_{p}' title='A_{p}' class='latex' /> is divisible by <em>p</em>.</p>
<p style="text-align: left;"><strong>10. <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> (see <a href="http://en.wikipedia.org/wiki/Square_root_of_2">here</a> for more).</strong></p>
<p style="text-align: left;">Along with <img src='http://s.wordpress.com/latex.php?latex=%5Cpi&#038;bg=T&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' />, <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> is probably the most well known number on display here. While it may seem mundane, <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> has an interesting mathematical history, notably because it was one of the first examples of an irrational number (i.e. a number that cannot be expressed as a fraction <em>p</em>/<em>q</em> where <em>p</em> and <em>q</em> are both integers). An early proof of this fact is attributed to the Greek thinker Hippasus, a follower of Pythagoras; legend has it that when he discovered <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> was irrational, the result was so controversial that he was thrown out to sea by his colleagues and drowned.</p>
<p style="text-align: left;">These days, mathematics is (for the most part) less fraught with peril. The following elegant identities involving <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> have been met with much less controversy:</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D%20%3D%201%20%2B%20%5Cfrac%7B1%7D%7B2%2B%5Cfrac%7B1%7D%7B2%2B%5Cfrac%7B1%7D%7B2%2B%5Cldots%7D%7D%7D%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2} = 1 + \frac{1}{2+\frac{1}{2+\frac{1}{2+\ldots}}},' title='\sqrt{2} = 1 + \frac{1}{2+\frac{1}{2+\frac{1}{2+\ldots}}},' class='latex' /></p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D%20%3D%20%5Cleft%20%28%201%2B%5Cfrac%7B1%7D%7B1%7D%20%5Cright%20%29%5Cleft%20%28%201-%5Cfrac%7B1%7D%7B3%7D%20%5Cright%20%29%5Cleft%20%28%201%2B%5Cfrac%7B1%7D%7B5%7D%20%5Cright%20%29%5Cldots%2C&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2} = \left ( 1+\frac{1}{1} \right )\left ( 1-\frac{1}{3} \right )\left ( 1+\frac{1}{5} \right )\ldots,' title='\sqrt{2} = \left ( 1+\frac{1}{1} \right )\left ( 1-\frac{1}{3} \right )\left ( 1+\frac{1}{5} \right )\ldots,' class='latex' /></p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D%5E%7B%5Csqrt%7B2%7D%5E%7B%5Csqrt%7B2%7D%5E%7B%5Csqrt%7B2%7D%5E%7B%5Cldots%7D%7D%7D%7D%20%3D%202.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\ldots}}}} = 2.' title='\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\sqrt{2}^{\ldots}}}} = 2.' class='latex' /></p>
<p style="text-align: left;">Table exercises!</p>
<p style="text-align: left;">1. Prove that <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{2}' title='\sqrt{2}' class='latex' /> is irrational (make sure you are removed from any large bodies of water).</p>
<p style="text-align: left;">2. Try to prove the identities written above.</p>
<p style="text-align: left;">3. For which whole numbers <em>m</em> is <img src='http://s.wordpress.com/latex.php?latex=%5Csqrt%7Bm%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\sqrt{m}' title='\sqrt{m}' class='latex' /> a rational number?</p>
<p style="text-align: left;">Enjoy the table exercises!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/09/wedding-mathematics-part-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wedding Planning and the Ménage Problem</title>
		<link>http://www.mathgoespop.com/2011/09/menageproblem.html</link>
		<comments>http://www.mathgoespop.com/2011/09/menageproblem.html#comments</comments>
		<pubDate>Thu, 08 Sep 2011 01:36:34 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[combinatorics]]></category>
		<category><![CDATA[inclusion-exclusion]]></category>
		<category><![CDATA[menage problem]]></category>
		<category><![CDATA[weddings]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1093</guid>
		<description><![CDATA[<p>Last month I wrote a wedding-themed post on some statistics behind the show Four Weddings.  Now, fully refreshed from my own two week honeymoon, I would like to take some time to discuss some other areas of intersection between weddings and mathematics.</p>
<p>One of the things I most looked forward to during the planning of our wedding <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/09/menageproblem.html">Wedding Planning and the Ménage Problem</a></span>]]></description>
			<content:encoded><![CDATA[<p>Last month I <a href="http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html">wrote</a> a wedding-themed post on some statistics behind the show <a href="http://en.wikipedia.org/wiki/Four_Weddings">Four Weddings</a>.  Now, fully refreshed from my own two week honeymoon, I would like to take some time to discuss some other areas of intersection between weddings and mathematics.</p>
<p>One of the things I most looked forward to during the planning of our wedding was the determination of the seating chart.  Searching for an optimal arrangement given peoples&#8217; preferences to sit next to their friends and away from their enemies was a fun little challenge.  In the end, though, perhaps I made things too easy on myself.  Although I assigned people to specific tables, I did not assign seats within the tables themselves.  Instead, people were free to sit however they chose once they found their table.</p>
<div id="attachment_1373" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/09/dgwed1.jpg"><img class="size-full wp-image-1373" title="dgwed1" src="http://www.mathgoespop.com/wp-content/uploads/2011/09/dgwed1.jpg" alt="" width="600" height="450" /></a><p class="wp-caption-text">An example of our seating.  Hat tip to Dave Gilbert for the shot!</p></div>
<p>Were I truly a glutton for punishment, I would have assigned seats at each table.  And were I a traditionalist, I would have arranged the seating so that couples were separated, and genders alternated.  In other words, more traditional etiquette would dictate that at each table, the seats alternate from boy to girl to boy to girl (and so on), so that no two people who sit next to each other are in a relationship.  While these additional restrictions would have complicated my job, they would have also opened the door to some nice mathematics.  More specifically: if I had imposed these restrictions, in how many ways could I have seated people at a particular table?</p>
<p>Though our wedding was recent, this problem dates back to the 19th century.  It is now commonly referred to as the &#8220;<a href="http://en.wikipedia.org/wiki/M%C3%A9nage_problem">Ménage problem</a>,&#8221; or, less titillatingly, the &#8220;Married Couples Problem.&#8221;  The solution to this problem is a formula which tells us in how many ways <em>n</em> couples can be seated at a round table so that (a) the genders alternate, and (b) no two people in a couple are seated next to each other.  A derivation of the formula can be found <a href="http://www.math.dartmouth.edu/~doyle/docs/menage/menage/menage.html">here</a>; the conclusion is that the number of ways to seat <em>n</em> couples at a round table in a way that would satisfy Ms. Manners, if denoted by the symbol <img src='http://s.wordpress.com/latex.php?latex=M_%7Bn%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='M_{n}' title='M_{n}' class='latex' />, is given by the formula</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=M_%7Bn%7D%3D2%5Ccdot%20n%21%5Csum_%7Bk%3D0%7D%5E%7Bn%7D%28-1%29%5E%7Bk%7D%5Cfrac%7B2n%7D%7B2n-k%7D%5Cbinom%7B2n-k%7D%7Bk%7D%28n-k%29%21.&#038;bg=T&#038;fg=000000&#038;s=0' alt='M_{n}=2\cdot n!\sum_{k=0}^{n}(-1)^{k}\frac{2n}{2n-k}\binom{2n-k}{k}(n-k)!.' title='M_{n}=2\cdot n!\sum_{k=0}^{n}(-1)^{k}\frac{2n}{2n-k}\binom{2n-k}{k}(n-k)!.' class='latex' /></p>
<p style="text-align: left;">(As outlined in <a href="http://www.mathgoespop.com/2010/12/humanities.html">earlier</a> <a href="http://www.mathgoespop.com/2010/07/top-chef-mathematics.html">posts</a>, <img src='http://s.wordpress.com/latex.php?latex=%5Cbinom%7Bn%7D%7Bk%7D%20%3D%20%5Cfrac%7Bn%21%7D%7Bk%21%28n-k%29%21%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\binom{n}{k} = \frac{n!}{k!(n-k)!}' title='\binom{n}{k} = \frac{n!}{k!(n-k)!}' class='latex' />, and <em>n</em>! denotes the product of all the whole numbers from 1 up to <em>n</em>.) In the case of our wedding, where each table could seat 10 people (or 5 couples), this amounts to a total of</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=M_%7B5%7D%20%3D%202%5Ccdot%205%21%5Cleft%20%28%205%21-10%5Ccdot%204%21%2B35%5Ccdot%203%21%20-%2050%5Ccdot%202%21%2B%2025%5Ccdot%201%21%20-%202%20%5Ccdot%200%21%5Cright%20%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='M_{5} = 2\cdot 5!\left ( 5!-10\cdot 4!+35\cdot 3! - 50\cdot 2!+ 25\cdot 1! - 2 \cdot 0!\right )' title='M_{5} = 2\cdot 5!\left ( 5!-10\cdot 4!+35\cdot 3! - 50\cdot 2!+ 25\cdot 1! - 2 \cdot 0!\right )' class='latex' /></p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%3D%20240%28120-240%2B210-100%2B25-2%29&#038;bg=T&#038;fg=000000&#038;s=0' alt='= 240(120-240+210-100+25-2)' title='= 240(120-240+210-100+25-2)' class='latex' /></p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%3D%2028800%20-%2057600%20%2B%2050400%20-%2024000%20%2B%206000%20-%20480%20%3D%203120.&#038;bg=T&#038;fg=000000&#038;s=0' alt='= 28800 - 57600 + 50400 - 24000 + 6000 - 480 = 3120.' title='= 28800 - 57600 + 50400 - 24000 + 6000 - 480 = 3120.' class='latex' /></p>
<p style="text-align: left;">In other words, there are 3,120 ways to seat 5 couples at a round table subject to the restrictions (a) and (b) given above.</p>
<div id="attachment_1384" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/09/missmanners.jpg"><img class="size-full wp-image-1384" title="missmanners" src="http://www.mathgoespop.com/wp-content/uploads/2011/09/missmanners.jpg" alt="" width="300" height="234" /></a><p class="wp-caption-text">Ms. Manners loves math.</p></div>
<p>Why does this formula work?  While a rigorous proof is provided at the page linked above, let me try to give a discussion that is less concerned with the details.  First, suppose you ignored condition (b) and only wanted to count the number of ways you could seat people at a table so that men and women alternated.  There are two ways to start the alternation, since the first seat can be filled by either a man or a woman; once this choice has been made, there are <em>n</em>! ways to seat the men, and <em>n</em>! ways to seat the women, so the total number of ways to seat people is <img src='http://s.wordpress.com/latex.php?latex=2%5Ccdot%20%28n%21%29%5E%7B2%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='2\cdot (n!)^{2}' title='2\cdot (n!)^{2}' class='latex' />. In particular, for 5 couples, 5! = 120, so this expression yields a value of 2 x 120 x 120 = 28,800. Note that this number, not coincidentally, appears in the calculation above.</p>
<p>28,800 is much larger than the true answer of 3,120.  The reason, of course, is that we have ignored the restriction that no couples sit together, and we have therefore over-counted the number of possible configurations.  So let us now try to remedy the situation.  One thing we can do is try to subtract out the number of ways we can have a seating arrangement with one couple seated together &#8211; by eliminating these cases from our count, we should end up with a more reliable count, right?</p>
<p>How many ways can we arrange things so that a couple is guaranteed to sit together?  Well, first we must choose the couple (5 ways to do this).  Then we must decide how to start the male/female alternation of seats, just as in the previous case (2 ways to do this).  Then we must choose where to seat the couple we have chosen to put together (10 ways to do this), and from there we must decide where to seat the remaining four men (4! ways to do this) and four women (4! ways to do this).  Therefore, the number we want to subtract out (by the <a href="http://en.wikipedia.org/wiki/Rule_of_product">fundamental counting principle</a>) is 5 x 2 x 10 x 4! x 4! = 57,600.  Notice the appearance of this number in our earlier calculation as well.</p>
<p>But this can&#8217;t be right, because 28,800 &#8211; 57,600 is negative!  While we&#8217;ve subtracted, it turns out we&#8217;ve subtracted too much.  What we&#8217;re witnessing here is an example of the <a href="http://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle">inclusion-exclusion principle</a>, and this principle is what lies behind the alternating positive and negative signs in the expression 28800 &#8211; 57600 + 50400 &#8211; 24000 + 6000 &#8211; 480.</p>
<p>As it turns out, what we need to do is add in the number of ways we can arrange things so that two couples are guaranteed to sit together (50,400 ways).  This will once again lead to a number that is too high, so we must subtract out the number of ways we can arrange things so that three couples are guaranteed to sit together (24,000 ways).  This, in turn, will lead to a number that is too low, so we must add in the number of ways we can arrange things so that four couples are guaranteed to sit together (6,000 ways), and, as it turns out, this number will be too high, so we must finally subtract out the number of ways we can arrange things so that all five couples are guaranteed to sit together (480 ways).  Only then will we have the right answer.</p>
<p>The inclusion-exclusion principle can be understood in certain cases with the use of Venn diagrams (see the linked Wikipedia article for more information).</p>
<p>Of course, we live in the 21st century &#8211; it&#8217;s not necessarily true that everyone will come to a wedding with a date, and for those that do, there is no guarantee that the date will be of the opposite sex!  In fact, if one has a table with an equal number of same-sex male couples and same-sex female couples, any table arrangement in which genders alternate will automatically fulfill the condition that no couples sit next to each other.  This raises a question, which I will leave you with for now: suppose a round table is to be arranged so that it will sit <em>n</em> same-sex male couples, <em>n</em> same-sex female couples, and <em>m</em> heterosexual couples.  In how many ways can the seats be arranged so that conditions (a) and (b) written above remain satisfied?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/09/menageproblem.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Four Weddings and Some Statistics</title>
		<link>http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html</link>
		<comments>http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html#comments</comments>
		<pubDate>Wed, 17 Aug 2011 17:46:59 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[Math on TV]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[weddings]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1347</guid>
		<description><![CDATA[<p>When my fiancee was in the midst of the wedding planning, part of her research (or perhaps it was simply a guilty pleasure) involved watching wedding shows on basic cable.  For those of you who have not had the pleasure, between stations like WE tv and TLC, there are no fewer than nine different wedding-themed reality <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html">Four Weddings and Some Statistics</a></span>]]></description>
			<content:encoded><![CDATA[<p>When my fiancee was in the midst of the wedding planning, part of her research (or perhaps it was simply a guilty pleasure) involved watching wedding shows on basic cable.  For those of you who have not had the pleasure, between stations like <a href="http://www.wetv.com/">WE tv</a> and <a href="http://tlc.discovery.com/">TLC</a>, there are no fewer than nine different wedding-themed reality shows airing weekly.  Many of them are appealing in a rubbernecking sort of way; much like a car crash, the spectacle is too ridiculous to turn away from (I&#8217;m looking at you, <a href="http://tlc.howstuffworks.com/tv/my-big-fat-gypsy-wedding">My Big Fat Gypsy Wedding</a>).</p>
<p style="text-align: center;"><object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/2HAUmII_hcg?version=3&amp;hl=en_US" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="640" height="390" src="http://www.youtube.com/v/2HAUmII_hcg?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Of all of these shows, though, the one that most piques my mathematical interest is TLC&#8217;s <a href="http://en.wikipedia.org/wiki/Four_Weddings">Four Weddings</a>.  Based on a British show with the same name, the premise is as follows: four brides-to-be, unknown to one another, meet and attend each others&#8217; weddings.  When one bride gets married, the other three score various aspects of the wedding, and the bride with the highest score among the four wins a honeymoon (contingencies are in place in the event of a tie, though these are not always explained and seem to vary from season to season).  In order to make for good TV, the show frequently manages to bring out the worst aspects of these women, as they nitpick and pass judgment on everyone else&#8217;s wedding.  Here&#8217;s a short clip to give you a taste for what this show is all about:</p>
<p style="text-align: center;"><object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/PeI09kys09Q?version=3&amp;hl=en_US" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="640" height="390" src="http://www.youtube.com/v/PeI09kys09Q?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>How are the weddings scored?  This process is explained in detail during the course of each episode.  The wedding is broken down into four categories: dress, venue, food, and overall experience.  For overall experience, the other three brides in attendance give a score from 1 to 10 (though I&#8217;ve never seen a bride give another wedding a 10).  For the rest of the categories, though, the brides can only rank the weddings as being 1st, 2nd, or 3rd in the given category.  1st place gets 10 points, 2nd place gets 6, and 3rd gets 3.  The total possible number of points a wedding can score is therefore 120.  At the end of each episode, the scores for each bride are broken out in detail.  The wedding budget and headcount are provided as well.</p>
<p>After watching a few episodes, it seemed like the best way to ensure a win was to simply outspend your competitors.  Certainly a large budget can help improve the guest experience or score a hip dress, but I was curious as to what overall trend (if any) could be made between, say, money spent on a wedding and the wedding&#8217;s overall score.</p>
<p>With this noble goal in mind, I proceeded to DVR 28 episodes of this show.  After recording the scores for 112 weddings, some of my questions were as follows: is the amount a person spends on a wedding correlated to the score they receive from the other competitors?  What about the amount a person spends <em>per guest</em>?  Finally, did the most expensive wedding win more frequently than would be expected by pure chance?</p>
<p>Let&#8217;s look at some data.  Here is a scatterplot of each wedding&#8217;s budget, vs. the total points earned.</p>
<div id="attachment_1357" class="wp-caption aligncenter" style="width: 620px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-5.png"><img class="size-full wp-image-1357" title="CostVsScore" src="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-5.png" alt="" width="610" height="311" /></a><p class="wp-caption-text">Click to embiggen!</p></div>
<p>As the dots suggest, there is a slight positive correlation between the amount one spends on a wedding, and the score one receives from one&#8217;s fellow competitors.  The <a href="http://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient">coefficient of correlation</a> here is approximately 0.286, though if we discard the two $150,000 weddings, this improves to around 0.348.</p>
<p>Of course, a $10,000 wedding for 10 people might be a much nicer affair than a $10,000 wedding for 1,000 people.  If you spend more money per guest, does this translate into a higher score as well?  The dots don&#8217;t lie; here&#8217;s another scatterplot:</p>
<div id="attachment_1359" class="wp-caption aligncenter" style="width: 649px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-6.png"><img class="size-full wp-image-1359" title="CPGvsScore" src="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-6.png" alt="" width="639" height="326" /></a><p class="wp-caption-text">Click to embiggen!</p></div>
<p>There is quite clearly an outlier in this set of data &#8211; this corresponds to a bride who spent $150,000 for a 120 person wedding, for a whopping $1,250 spent per guest (this particular bride did end up taking first place).  Eliminating this outlier, though, the correlation here is weaker than the correlation for actual cost, at a meager 0.098.  In other words, there may not be a linear relationship between cost per guest and total score.  This may be because certain fixed costs, such as the dress and the venue, won&#8217;t necessarily vary much with the guest total, unlike something like food.</p>
<p>This analysis, though, obscures a key point.  In order to win the honeymoon, you don&#8217;t necessarily need a high score; you only need a higher score than your three other competitors.  With this in mind, it may be simpler to just look at the scores episode-by-episode, and see how the amount spent on a wedding compares to the wedding&#8217;s relative ranking.</p>
<p>In the graph below, the blue bars count the number of times the most expensive wedding was given a certain rank.  The red bars count the number of times the wedding with the highest cost per guest was given a certain rank.  Note that if cost had no bearing on the rank, we would expect an equal number of weddings in each rank (in this case, about 7 per rank).</p>
<div id="attachment_1362" class="wp-caption aligncenter" style="width: 649px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-7.png"><img class="size-full wp-image-1362" title="costranks" src="http://www.mathgoespop.com/wp-content/uploads/2011/08/Picture-7.png" alt="" width="639" height="336" /></a><p class="wp-caption-text">Click to embiggen!</p></div>
<p>As you can see, spending the most money seems to bestow an advantage: fully 50% (14 out of 28) of the most expensive weddings were ranked first.  This would be unlikely if cost had no impact on ranking.</p>
<p>The picture is a little murkier for cost per guest -the frequency for each ranking sticks pretty closely to 7, so it&#8217;s not clear that spending more per guest gives any advantage.</p>
<p>In conclusion, there is a small positive correlation between amount spent and score received, though this does not transfer to the amount spent per guest.  Compared only to one&#8217;s other three competitors, the amount spent appears to confer an even greater advantage, so if you are on this show and want to show your competitors that you are better than them, my advice would be to simply outspend them.  If all you&#8217;re interested in is a nice vacation, though, it may be cheaper to just stick to your budget, and plan a vacation on your own.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/08/four-weddings-and-some-statistics.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Math Jams</title>
		<link>http://www.mathgoespop.com/2011/07/math-jams.html</link>
		<comments>http://www.mathgoespop.com/2011/07/math-jams.html#comments</comments>
		<pubDate>Wed, 20 Jul 2011 18:15:51 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[Math in the News]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[npr]]></category>
		<category><![CDATA[school house rock]]></category>
		<category><![CDATA[sesame street]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1316</guid>
		<description><![CDATA[<p style="text-align: left;">Sorry I&#8217;m so late to the party on this one, but I wanted to draw your attention to this NPR article from a couple of months back.  It profiles the &#8220;Songwriter in Residence&#8221; program at the University of Tennessee&#8217;s National Institute for Mathematical and Biological Synthesis (or NIMBioS if you feel like spitting a <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/07/math-jams.html">Math Jams</a></span>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Sorry I&#8217;m so late to the party on this one, but I wanted to draw your attention to <a href="http://www.npr.org/2011/05/17/136402623/scientists-and-musicians-compare-notes">this</a> NPR article from a couple of months back.  It profiles the &#8220;Songwriter in Residence&#8221; program at the University of Tennessee&#8217;s National Institute for Mathematical and Biological Synthesis (or NIMBioS if you feel like spitting a bunch of letters out of your mouth).  The experimental program hires songwriters for one month stints at the Institute, during which time they work with researchers to develop two songs on current scientific/mathematical research.  Here&#8217;s one of the resident&#8217;s performing a song on sexual selection:</p>
<p style="text-align: center;"><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/ce5zoeWudAw?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="349" src="http://www.youtube.com/v/ce5zoeWudAw?version=3&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">While combining the arts with the sciences is nothing new, it&#8217;s cool to see a program embrace the intersection of these disciplines with such gusto.  Of course, it can be difficult to squeeze educational content out of a song with a science focus, but if School House Rock has taught me anything, it is that education and fly jams need not be mutually exclusive.  If you feel, however, that NIMBioS&#8217;s song on sexual selection doesn&#8217;t quite make the cut on the education front, here are some other math and science songs to ease you through your hump day.</p>
<p style="text-align: left;">Here is &#8220;The First and Second Law&#8221; by <a href="http://en.wikipedia.org/wiki/Flanders_and_Swann">Flanders and Swann</a> (this one is highly recommended), a song about thermodynamics:</p>
<p style="text-align: center;"><object width="480" height="390"><param name="movie" value="http://www.youtube.com/v/VtEqn-5XHpU?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://www.youtube.com/v/VtEqn-5XHpU?version=3&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">The University of Tennessee isn&#8217;t the only school to join songwriting and science.  Here&#8217;s an evolutionary jam courtesy of the University of Chicago:</p>
<p style="text-align: center;"><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/1UtHYiXpKh8?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="349" src="http://www.youtube.com/v/1UtHYiXpKh8?version=3&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">For the mathematically inclined, there isn&#8217;t much that can beat &#8220;Finite Simple Group (of Order Two)&#8221;:</p>
<p style="text-align: center;"><object width="480" height="390"><param name="movie" value="http://www.youtube.com/v/BipvGD-LCjU?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://www.youtube.com/v/BipvGD-LCjU?version=3&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">Though, if those jokes don&#8217;t make much sense, one can always listen to muppets singing about math instead.  Who knew there was math in tube socks?</p>
<p style="text-align: center;"><object width="560" height="349"><param name="movie" value="http://www.youtube.com/v/YgP1n1kPI0U?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="560" height="349" src="http://www.youtube.com/v/YgP1n1kPI0U?version=3&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p style="text-align: left;">(Hat tip to Meg for the NPR link!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/07/math-jams.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure Your Phone with Pretty Pictures</title>
		<link>http://www.mathgoespop.com/2011/03/secure-your-phone-with-pretty-pictures.html</link>
		<comments>http://www.mathgoespop.com/2011/03/secure-your-phone-with-pretty-pictures.html#comments</comments>
		<pubDate>Wed, 30 Mar 2011 04:22:53 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[permutations]]></category>
		<category><![CDATA[tmz]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1131</guid>
		<description><![CDATA[<p>A good friend of mine is moving on up in the world, and to prove it, he recently upgraded his cell phone.  His new phone is one of several that has a clever password feature &#8211; instead of entering a traditional password, one creates a shape within a 9 point grid, like a miniature connect the <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/03/secure-your-phone-with-pretty-pictures.html">Secure Your Phone with Pretty Pictures</a></span>]]></description>
			<content:encoded><![CDATA[<p>A good friend of mine is moving on up in the world, and to prove it, he recently upgraded his cell phone.  His new phone is one of several that has a clever password feature &#8211; instead of entering a traditional password, one creates a shape within a 9 point grid, like a miniature connect the dots.  Here&#8217;s one video explaining the feature:</p>
<p style="text-align: center;"><object width="480" height="390"><param name="movie" value="http://www.youtube.com/v/A0NbEld2UEc?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="480" height="390" src="http://www.youtube.com/v/A0NbEld2UEc?fs=1&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The rules for the patterns are fairly simple, but to make things crystal clear, let me label the dots in the grid as follows:</p>
<p><a href="http://www.mathgoespop.com/wp-content/uploads/2011/03/dots.jpg"><img class="aligncenter size-full wp-image-1135" title="dots" src="http://www.mathgoespop.com/wp-content/uploads/2011/03/dots.jpg" alt="" width="300" height="300" /></a>Here are the rules constraining the types of patterns you can make:</p>
<ol>
<li>The pattern must connect at least 4 dots.</li>
<li>No dot may be used more than once.</li>
<li>The order in which the dots are connected matters.</li>
<li>Two dots which are on opposite sides of the grid (e.g. 1 and 9, 2 and 8, 1 and 3) cannot be connected together directly without going through the dot between them, unless the dot between them has already been used.</li>
</ol>
<p>To give some examples, the first rule prohibits patterns that are too small, such as 1-2-3.  The second one prohibits patterns like 1-2-3-5-7-4-1, although a pattern like 1-5-2-3-7 is allowed by the fourth rule &#8211; in other words, we can jump from 3 to 7 since the 5 has already been used.</p>
<div id="attachment_1137" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/03/dotsbad.jpg"><img class="size-full wp-image-1137" title="dotsbad" src="http://www.mathgoespop.com/wp-content/uploads/2011/03/dotsbad.jpg" alt="" width="600" height="200" /></a><p class="wp-caption-text">Images of the paths described above.</p></div>
<p>The fourth rule tells us, for example, that 1-2-3-6 and 6-3-2-1 are DIFFERENT passwords, even though the shape they make is the same.  Thus, the password is determined not only by shape, but also by direction.</p>
<div id="attachment_1138" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/03/samepath.jpg"><img class="size-full wp-image-1138" title="samepath" src="http://www.mathgoespop.com/wp-content/uploads/2011/03/samepath.jpg" alt="" width="400" height="200" /></a><p class="wp-caption-text">Same paths, different directions.</p></div>
<p>I should also point out that it is possible to connect dots that are not immediately adjacent &#8211; for example, one can draw a line from 2 to 7.  So, for example, if one starts at 1, it is possible to move to every dot except for 3, 7, and 9.</p>
<p>Given these rules, my friend is interested in determining how many unique passwords one can make.  For comparison&#8217;s sake, we can think about the iPhone, which can be secured with a 4-digit passcode.  Since each digit can run from 0 to 9, we see that there are 10,000 = 10<sup>4</sup> possible iPhone passwords.  How does the number of patterns compare, say, to this number?</p>
<p>Without too much work, we can provide an <em>upper</em> bound for the number of passwords one can make using these pattern rules.  To see how this is done, let&#8217;s forget about the pretty pictures, and focus only on the sequence of digits (for example, the paths above can be viewed as the sequences 1236 and 6321).  From this perspective, the second rule tells us that no digit can appear in our sequence more than once, and so in combination with the first rule this tells us that the sequence must be between 4 and 9 digits long.  Suppose for a moment that these we ignore the fourth rule.  Then the number of allowable patterns would be the same as the number of <em>ordered </em>strings of digits of length 4 to 9, where in each string the same digit can appear no more than once.</p>
<p>The fact that the order is important tells us we are dealing with <a href="http://en.wikipedia.org/wiki/Permutation">permutations</a>.  These can be counted easily.  For example, the number of ways to make a 4 digit password if no digit from 1 to 9 can appear more than once is 9*8*7*6 = 9!/5!.  Similarly, the number of ways to make a 5 digit password if no digit can appear more than once is 9!/4!.  Adding all these up (for lengths from 4 to 9), we find that under these conditions, the number of passwords equals</p>
<p style="text-align: center;">9!/5! + 9!/4! + 9!/3! + 9!/2! + 9!/1! + 9!/0! = 985,824.</p>
<p style="text-align: left;">That&#8217;s a nearly 100 fold increase in the number of possible passwords!  Of course, this doesn&#8217;t reflect the number of patterns one can make, because we have ignored some of the rules.  This means, for example, that we have counted the string of digits 1397, even though this doesn&#8217;t represent an allowable pattern.</p>
<p style="text-align: left;">How can we modify this argument to eliminate the digit strings that don&#8217;t correspond to patterns?  This requires a more careful analysis.  For simplicity, let&#8217;s suppose that 3 digit passwords are acceptable, and focus only on them.</p>
<p style="text-align: left;">In this analysis, there are three types of dots that matter: the dots in the corners, the dots on the sides, and the dot in the middle.  Let&#8217;s label these classes of points by C, S, and M.  The first dot in your pattern can be any one of these three types, but the number of options you have depends on the type; in other words, you have 4 choices for a corner dot, 1 choice for a middle dot, and 4 choices for a side dot.</p>
<p style="text-align: left;">Moreover, the number of options for your second choice depends on what type of dot you start with.  If you choose a corner dot, you have 5 options for your next dot (either the middle, or one of the four sides).  Meanwhile, if you choose the middle dot, the next dot in your pattern can be any of the remaining 8 dots.  Similarly, if you start at a dot on the side, you have 7 options for the next dot, since you can move to any dot except for the one directly opposite your starting dot.</p>
<p style="text-align: left;">Similarly, the number of options for the third dot depends on your choice for the second dot.  If you choose the corner dot and then the middle dot, you will have 7 choices for the third dot.  Meanwhile, if you choose the center dot and then a side dot, you&#8217;ll have 6 choices for the third dot.  And so on &#8211; the number of options is summarized in the following chart.</p>
<div id="attachment_1153" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/03/3count3.jpg"><img class="size-full wp-image-1153" title="3count3" src="http://www.mathgoespop.com/wp-content/uploads/2011/03/3count3.jpg" alt="" width="480" height="320" /></a><p class="wp-caption-text">Number of options for a 3 dot pattern (notation explanation below)</p></div>
<p style="text-align: left;">In particular, note that if you start at a side dot, the number of patterns you can create depends on whether your choice for the second dot is the middle dot, a corner adjacent to your starting dot (or a &#8220;close corner,&#8221; labeled cC), a corner not adjacent to the starting dot (or a &#8220;far corner,&#8221; labeled fC), or another side.  Moving from a side to a close corner gives 5 choices for the third dot, while moving from a side to a far corner gives only 4 choices for the third dot.</p>
<div id="attachment_1154" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/03/ccfc.jpg"><img class="size-full wp-image-1154" title="ccfc" src="http://www.mathgoespop.com/wp-content/uploads/2011/03/ccfc.jpg" alt="" width="400" height="200" /></a><p class="wp-caption-text">There are 5 viable candidates when moving from a side to a close corner, but only 4 when moving from a side to a far corner.</p></div>
<p style="text-align: left;">The point is that even in this (relatively) simple example, the number of options for any given point in the pattern is highly dependent upon the choices made up to that point.  In the case of 3 dots, the chart above tells us that the total number of allowable patterns is 4 x 1 x 7 + 4 x 4 x 6 + 1 x 4 x 5 + 1 x 4 x 7 + 4 x 1 x 7 + 4 x 2 x 5 + 4 x 2 x 4 + 4 x 2 x 6 = 320.  This is in contrast to the upper bound of possible permutations of 3 of the 9 digits, which is given by 9 x 8 x 7 = 504.</p>
<p style="text-align: left;">As you can see, just counting the number of patterns connecting three dots is a little annoying.  Doing the same for patterns of lengths 4 through 9 is even worse.  Although conceptually it&#8217;s not difficult to count patterns, technically the task quickly becomes arduous.  Thankfully, we can easily delegate technical calculations to those lovable sidekicks, computers.</p>
<p>After realizing that the calculations would be no fun to do by hand, I went online and discovered that this question has already been answered <a href="http://www.quora.com/How-many-combinations-does-Android-9-point-unlock-have">here</a>.  If you click on the link, you&#8217;ll find some savvy folk who wrote programs to count all possible paths.  Final answer: <strong>766,752</strong> (incidentally, this is 7/9ths of the upper bound we calculated above).</p>
<p>So, we still have an over 75 fold increase in the number of possible passwords when compared to a device like the iPhone.  Whether or not this actually makes for a more secure device is a question I can&#8217;t answer.  I will point out that many of these phones lock you out for 30 seconds after five failed password attempts &#8211; if we assume that a crude hacker could make 5 password attempts per minute, then 766,752 different password options means that it could take over 100 days of continuous guessing before your password is cracked.  Of course, an actual hacker undoubtedly has more sophisticated methods.  Even so, if more celebrities locked their phones with pretty pictures, perhaps hackers would have a harder time <a href="http://www.tmz.com/2011/03/17/vanessa-hudgens-hacker-nude-pics-internet-stolen-computer-scarlett-johansson-ali-larter-miley-cyrus-busy-phillips-emma-caulfield-addison-timlin/5/">stealing</a> all of their naked photographs.</p>
<p>(Big ups to Matt for suggesting this problem!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/03/secure-your-phone-with-pretty-pictures.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Taking, Part 3</title>
		<link>http://www.mathgoespop.com/2011/01/test-taking-part-3.html</link>
		<comments>http://www.mathgoespop.com/2011/01/test-taking-part-3.html#comments</comments>
		<pubDate>Sat, 22 Jan 2011 08:09:24 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[exams]]></category>
		<category><![CDATA[immigration]]></category>
		<category><![CDATA[probability]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=1036</guid>
		<description><![CDATA[<p>If you&#8217;ll permit me this small indulgence, gentle reader, this week I&#8217;d like to return to a topic from last month.  More precisely, I&#8217;d like to continue the series of posts that discussed how one best ought to prepare for an exam in which all N questions are given beforehand, and one knows that M questions <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2011/01/test-taking-part-3.html">Test Taking, Part 3</a></span>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ll permit me this small indulgence, gentle reader, this week I&#8217;d like to return to a topic from last month.  More precisely, I&#8217;d like to continue the series of posts that discussed how one best ought to prepare for an exam in which all <em>N</em> questions are given beforehand, and one knows that<em> M</em> questions will appear on the exam, of which the student must answer <em>K</em>.  In my <a href="http://www.mathgoespop.com/2010/12/humanities.html">first</a> post I discussed this problem in the context of preparing essays, while in my <a href="http://www.mathgoespop.com/2010/12/humanities2.html">second</a> I discussed it in the context of preparing for the US citizenship exam.</p>
<p>Apparently I&#8217;m not the only one who thought this a worthwhile problem.  This problem has also made an <a href="http://mindyourdecisions.com/blog/2011/01/18/math-problem-passing-the-citizenship-test/">appearance</a> at the fun-filled blog Mind Your Decisions (it&#8217;s an excellent discussion, so if this kind of thing suits you, check it out).  In the comments <a href="http://mindyourdecisions.com/blog/2011/01/18/math-problem-passing-the-citizenship-test/#comments">section</a>, discussion on this problem continues; in particular, one person proposed that the model should be modified to include the possibility of guessing.  This is an entirely reasonable thing to want, and thankfully it can be incorporated into the model without too much added effort.</p>
<p>Let me recall the notations I used when I discussed the problem earlier.  I&#8217;ve already mentioned <em>N</em>, <em>M</em>, and <em>K</em>.  Let&#8217;s let <em>n</em> represent the number of questions you can answer, and of those <em>n</em>, let <em>X</em> represent the number that actually appear on the exam.  As we&#8217;ve seen, <em>X</em> satisfies a hypergeometric distribution, and the probability that <em>X</em> is some value <em>k</em> is given by</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%20%3D%20k%29%20%3D%20%5Cfrac%7B%5Cleft%20%28%5Cbegin%7Bmatrix%7Dn%5C%5Ck%5Cend%7Bmatrix%7D%20%5Cright%20%29%20%5Cleft%20%20%28%5Cbegin%7Bmatrix%7DN-n%5C%5CM-k%5Cend%7Bmatrix%7D%20%5Cright%20%29%7D%7B%5Cleft%20%20%28%5Cbegin%7Bmatrix%7DN%5C%5CM%5Cend%7Bmatrix%7D%20%5Cright%20%29%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X = k) = \frac{\left (\begin{matrix}n\\k\end{matrix} \right ) \left  (\begin{matrix}N-n\\M-k\end{matrix} \right )}{\left  (\begin{matrix}N\\M\end{matrix} \right )}.' title='P(X = k) = \frac{\left (\begin{matrix}n\\k\end{matrix} \right ) \left  (\begin{matrix}N-n\\M-k\end{matrix} \right )}{\left  (\begin{matrix}N\\M\end{matrix} \right )}.' class='latex' /></p>
<p>Moreover, since you will pass the exam only if <em>X</em> is at least <em>K</em> (in other words, only if the number of questions on the exam that you can answer is at least the minimum number of correct answers need to pass), the probability of passing is</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%5Cgeq%20K%29%20%3D%20%5Cleft%20%28%5Cbegin%7Bmatrix%7DN%5C%5CM%5Cend%7Bmatrix%7D%20%5Cright%20%29%5E%7B-1%7D%20%20%5Csum_%7Bk%3DK%7D%5E%7B%20%5Cmin%5Cleft%20%5C%7B%20M%2Cn%20%5Cright%20%5C%7D%7D%20%5Cleft%20%20%28%5Cbegin%7Bmatrix%7Dn%5C%5Ck%5Cend%7Bmatrix%7D%20%5Cright%20%29%20%5Cleft%20%20%28%5Cbegin%7Bmatrix%7DN-n%5C%5CM-k%5Cend%7Bmatrix%7D%20%5Cright%20%29.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X\geq K) = \left (\begin{matrix}N\\M\end{matrix} \right )^{-1}  \sum_{k=K}^{ \min\left \{ M,n \right \}} \left  (\begin{matrix}n\\k\end{matrix} \right ) \left  (\begin{matrix}N-n\\M-k\end{matrix} \right ).' title='P(X\geq K) = \left (\begin{matrix}N\\M\end{matrix} \right )^{-1}  \sum_{k=K}^{ \min\left \{ M,n \right \}} \left  (\begin{matrix}n\\k\end{matrix} \right ) \left  (\begin{matrix}N-n\\M-k\end{matrix} \right ).' class='latex' /></p>
<p style="text-align: left;">This is all review from the earlier posts, and does not take into account the effect of guessing.  Let us now imagine how we can include this refinement into the model.</p>
<p style="text-align: left;">Intuitively, if we are allowed to guess, then the probability of our being able to pass should increase.  To make things as simple as possible, let&#8217;s assume that if you don&#8217;t know the answer to a question, you have a probability <em>p</em> of guessing correctly &#8211; in other words, the probability of a correct answer is the same for each question.  Let&#8217;s also assume that the probability of guessing correctly is independent of the number of questions on the exam that you can answer without guessing (we&#8217;ll use this assumption in a moment).</p>
<p style="text-align: left;">In this modified situation, you will win if you can answer enough questions, or if you can guess enough correct answers in the event that you can&#8217;t answer the minimum number of questions with absolute certainty.  So, if <em>X </em>is at least <em>K</em>, nothing changes &#8211; you&#8217;ll simply answer the minimum number of questions and call it a day.  What&#8217;s new is the situation when <em>X &lt; K</em>, in which case you&#8217;ll need to guess in order to try and pass.</p>
<p style="text-align: left;">Roughly speaking, then, the probability of passing is equal to <em>P(X <span style="text-decoration: underline;">&gt;</span> K) </em>+ <em>P(X &lt; K</em> and you guess correctly enough times).  How many times is &#8220;enough&#8221;?  Well, <em>X</em> plus the number of correct guesses must be at least <em>K</em>.  Considering the cases <em>X = </em>0, 1, &#8230;, <em>K</em> &#8211; 1 separately, we can rewrite this as</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%5Cgeq%20K%29%20%2B%20%5Csum_%7Bi%3D0%7D%5E%7BK-1%7DP%5Cbegin%7Bpmatrix%7D%20X%20%3D%20i%5C%20%5Ctextup%7Band%20you%20guess%20at%20least%20%5Ctextit%7BK%20-%20i%7D%7D%5C%5C%5Ctextup%7Bof%20the%20other%20%5Ctextit%7BM%20-%20i%7D%20questions%20correctly%7D%20%5Cend%7Bpmatrix%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X\geq K) + \sum_{i=0}^{K-1}P\begin{pmatrix} X = i\ \textup{and you guess at least \textit{K - i}}\\\textup{of the other \textit{M - i} questions correctly} \end{pmatrix}.' title='P(X\geq K) + \sum_{i=0}^{K-1}P\begin{pmatrix} X = i\ \textup{and you guess at least \textit{K - i}}\\\textup{of the other \textit{M - i} questions correctly} \end{pmatrix}.' class='latex' /></p>
<p style="text-align: left;">Since the value of <em>X</em> is independent of the number of correct guesses you&#8217;ll make, this can be written as</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%5Cgeq%20K%29%20%2B%20%5Csum_%7Bi%3D0%7D%5E%7BK-1%7DP%28X%3Di%29P%5Cbegin%7Bpmatrix%7D%20%5Ctextup%7Byou%20guess%20at%20least%20%5Ctextit%7BK%20-%20i%7D%20of%20the%7D%5C%5C%5Ctextup%7Bother%20%5Ctextit%7BM%20-%20i%7D%20questions%20correctly%7D%20%5Cend%7Bpmatrix%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)P\begin{pmatrix} \textup{you guess at least \textit{K - i} of the}\\\textup{other \textit{M - i} questions correctly} \end{pmatrix}.' title='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)P\begin{pmatrix} \textup{you guess at least \textit{K - i} of the}\\\textup{other \textit{M - i} questions correctly} \end{pmatrix}.' class='latex' /></p>
<p style="text-align: left;">Moreover, since we want the number of correct guesses to be between <em>K &#8211; i</em> and <em>M &#8211; i</em>, we can write the above as</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%5Cgeq%20K%29%20%2B%20%5Csum_%7Bi%3D0%7D%5E%7BK-1%7DP%28X%3Di%29%5Csum_%7Bj%3DK-i%7D%5E%7BM-i%7DP%5Cleft%20%28%20j%5C%20%5Ctextup%7Bcorrect%20guesses%20out%20of%7D%5C%20M-i%5Cright%20%29.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)\sum_{j=K-i}^{M-i}P\left ( j\ \textup{correct guesses out of}\ M-i\right ).' title='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)\sum_{j=K-i}^{M-i}P\left ( j\ \textup{correct guesses out of}\ M-i\right ).' class='latex' /></p>
<p style="text-align: left;">Now, the probability occurring in the sum over <em>j</em> should hopefully look familiar to anyone with a basic background in probability.  The number of successes out of a fixed number of trials given that the probability of success is some number <em>p</em> follows the <a href="http://en.wikipedia.org/wiki/Binomial_distribution">Binomial distribution</a>, one of the first probability distributions encountered in any course in probability or statistics.  In particular, since we&#8217;ve said that the probability of a correct guess is <em>p</em>, knowledge of the binomial distribution tells us that</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%5Cleft%20%28%20j%5C%20%5Ctextup%7Bcorrect%20guesses%20out%20of%7D%5C%20M-i%5Cright%20%29%20%3D%20%5Cbinom%7BM-i%7D%7Bj%7Dp%5Ej%281-p%29%5E%7BM-i-j%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P\left ( j\ \textup{correct guesses out of}\ M-i\right ) = \binom{M-i}{j}p^j(1-p)^{M-i-j}.' title='P\left ( j\ \textup{correct guesses out of}\ M-i\right ) = \binom{M-i}{j}p^j(1-p)^{M-i-j}.' class='latex' /></p>
<p style="text-align: left;">In summary, the probability of passing is</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=P%28X%5Cgeq%20K%29%20%2B%20%5Csum_%7Bi%3D0%7D%5E%7BK-1%7DP%28X%3Di%29%5Csum_%7Bj%3DK-i%7D%5E%7BM-i%7D%5Cbinom%7BM-i%7D%7Bj%7Dp%5Ej%281-p%29%5E%7BM-i-j%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}.' title='P(X\geq K) + \sum_{i=0}^{K-1}P(X=i)\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}.' class='latex' /></p>
<p style="text-align: left;">If we want a more explicit formula, we can also use our knowledge of the probability distribution for <em>X</em>.  Also, notice that <em>P</em>(<em>X = i</em>) is 0 if <em>n</em> &lt; <em>i </em>(the number of questions on the exam for which you know the answer can&#8217;t exceed the number of questions in total for which you know the answer), so we can write the probability of success in two ways, depending on whether <em>n &lt; K </em>or <em>n </em><span style="text-decoration: underline;">&gt;</span> <em>K</em>.</p>
<p style="text-align: left;">If <em>n</em> &lt; <em>K</em>, then the probability of passing becomes</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cbinom%7BN%7D%7BM%7D%5E%7B-1%7D%5Csum_%7Bi%3D0%7D%5E%7Bn%7D%5Cbinom%7Bn%7D%7Bi%7D%5Cbinom%7BN-n%7D%7BM-i%7D%5Csum_%7Bj%3DK-i%7D%5E%7BM-i%7D%5Cbinom%7BM-i%7D%7Bj%7Dp%5Ej%281-p%29%5E%7BM-i-j%7D.&#038;bg=T&#038;fg=000000&#038;s=0' alt='\binom{N}{M}^{-1}\sum_{i=0}^{n}\binom{n}{i}\binom{N-n}{M-i}\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}.' title='\binom{N}{M}^{-1}\sum_{i=0}^{n}\binom{n}{i}\binom{N-n}{M-i}\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}.' class='latex' /></p>
<p style="text-align: left;">In the case that <em>n <span style="text-decoration: underline;">&gt;</span> K</em>, we have a contribution from the <em>P</em>(<em>X <span style="text-decoration: underline;">&gt;</span> K</em>) term, and so the total probability is</p>
<p style="text-align: center;"><img src='http://s.wordpress.com/latex.php?latex=%5Cbegin%7Bmatrix%7D%5Cbinom%7BN%7D%7BM%7D%5E%7B-1%7D%5Csum_%7Bk%3DK%7D%5E%7B%5Cmin%7B%28M%2Cn%29%7D%7D%5Cbinom%7Bn%7D%7Bk%7D%5Cbinom%7BN-n%7D%7BM-k%7D%2B%5C%5C%5Cbinom%7BN%7D%7BM%7D%5E%7B-1%7D%5Csum_%7Bi%3D0%7D%5E%7BK-1%7D%5Cbinom%7Bn%7D%7Bi%7D%5Cbinom%7BN-n%7D%7BM-i%7D%5Csum_%7Bj%3DK-i%7D%5E%7BM-i%7D%5Cbinom%7BM-i%7D%7Bj%7Dp%5Ej%281-p%29%5E%7BM-i-j%7D.%20%5Cend%7Bmatrix%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\begin{matrix}\binom{N}{M}^{-1}\sum_{k=K}^{\min{(M,n)}}\binom{n}{k}\binom{N-n}{M-k}+\\\binom{N}{M}^{-1}\sum_{i=0}^{K-1}\binom{n}{i}\binom{N-n}{M-i}\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}. \end{matrix}' title='\begin{matrix}\binom{N}{M}^{-1}\sum_{k=K}^{\min{(M,n)}}\binom{n}{k}\binom{N-n}{M-k}+\\\binom{N}{M}^{-1}\sum_{i=0}^{K-1}\binom{n}{i}\binom{N-n}{M-i}\sum_{j=K-i}^{M-i}\binom{M-i}{j}p^j(1-p)^{M-i-j}. \end{matrix}' class='latex' /></p>
<p style="text-align: left;">This is all well and good (and agrees with what commenter Scott derived in the comments of the Mind Your Decisions post), but what does it say about our example from last time (where <em>N </em>= 100, <em>M</em> = 10 and <em>K </em>= 6)?  As before, here are some graphs of the probability of success as a function of how many questions you can answer.  Note that any such graph depends on the probability <em>p</em>.  So, let&#8217;s illustrate two examples:</p>
<p style="text-align: left;">Case 1: <em>p</em> is a fixed value.  Here are the graphs corresponding to <em>p </em>= 0, <em>p </em>= .25, <em>p</em> = .375, <em>p</em> = .5, and <em>p</em> = .75 (i.e. the chances of you guessing correctly are either 25%, 37.5% 50%, or 75% &#8211; note that the case of <em>p</em> = 0 corresponds to the previous case where guessing isn&#8217;t a factor).</p>
<p style="text-align: left;"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/01/examgraph1.png"><img class="aligncenter size-full wp-image-1054" title="examgraph1" src="http://www.mathgoespop.com/wp-content/uploads/2011/01/examgraph1.png" alt="" width="646" height="430" /></a>Some highlights &#8211; without guessing, you need to know the answers to 55 questions in order to have at least 50% chance of passing.  With a 25% chance of guessing correctly, you only need to know the answers to 40 questions.  At 37.5%, the number of questions decreases to 28, at 50% it drops to 10 questions, and if you have a 75% chance of answering correctly, you have over a 90% chance of passing without knowing any answers at all!  If you want at least an 80% chance of passing, the number of answers becomes 67 (<em>p</em> = 0), 56 (<em>p</em> = .25), 48 (<em>p</em> = .375), and 35 (<em>p</em> = .5).</p>
<p style="text-align: left;">Case 2: <em>p</em> increases with <em>n</em>.  It seems reasonable to assume that the more answers you know, the better your chances of correctly guessing the answer to a question you don&#8217;t know, since you will be more knowledgeable in general.  In this particular example, I&#8217;ve taken <em>p</em> to equal <em>n</em>/<em>N</em> (in this case <em>n</em>/100).  Note that with this choice, initially the probability of success will be 0, but as <em>n</em> grows the probability of success should grow relatively rapidly.</p>
<p style="text-align: left;"><a href="http://www.mathgoespop.com/wp-content/uploads/2011/01/examgraph2.png"><img class="aligncenter size-full wp-image-1055" title="examgraph2" src="http://www.mathgoespop.com/wp-content/uploads/2011/01/examgraph2.png" alt="" width="645" height="430" /></a>The above graph quantifies the above heuristics.  Note that the red line grows very rapidly, so that the probability of success is greater than 50% after memorizing 33 questions, more than 80% after 43 questions, and over 95% after slightly over half of the questions (53).</p>
<p style="text-align: left;">So there you have it.  If you are feeling lazy the next time you have to prepare for an exam, hopefully this will provide you some guidance as to the minimum amount of work you can do while still being reasonably confident that you won&#8217;t fail.</p>
<p style="text-align: left;">Hope you all have a great weekend!</p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2011/01/test-taking-part-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Addendum to Math Gets Around: The Humanities</title>
		<link>http://www.mathgoespop.com/2010/12/humanities2.html</link>
		<comments>http://www.mathgoespop.com/2010/12/humanities2.html#comments</comments>
		<pubDate>Fri, 17 Dec 2010 16:58:16 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Math Gets Around]]></category>
		<category><![CDATA[combinatorics]]></category>
		<category><![CDATA[exams]]></category>
		<category><![CDATA[immigration]]></category>
		<category><![CDATA[probability]]></category>
		<category><![CDATA[the simpsons]]></category>

		<guid isPermaLink="false">http://www.mathgoespop.com/?p=981</guid>
		<description><![CDATA[<p>Last week we discussed an example of when a mathematical background might prove useful even in the least quantitative of liberal arts courses.  More specifically, we asked the question: if a teacher gives you a list of N questions, tells you that M will be on an exam, and you must answer K of the questions given <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mathgoespop.com/2010/12/humanities2.html">Addendum to Math Gets Around: The Humanities</a></span>]]></description>
			<content:encoded><![CDATA[<p>Last week we <a href="http://www.mathgoespop.com/2010/12/humanities.html">discussed</a> an example of when a mathematical background might prove useful even in the least quantitative of liberal arts courses.  More specifically, we asked the question: if a teacher gives you a list of <em>N</em> questions, tells you that <em>M</em> will be on an exam, and you must answer <em>K</em> of the questions given on the exam, what&#8217;s the minimum number of questions you should prepare to guarantee that you will be able to answer <em>K</em> of the questions on the exam?  (Answer: <em>N + K &#8211; M.</em>)<em> </em>We also looked at the question probabilistically &#8211; namely, we saw that of the questions appearing on the exam, the number that you&#8217;ve prepared for follows a <a href="http://en.wikipedia.org/wiki/Hypergeometric_distribution">hypergeometric distribution</a>.</p>
<p>As a concrete example I considered the case <em>N</em> = 6, <em>M</em> = 5, <em>K = </em>3 &#8211; in this case, the minimum number of questions you should prepare to guarantee that you can answer 3 of 5 problems on the exam is 4, and we saw that if you only prepare 3 questions, you have a 50% chance of those 3 questions appearing on the list of 5.</p>
<p>Late last week, however, I was made aware of another example, one for which the probabilities might prove more interesting (since there are more cases to consider).  Specifically, let us consider the case of a person studying to become a U.S. citizen.  As part of this process, one must submit to an interview in which one is asked 10 questions, and must answer 6 of those 10 questions correctly.  However, the potential list of questions is made available to people beforehand; there are 100 questions from which the 10 questions can be drawn.  In other words, we have <em>N</em> = 100, <em>M</em> = 10, and <em>K</em> = 6.</p>
<p>In this case, to guarantee that you will be able to answer 6 of the 10 questions presented, our analysis from last time tells you that you should prepare 100 + 6 &#8211; 10 = 96 of the questions.  Indeed, this makes sense, since the worst that can happen is that the 4 questions you don&#8217;t prepare happen to be precisely 4 of the 10 questions you are asked in the interview.  This also reflects the fact that the closer <em>M</em> is to <em>K</em>, the more questions the test taker will have to prepare (note that if <em>M</em> were closer to <em>N</em>, say <em>M</em> = 90, the test taker would only have to prepare 16 questions).</p>
<p>Still, preparing 96 of the questions may seem like a little much, especially since only 10 questions will come up in the interview.  So, let&#8217;s see what happens if someone prepares for fewer than 96 questions.  Obviously one should know how to answer at least 6 of the questions, but what about values between 6 and 96?﻿</p>
<p>Here is a graph showing the probability that one will pass the interview given that one has learned the answer to <em>n</em> questions, for some <em>n</em> between 6 and 96.<a href="http://www.mathgoespop.com/wp-content/uploads/2010/12/Picture-11.png"><img class="aligncenter size-full wp-image-985" title="CitizenGraph" src="http://www.mathgoespop.com/wp-content/uploads/2010/12/Picture-11.png" alt="" width="600" height="383" /></a>This graph tells you that, for example, even if one only had time to learn the answers to 73 out of the 100 questions, one&#8217;s chances of passing the exam would still be over 90%.  Those are pretty good odds, for only learning the answers to roughly three quarters of the questions.  On the other hand, one needs to learn the answers to 37 questions before one&#8217;s odds of passing rise above 10%, so it&#8217;s certainly not likely that someone will pass by learning the answers to only a handful of questions (which is probably what the government intends).</p>
<div id="attachment_988" class="wp-caption aligncenter" style="width: 411px"><a href="http://en.wikipedia.org/wiki/Much_Apu_About_Nothing"><img class="size-full wp-image-988" title="Picture 2" src="http://www.mathgoespop.com/wp-content/uploads/2010/12/Picture-2.png" alt="" width="401" height="315" /></a><p class="wp-caption-text">If only Apu had known of these findings, perhaps he could have saved himself some trouble.</p></div>
<p>Anyway, I just wanted to highlight another example where these ideas apply.  If you can think of any others, let me know!  Also, if you are interested in the content of the 100 questions that can be asked of our future citizens, you can find the full list (along with acceptable answers) <a href="http://www.immihelp.com/citizenship/naturalization-civics-test-questions.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mathgoespop.com/2010/12/humanities2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

