{"id":3413,"date":"2022-07-22T16:30:43","date_gmt":"2022-07-22T21:30:43","guid":{"rendered":"https:\/\/laurentlessard.com\/bookproofs\/?p=3413"},"modified":"2022-07-22T16:34:44","modified_gmt":"2022-07-22T21:34:44","slug":"can-you-keep-your-marbles","status":"publish","type":"post","link":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/","title":{"rendered":"Can you keep your marbles?"},"content":{"rendered":"<body><p>This week\u2019s <a href=\"https:\/\/fivethirtyeight.com\/features\/can-you-keep-your-marbles\/\">Riddler classic<\/a> is a logic problem.<\/p>\n<blockquote><p>\nThere are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you\u2019d settle for some combination of red, green or blue. However, someone switched around the labels on all four bags so that every single bag is incorrectly labeled. You may sample two marbles out of any of the bags, one at a time. Is there a picking strategy that guarantees that you will buy two non-assorted bags?\n<\/p><\/blockquote>\n<p>My solution:<br>\n<a href=\"javascript:Solution('soln_keep_your_marbles','toggle_keep_your_marbles')\" id=\"toggle_keep_your_marbles\">[Show Solution]<\/a><\/p>\n<div id=\"soln_keep_your_marbles\" style=\"display: none\">\n<p>Here is a strategy that works.<\/p>\n<ol>\n<li> Pick a marble from the bag labeled ASSORTED. Without loss of generality, suppose this marble is red. Since all bags are incorrectly labeled, this bag cannot contain assorted marbles, and is therefore the red marble bag.\n<\/li><li> Pick a marble from the bag with the same label as the marble color we found in the previous step. In this case, the bag labeled RED. This bag can contain a red, blue, or green marble.\n<ul>\n<li> If we find a red marble in the RED bag, then this bag must contain assorted marbles because we already identified the red marble bag. So the other three bags (ASSORTED, BLUE, GREEN) must contain the non-assorted marbles, so buy any two of them.\n<\/li><li> If we find a blue marble in the RED bag, then this bag must contain blue or assorted. Let\u2019s ask the question: Where are the green marbles? They can\u2019t be in the ASSORTED bag (since it contains red), or the RED bag (since we pulled a blue marble from it), or the GREEN bag (since all bags are incorrectly labeled). This leaves the BLUE bag as the only possibility. Therefore, we can safely buy the bags labeled ASSORTED and BLUE.\n<\/li><li> If we find a green marble in the RED bag, then this bag must contain green or assorted. Similarly to the previous case, the blue marbles must be in the GREEN bag. Therefore, we can safely buy the bags labeled ASSORTED and GREEN.\n<\/li><\/ul>\n<\/li><\/ol><\/div>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>This week\u2019s Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you\u2019d settle for some combination of red, green or blue. However, someone switched around the labels on all four &hellip; <a href=\"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Can you keep your marbles?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[23,2],"class_list":["post-3413","post","type-post","status-publish","format-standard","hentry","category-riddler","tag-logic","tag-riddler"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"This week&#039;s Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you&#039;d settle for some combination of red, green or blue. However, someone switched around the labels on all four\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Laurent\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Book Proofs - A blog for mathematical riddles, puzzles, and elegant proofs\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Can you keep your marbles? - Book Proofs\" \/>\n\t\t<meta property=\"og:description\" content=\"This week&#039;s Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you&#039;d settle for some combination of red, green or blue. However, someone switched around the labels on all four\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-07-22T21:30:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-22T21:34:44+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Can you keep your marbles? - Book Proofs\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This week&#039;s Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you&#039;d settle for some combination of red, green or blue. However, someone switched around the labels on all four\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#blogposting\",\"name\":\"Can you keep your marbles? - Book Proofs\",\"headline\":\"Can you keep your marbles?\",\"author\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/author\\\/laurentlessard\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/#organization\"},\"datePublished\":\"2022-07-22T16:30:43-05:00\",\"dateModified\":\"2022-07-22T16:34:44-05:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#webpage\"},\"articleSection\":\"The Riddler, logic, Riddler\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/category\\\/riddler\\\/#listItem\",\"name\":\"The Riddler\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/category\\\/riddler\\\/#listItem\",\"position\":2,\"name\":\"The Riddler\",\"item\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/category\\\/riddler\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#listItem\",\"name\":\"Can you keep your marbles?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#listItem\",\"position\":3,\"name\":\"Can you keep your marbles?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/category\\\/riddler\\\/#listItem\",\"name\":\"The Riddler\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/#organization\",\"name\":\"Book Proofs\",\"description\":\"A blog for mathematical riddles, puzzles, and elegant proofs\",\"url\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/author\\\/laurentlessard\\\/#author\",\"url\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/author\\\/laurentlessard\\\/\",\"name\":\"Laurent\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d179b3e810347763b0da7d94548624f7326a3b71d146194946bba92427ff8fb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Laurent\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#webpage\",\"url\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/\",\"name\":\"Can you keep your marbles? - Book Proofs\",\"description\":\"This week's Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you'd settle for some combination of red, green or blue. However, someone switched around the labels on all four\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/can-you-keep-your-marbles\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/author\\\/laurentlessard\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/author\\\/laurentlessard\\\/#author\"},\"datePublished\":\"2022-07-22T16:30:43-05:00\",\"dateModified\":\"2022-07-22T16:34:44-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/#website\",\"url\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/\",\"name\":\"Book Proofs\",\"description\":\"A blog for mathematical riddles, puzzles, and elegant proofs\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/laurentlessard.com\\\/bookproofs\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Can you keep your marbles? - Book Proofs","description":"This week's Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you'd settle for some combination of red, green or blue. However, someone switched around the labels on all four","canonical_url":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#blogposting","name":"Can you keep your marbles? - Book Proofs","headline":"Can you keep your marbles?","author":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/author\/laurentlessard\/#author"},"publisher":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/#organization"},"datePublished":"2022-07-22T16:30:43-05:00","dateModified":"2022-07-22T16:34:44-05:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#webpage"},"isPartOf":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#webpage"},"articleSection":"The Riddler, logic, Riddler"},{"@type":"BreadcrumbList","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs#listItem","position":1,"name":"Home","item":"https:\/\/laurentlessard.com\/bookproofs","nextItem":{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/#listItem","name":"The Riddler"}},{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/#listItem","position":2,"name":"The Riddler","item":"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/","nextItem":{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#listItem","name":"Can you keep your marbles?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#listItem","position":3,"name":"Can you keep your marbles?","previousItem":{"@type":"ListItem","@id":"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/#listItem","name":"The Riddler"}}]},{"@type":"Organization","@id":"https:\/\/laurentlessard.com\/bookproofs\/#organization","name":"Book Proofs","description":"A blog for mathematical riddles, puzzles, and elegant proofs","url":"https:\/\/laurentlessard.com\/bookproofs\/"},{"@type":"Person","@id":"https:\/\/laurentlessard.com\/bookproofs\/author\/laurentlessard\/#author","url":"https:\/\/laurentlessard.com\/bookproofs\/author\/laurentlessard\/","name":"Laurent","image":{"@type":"ImageObject","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1d179b3e810347763b0da7d94548624f7326a3b71d146194946bba92427ff8fb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Laurent"}},{"@type":"WebPage","@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#webpage","url":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/","name":"Can you keep your marbles? - Book Proofs","description":"This week's Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you'd settle for some combination of red, green or blue. However, someone switched around the labels on all four","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/#website"},"breadcrumb":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/#breadcrumblist"},"author":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/author\/laurentlessard\/#author"},"creator":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/author\/laurentlessard\/#author"},"datePublished":"2022-07-22T16:30:43-05:00","dateModified":"2022-07-22T16:34:44-05:00"},{"@type":"WebSite","@id":"https:\/\/laurentlessard.com\/bookproofs\/#website","url":"https:\/\/laurentlessard.com\/bookproofs\/","name":"Book Proofs","description":"A blog for mathematical riddles, puzzles, and elegant proofs","inLanguage":"en-US","publisher":{"@id":"https:\/\/laurentlessard.com\/bookproofs\/#organization"}}]},"og:locale":"en_US","og:site_name":"Book Proofs - A blog for mathematical riddles, puzzles, and elegant proofs","og:type":"article","og:title":"Can you keep your marbles? - Book Proofs","og:description":"This week's Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you'd settle for some combination of red, green or blue. However, someone switched around the labels on all four","og:url":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/","article:published_time":"2022-07-22T21:30:43+00:00","article:modified_time":"2022-07-22T21:34:44+00:00","twitter:card":"summary_large_image","twitter:title":"Can you keep your marbles? - Book Proofs","twitter:description":"This week's Riddler classic is a logic problem. There are four enormous bags of marbles. They are labeled RED, GREEN, BLUE, and ASSORTED. You want to buy two bags of marbles that are not assorted, and you'd settle for some combination of red, green or blue. However, someone switched around the labels on all four"},"aioseo_meta_data":{"post_id":"3413","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-06-01 20:10:14","updated":"2026-06-07 14:53:10","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/laurentlessard.com\/bookproofs\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/\" title=\"The Riddler\">The Riddler<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCan you keep your marbles?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/laurentlessard.com\/bookproofs"},{"label":"The Riddler","link":"https:\/\/laurentlessard.com\/bookproofs\/category\/riddler\/"},{"label":"Can you keep your marbles?","link":"https:\/\/laurentlessard.com\/bookproofs\/can-you-keep-your-marbles\/"}],"_links":{"self":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/comments?post=3413"}],"version-history":[{"count":5,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3413\/revisions"}],"predecessor-version":[{"id":3419,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3413\/revisions\/3419"}],"wp:attachment":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/media?parent=3413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/categories?post=3413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/tags?post=3413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}