{"id":26425,"date":"2015-10-30T19:32:03","date_gmt":"2015-10-31T00:32:03","guid":{"rendered":"http:\/\/blogs.ams.org\/mathgradblog\/?p=26425"},"modified":"2015-11-01T22:35:03","modified_gmt":"2015-11-02T03:35:03","slug":"math-riddles","status":"publish","type":"post","link":"https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/30\/math-riddles\/","title":{"rendered":"A Few Math Riddles"},"content":{"rendered":"<p class=\"p1\">Hello, and welcome! I wanted to make my first post for this blog about something light, so I thought I would share three of my favorite \u201cover-the-dinner-table\u201d math riddles\/problems. These are all in the folklore, but you might not have heard of them. (I certainly didn\u2019t make them up myself &#8211; they were told to me at various times during casual conversation.) I have posted the problems <em>sans<\/em> solutions to increase discussion!<\/p>\n<p class=\"p1\"><!--more--><\/p>\n<p class=\"p1\">I\u2019ll begin with a classic:<\/p>\n<p class=\"p1\">THE HATS PROBLEM<\/p>\n<p class=\"p1\">Ten mathematicians are captured by a madman and are imprisoned in a cell. The madman tells them that tomorrow, they must play a (possibly fatal) game. The game proceeds as follows:<\/p>\n<p class=\"p1\">The ten mathematicians stand in a line, one behind the other, all facing the same direction. The madman places a single black or white hat on each person\u2019s head. The line is so arranged that each person can see everyone in front of him or her (as well as their hat colors) but cannot turn around and cannot see their own hat. Starting from the back of the line (i.e., the person who can see nine people) and proceeding to the front, the madman gives each mathematician the opportunity to say either \u201cblack\u201d or \u201cwhite\u201d. If the spoken color matches the color of hat on their head, then that mathematician goes free; otherwise, he or she is immediately executed.<\/p>\n<p class=\"p1\">To heighten the suspense, the madman declares that everyone will be able to hear the \u201cblack\u201d or \u201cwhite\u201d choices (as well as if the person in question lives or dies). The question is: how can the mathematicians devise a strategy to guarantee the safety of some or most of their group?<\/p>\n<p class=\"p1\">For example, the mathematicians could pair up into five groups of two: the 10th and 9th places in line, the 8th and 7th places, and so on, with the rearmost person in each pair saying the color of the hat in front of him. The frontmost person in each pair then knows their hat color and can say it in order to go free. With this strategy, five people are guaranteed to live. Can you do better?<\/p>\n<p class=\"p1\">Now, another problem:<\/p>\n<p class=\"p1\">A DICE PROBLEM<\/p>\n<p class=\"p1\">A hundred computer scientists are playing a game. (They are computer scientists because I heard this riddle at a computer science conference dinner.) Each person simultaneously rolls a regular six-sided die. The participants are sitting in a circle in such a way so that each of them cannot see their own die roll, but can see the rolls of all ninety-nine of their co-workers. After all the dice rolls, each of the hundred people writes down a number from one through six. The participants may choose their number based on the dice rolls of everyone else, but are not allowed to communicate in any way or to see what the others are writing.<\/p>\n<p class=\"p1\">The hundred numbers are then simultaneously examined. The group wins if every person correctly guessed the number of his or her own die; if even one person writes down a number that does not mach their die roll, the group loses. Can the group devise a strategy which gives them a decent shot at winning?<\/p>\n<p class=\"p1\">At first glance it might seem that the group can\u2019t do better than guessing randomly (after all, seeing everyone else\u2019s dice rolls doesn\u2019t help with guessing your own). To convince you that the all-random strategy can be beaten, let\u2019s take a simpler version of the game with only two people, in which guessing randomly evidently gives a (1\/6)^2 = 1\/36 chance of winning. Consider, however, the following perverse strategy: each participant writes down the die roll of the <em>other<\/em> person. Since this strategy wins exactly when the two dice rolls are the same, we now have a 1\/6 chance of winning the game!<\/p>\n<p class=\"p1\">This two-person strategy isn\u2019t the one that generalizes the most easily to the 100-person game. Can you find &#8211; with proof! &#8211; an optimal strategy in the general case?<\/p>\n<p class=\"p1\">Finally, my favorite:<\/p>\n<p class=\"p1\">THE FIVE-CARD TRICK<\/p>\n<p class=\"p1\">You and your friend are attempting to work out how to perform a magic trick. The setup of the trick is as follows: you (the assistant) will be given five cards, randomly selected from a standard deck of 52 cards. Initially, your friend (the magician) is not allowed to see any of the five cards. You are allowed to select any four of the cards in your hand and lay them down on the table, in any order you choose. (That is, you remove four of the five cards in your hand and show them, one after one, to your friend.) Your friend is then supposed to (\u201cmagically\u201d) guess the remaining fifth card. How can you devise a communication strategy by which your friend can always guess correctly?<\/p>\n<p class=\"p1\">For example, one way to approach the problem might be to agree on an ordering of the 52 cards beforehand. Then showing your friend a sequence of four cards is the same as communicating a permutation of (1, 2, 3, 4) (simply by mapping the lowest of the four cards to 1, the second lowest to 2, and so on). Unfortunately this doesn\u2019t seem to be enough information, because there are 24 such permutations and 48 possibilities for the fifth card! (Your friend knows the fifth card is not any of the four cards already shown, giving the number 52 &#8211; 4 = 48.) What to do?<\/p>\n<p class=\"p1\">Hint: you can get the solution started by observing that there are five cards but four suits, and thus two cards of the same suit. Since you (the assistant) can choose which card is the fifth card, you can choose one of these two as the fifth card and use the other card to communicate the suit.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>Hello, and welcome! I wanted to make my first post for this blog about something light, so I thought I would share three of my favorite \u201cover-the-dinner-table\u201d math riddles\/problems. These are all in the folklore, but you might not have &hellip; <a href=\"https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/30\/math-riddles\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" data-url=https:\/\/blogs.ams.org\/mathgradblog\/2015\/10\/30\/math-riddles\/><\/div>\n","protected":false},"author":99,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12,13],"tags":[],"class_list":["post-26425","post","type-post","status-publish","format-standard","hentry","category-math","category-math-games"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3gbww-6Sd","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/users\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/comments?post=26425"}],"version-history":[{"count":4,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26425\/revisions"}],"predecessor-version":[{"id":26429,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/posts\/26425\/revisions\/26429"}],"wp:attachment":[{"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/media?parent=26425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/categories?post=26425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ams.org\/mathgradblog\/wp-json\/wp\/v2\/tags?post=26425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}