<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Quant’s Substack]]></title><description><![CDATA[My personal Substack]]></description><link>https://puzzlesquant.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!GSU7!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b72fb74-1c69-43fa-b310-8ad1a6e4d0f5_144x144.png</url><title>Quant’s Substack</title><link>https://puzzlesquant.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sun, 05 Jul 2026 20:44:14 GMT</lastBuildDate><atom:link href="https://puzzlesquant.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Quant Puzzles]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[puzzlesquant@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[puzzlesquant@substack.com]]></itunes:email><itunes:name><![CDATA[Quant Puzzles]]></itunes:name></itunes:owner><itunes:author><![CDATA[Quant Puzzles]]></itunes:author><googleplay:owner><![CDATA[puzzlesquant@substack.com]]></googleplay:owner><googleplay:email><![CDATA[puzzlesquant@substack.com]]></googleplay:email><googleplay:author><![CDATA[Quant Puzzles]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[The Two Envelopes]]></title><description><![CDATA[This is a level 3 question which should take approx. 10 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-two-envelopes</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-two-envelopes</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 02:28:29 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/8abd89e8-085d-4c75-9e6f-eab86ca3d2a9_552x320.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A banker, who is in a very good mood, offers the following game to his customer. He fills two checks in customer&#8217;s name with two different sums. He places each check in an envelope. The two envelopes are identical. If the customer has to choose one of the envelopes and open it, then he gains on average, (M1 +M2)/2 where M1 and M2 are the sums on the checks. The banker offers him something different: the customer must choose one of the envelopes, open it, look at the sum on the check it contains, and choose whether to keep the sum or open the other envelope to cash the other sum. </p><p>Is there a strategy that allows the customer to gain on average more than (M1 +M2)/2?</p><p><em><strong>(It seems like there wouldn&#8217;t be, since the customer has no information about M1 and M2 other than that both values are positive and different from one another. Nonetheless...)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!liBU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!liBU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 424w, https://substackcdn.com/image/fetch/$s_!liBU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 848w, https://substackcdn.com/image/fetch/$s_!liBU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 1272w, https://substackcdn.com/image/fetch/$s_!liBU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!liBU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png" width="586" height="298" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:298,&quot;width&quot;:586,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:48309,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!liBU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 424w, https://substackcdn.com/image/fetch/$s_!liBU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 848w, https://substackcdn.com/image/fetch/$s_!liBU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 1272w, https://substackcdn.com/image/fetch/$s_!liBU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed7ceb13-b695-477a-95dc-04475fcd3fbc_586x298.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>Start with two houses, then three houses, then four houses, and so on by numbering the houses in base 2.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>A natural strategy is to fix a threshold above which one is happy, for example $100, and to cash the first check if it is greater than $100, but otherwise to cash the other check.</p><p>If both sums M1 and M2 chosen by the banker are below $100, this strategy leads the client to always change envelopes. He will thus gain on average, (M1+M2)/2 . If both sums chosen by the banker are above $100, this strategy leads the client to never change envelopes. Thus, he wins, on average, (M1+M2)/2 . Finally, if M1 &lt; 100 &lt; M2 or the other way around, this strategy allows the client to always choose the envelope with the highest amount.</p><p>In the end, the strategy consisting of thresholding the amount one is happy with is only a good strategy if the threshold is between the two sums the banker chose. If we fix it arbitrarily, it is possible that it doesn&#8217;t land between the two checks and that the strategy is ineffective. To avoid this issue, we must choose the threshold at random, with a random variable X such that</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VXGh!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VXGh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 424w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 848w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 1272w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VXGh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png" width="458" height="54" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:54,&quot;width&quot;:458,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:17665,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VXGh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 424w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 848w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 1272w, https://substackcdn.com/image/fetch/$s_!VXGh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8d95754e-1c79-4d18-99fb-3603b42f012d_458x54.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>In other words, X is a random variable with a nonzero probability of landing in any interval of R+, such as an exponential law. In this manner, the client chooses the threshold at random with the random variable X, and he knows that sometimes, the chosen threshold will be in between the two sums chosen by the banker. In any case, he performs better than (M1+M2)/2 . His average gain is thus strictly better than (M1+M2)/2. We can compute the average gain G as a function of M1 and M2 and of</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!O8Pp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!O8Pp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 424w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 848w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 1272w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!O8Pp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png" width="244" height="40" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:40,&quot;width&quot;:244,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:10796,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!O8Pp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 424w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 848w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 1272w, https://substackcdn.com/image/fetch/$s_!O8Pp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3c77abb1-93ab-40b3-ac81-142503ede1ae_244x40.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_QIL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_QIL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 424w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 848w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 1272w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_QIL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png" width="462" height="70" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:70,&quot;width&quot;:462,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:21896,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_QIL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 424w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 848w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 1272w, https://substackcdn.com/image/fetch/$s_!_QIL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff2b5c6de-0525-4b14-a081-54d709f53d2f_462x70.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Mad Postman]]></title><description><![CDATA[This is a level 3 question which should take approx. 10 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-mad-postman</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-mad-postman</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 02:09:40 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/4cbf6755-de5f-4ba3-be2f-7cc5221e1a00_746x294.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In a small village, a road containing 100 houses loops back on itself: thus, house number 100 is next to house number 1. A mad postman delivers the mail. He begins by house number 2 and moves forward distributing the mail to every second house, leaving an empty mailbox each time. Thus he begins by distributing the number 2,4,...,100, then to house number 3, house number 7, house number 11, and so on. What house receives its mail last?</p><p><em><strong>(For example, with six houses, the mailman distributes the mail to house numbers 2, 4, and 6, then to number 3 (he skips number 1 and ignores number 2), number 1 (he ignores number 4 and skips number 5), and finally f inishes with number 5)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!i0kt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!i0kt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 424w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 848w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 1272w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!i0kt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png" width="664" height="288" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:288,&quot;width&quot;:664,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:75214,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!i0kt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 424w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 848w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 1272w, https://substackcdn.com/image/fetch/$s_!i0kt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa630af83-d99f-4a57-be00-1b3b8cafb156_664x288.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>Start with two houses, then three houses, then four houses, and so on by numbering the houses in base 2.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>It is house 73 that will get its mail last. Let us compute generally for n houses (n &gt;=2) which one gets its mail last. Let mn be the number of this house. By observing the small values of n (m2 = 1, m3 = 3, m4 = 1, m5 = 3,...) we can notice that the sequence will increase by taking only odd values until n before falling back to 1. It is not easy to write this as an explicit formula. This is because we aren&#8217;t working in the right base. Let us consider base 2 (see reminder 7); n is written as 1bp&#8722;1...b0 in base 2, with p&gt;=1 and bi taking value either 0 or 1. We will show, by induction on n&gt;=2, that in base 2, mn is written as bp&#8722;1...b01.</p><p>Induction Assume the property holds for some rank n&gt;=3 and show it holds at rank n+1. The postman delivers mail to house number 2. He must then deliver the mail to the n remaining houses. We can use the induction hypothesis if we renumber the houses beforehand as follows:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fEc6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fEc6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 424w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 848w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 1272w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fEc6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png" width="422" height="110" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1857994a-f1ce-471b-9002-67bb948cc791_422x110.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:110,&quot;width&quot;:422,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:25323,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fEc6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 424w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 848w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 1272w, https://substackcdn.com/image/fetch/$s_!fEc6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1857994a-f1ce-471b-9002-67bb948cc791_422x110.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>House number 3 becomes house number 1, number 4 becomes number 2, &#8230;, n + 1 becomes n - 1, and 1 becomes n. If mn = n, given the renumbering performed, mn+1 = 1. By uniqueness of the base 2 representation b0 = 1, b1 = b0, &#8230;, bp&#8722;1 = bp&#8722;2, and thus n = 1 . . . 12. In this case, n+1 = 10 . . . 02, and the induction property holds: mn+1 = 1. </p><p>If not, mn 6= n, and, given the numbering, mn+1 = mn + 2.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZVND!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZVND!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 424w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 848w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 1272w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZVND!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png" width="212" height="76" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/57610790-3102-480d-a2ae-019c99817464_212x76.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:76,&quot;width&quot;:212,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:13336,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZVND!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 424w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 848w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 1272w, https://substackcdn.com/image/fetch/$s_!ZVND!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57610790-3102-480d-a2ae-019c99817464_212x76.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>n+1 has no more digits in base 2 than n, otherwise n = 1...12 = mn, which is forbidden. Therefore,</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Y3SG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Y3SG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 424w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 848w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 1272w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Y3SG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png" width="212" height="76" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:76,&quot;width&quot;:212,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:13892,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Y3SG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 424w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 848w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 1272w, https://substackcdn.com/image/fetch/$s_!Y3SG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd24e252b-c4b5-4dff-9901-66bce7426e2b_212x76.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>with the Bi taking values in {0, 1}.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IPjB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IPjB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 424w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 848w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 1272w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IPjB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png" width="340" height="224" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:224,&quot;width&quot;:340,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:48438,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IPjB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 424w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 848w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 1272w, https://substackcdn.com/image/fetch/$s_!IPjB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f8c9510-937b-4eec-b4f0-4eada6b29164_340x224.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Fgi9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Fgi9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 424w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 848w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 1272w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Fgi9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png" width="762" height="110" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:110,&quot;width&quot;:762,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:47539,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Fgi9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 424w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 848w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 1272w, https://substackcdn.com/image/fetch/$s_!Fgi9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc51bf392-0e32-4da9-9517-edb7072d49d8_762x110.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[How to Tile One’s Bathroom (3)]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/how-to-tile-ones-bathroom-3</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/how-to-tile-ones-bathroom-3</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 01:47:42 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/3d293c07-ac62-453e-8ecc-8f14b9e4ddff_222x212.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The floor of a different bathroom is a square consisting of 64 tiles. Following some work, the upper left corner tile is removed. The bathroom floor thus takes the shape below:Can the termite finish its meal by eating the central cube?</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!k4O3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!k4O3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 424w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 848w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 1272w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!k4O3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png" width="222" height="212" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:212,&quot;width&quot;:222,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:7316,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!k4O3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 424w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 848w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 1272w, https://substackcdn.com/image/fetch/$s_!k4O3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9b9e334-455f-4b69-9ef7-6092674e3bf7_222x212.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p>We wish to cover it with tiles in the shape of an elongated domino:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EOBB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EOBB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 424w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 848w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 1272w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EOBB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png" width="120" height="56" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:56,&quot;width&quot;:120,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:4548,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EOBB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 424w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 848w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 1272w, https://substackcdn.com/image/fetch/$s_!EOBB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa54fba94-2ed3-42e2-ba05-bbef81b4eff5_120x56.png 1456w" sizes="100vw"></picture><div></div></div></a></figure></div><p>Is it possible?</p><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One must color the tiles of the bathroom with three colors.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>It is impossible. Let us assume for contradiction that we have successfully paved the bathroom. We then paint the tiles as follows</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wIUM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wIUM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 424w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 848w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 1272w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wIUM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png" width="254" height="246" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:246,&quot;width&quot;:254,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:44312,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wIUM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 424w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 848w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 1272w, https://substackcdn.com/image/fetch/$s_!wIUM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9c9aeb97-44fd-4cd0-ae4e-ea159db6110c_254x246.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We notice that there are 22 white tiles, 21 gray tiles, and 20 black tiles. On the other hand, each domino-shaped tile must cover a white square, a gray square, and a black square. Thus, the numbers of white tiles, gray tiles, and black tiles must all be equal to each other. This result is a contradiction.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[How to Tile One’s Bathroom (2)]]></title><description><![CDATA[This is a level 3 question which should take approx. 10 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/how-to-tile-ones-bathroom-2</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/how-to-tile-ones-bathroom-2</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 01:41:39 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/4ddd80ae-611f-4491-b38a-2227f60e66cc_202x198.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The floor of a bathroom is a square consisting of 49 tiles. Following some work, the upper left corner tile is removed. The bathroom floor thus takes the shape below:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4go4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4go4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 424w, https://substackcdn.com/image/fetch/$s_!4go4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 848w, https://substackcdn.com/image/fetch/$s_!4go4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 1272w, https://substackcdn.com/image/fetch/$s_!4go4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4go4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png" width="196" height="196" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:196,&quot;width&quot;:196,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:6831,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4go4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 424w, https://substackcdn.com/image/fetch/$s_!4go4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 848w, https://substackcdn.com/image/fetch/$s_!4go4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 1272w, https://substackcdn.com/image/fetch/$s_!4go4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbbcbf76a-b1e4-4bab-93fa-dc93f4aa96dc_196x196.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p>We wish to cover it with tiles in the shape of an L, which we can also invert:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7-T5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7-T5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 424w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 848w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 1272w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7-T5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png" width="294" height="80" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:80,&quot;width&quot;:294,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:5409,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7-T5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 424w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 848w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 1272w, https://substackcdn.com/image/fetch/$s_!7-T5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa2893f51-c715-4d5c-a4f9-ec738af83420_294x80.png 1456w" sizes="100vw"></picture><div></div></div></a></figure></div><p>Is it possible?</p><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One must color the tiles of the bathroom column-wise.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>It is impossible. Let us assume for contradiction that we have successfully paved the bathroom. We then paint the tiles as follows:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VmaX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VmaX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 424w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 848w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 1272w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VmaX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png" width="246" height="212" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:212,&quot;width&quot;:246,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:31236,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VmaX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 424w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 848w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 1272w, https://substackcdn.com/image/fetch/$s_!VmaX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7bbbbee-47ad-4e77-ab67-06f9a0bcb4e2_246x212.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>We notice that there are 27 white tiles and 21 gray tiles. Each L-shaped tile covers three white tiles and one gray or the other way around. Let W be the number of L-shaped tiles that cover three white tiles and one gray and G the number of L-shaped tiles that cover three gray tiles and one white. We obtain the following system:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wPHY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wPHY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 424w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 848w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 1272w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wPHY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png" width="190" height="110" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:110,&quot;width&quot;:190,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:16578,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wPHY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 424w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 848w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 1272w, https://substackcdn.com/image/fetch/$s_!wPHY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22fbfd31-eb59-48a4-8c49-0311466a1bbe_190x110.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Solving this system, the only solution is W = 15/2 and G = 9/2 . This result is a contradiction since W and G must be whole numbers.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Seven Bridges of Königsberg]]></title><description><![CDATA[This is a level 3 question which should take approx. 10 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-seven-bridges-of-konigsberg</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-seven-bridges-of-konigsberg</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 01:33:36 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!0V4d!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The town of K&#246;nigsberg (today Kaliningrad, Russia), through which flows the river Pregolia, had seven bridges arranged in the following pattern:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0V4d!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0V4d!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 424w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 848w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 1272w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0V4d!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png" width="502" height="360" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:360,&quot;width&quot;:502,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:92535,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0V4d!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 424w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 848w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 1272w, https://substackcdn.com/image/fetch/$s_!0V4d!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe04f0c12-3713-4c4b-84fe-44a37d8cc827_502x360.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>If someone carefully chooses the starting point of their walk, is it possible for them to walk around town by crossing each of the seven bridges exactly once?</p><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>Think of graph theory.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>We can convince ourselves that there are no solutions by trying different routes. This is what we shall prove. To do so, we will need to use a bit of graph theory, created especially for this problem by Euler. This approach is very clever, yet very simple. The idea is to reduce the problem to connecting dots without lifting the pen off the paper. We give each part of town a number as follows:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oJMQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oJMQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 424w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 848w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 1272w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oJMQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png" width="344" height="274" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:274,&quot;width&quot;:344,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:78948,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oJMQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 424w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 848w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 1272w, https://substackcdn.com/image/fetch/$s_!oJMQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63f82ca7-2bd3-4fb6-9fab-f8ace4b1730a_344x274.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>If there is a bridge between two regions, we connect those regions with a line or a curve; the result is the following graph:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!3C18!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!3C18!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 424w, https://substackcdn.com/image/fetch/$s_!3C18!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 848w, https://substackcdn.com/image/fetch/$s_!3C18!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 1272w, https://substackcdn.com/image/fetch/$s_!3C18!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!3C18!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png" width="312" height="202" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:202,&quot;width&quot;:312,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:35126,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!3C18!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 424w, https://substackcdn.com/image/fetch/$s_!3C18!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 848w, https://substackcdn.com/image/fetch/$s_!3C18!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 1272w, https://substackcdn.com/image/fetch/$s_!3C18!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4fdc46c2-32ee-4daa-b012-9353bb63db8a_312x202.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>We then notice that finding a path that crosses each bridge exactly once boils down to finding a path linking the four vertices of the graph without lifting the pen up. One is easily convinced by trying that it is impossible, but it remains to prove it. To do so, we will use the following property:</p><p>If a graph can be drawn without lifting the pen, then it has at most two vertices with an odd number of edges.</p><p>Consider as an example the following graph:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-TV9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-TV9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 424w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 848w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 1272w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-TV9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png" width="312" height="302" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:302,&quot;width&quot;:312,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:46214,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-TV9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 424w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 848w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 1272w, https://substackcdn.com/image/fetch/$s_!-TV9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a75401a-552c-4e5d-a679-e62aa47b2413_312x302.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>On each of the four vertices, there are three edges: we say that each vertex is of degree three. Since 4 &gt; 2, it is impossible to draw this graph without lifting the pen.</p><p>Let us now prove the result. Consider a graph that we assume to be drawn without lifting the pen. It has a vertex from which we started drawing and a vertex where we finished drawing; the two vertices may be the same. We notice that all other vertices must be of even degree. Indeed, each time we draw through a vertex, we increase its degree by two, which makes the final degree even. Thus, there are indeed at most two vertices of odd degree.</p><p>Let us return to the bridge problem. All the vertices of the graph have an odd degree (3 for vertices 1, 2, and 4; 5 for vertex 3). It is thus impossible to draw without lifting the pen.</p><p>Do note that the converse of this result is true but it is somewhat more difficult to prove.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Die Hard]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/die-hard</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/die-hard</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 00:50:13 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/e0ece4e5-6f76-430a-99f1-a608ebfc7597_610x290.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A wine maker wants to draw 1 litre of wine from his barrel, which contains as much wine as necessary. He has on hand only a pitcher of p litres and a pitcher of q litres. They have no markings. We can suppose that p and q are coprime.</p><p>How can he obtain a litre from these two pitchers?</p><p><em><strong>(One could start by solving the simple case appearing in a famous blockbuster: p = 3 liters and q = 5 liters)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!TxBt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!TxBt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 424w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 848w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 1272w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!TxBt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png" width="610" height="290" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:290,&quot;width&quot;:610,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:56558,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!TxBt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 424w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 848w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 1272w, https://substackcdn.com/image/fetch/$s_!TxBt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3001242c-4e3e-4d1f-a223-cdb8334084ee_610x290.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>It suffices to pour the contents of one pitcher into the other and start this process over as many times as necessary. It remains to prove this result.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let us first solve the simple instance. Start by filling the 3 litre pitcher with wine from the barrel. Now fill the 5 litre pitcher with wine from the 3 litre pitcher. We fill up the 3 litre pitcher again and pour the wine from that into the 5 litre pitcher until it is full. The remainder in the 3 litre pitcher is exactly 1 litre.</p><p>Let us now move to the general case. The integers p and q are coprime, so by B&#233;zout&#8217;s lemma, there are two integers u, v such that up+vq = 1. Since p and q are positive, either u or v is negative. Let us assume that v is negative (the case for u negative follows in the same manner). We can then write up = 1+|v|q. It suffices to fill the q liter pitcher with up liters obtained by filling the p liter pitcher u times and emptying it into the other. Indeed, if we note r as the number of liters in the p liter pitcher after the procedure, we have up belongs to r [q], but up belongs to 1 [q], thus r belongs to 1 [q]. Since 0 &lt; r &lt; q, r = 1.</p><p>For example, integers 11 and 47 are coprime. We thus have the following B&#233;zout relation: 4x47 - 17x11 = 1; hence, 4 &#8192; 47 = 1 + 17x11. Thus, to obtain 1 liter, it is sufficient to fill the 47 liter pitcher four times while pouring the wine into the 11 liter pitcher while emptying the 11 liter pitcher each time it is full. The 11 liter pitcher will be filled 17 times; at this moment, 1 liter will remain in the 47 liter pitcher. When the first 47 liter pitcher is empty, there are 3 liters left in the 11 liter pitcher. Now fill the 47 liter pitcher again and repeat the process. After this, there are now 6 liters in the 11 liter pitcher. Repeating this procedure again leaves 9 liters in the 11 liter pitcher, and the fourth repetition will push it past 11 liters so that it needs to be emptied once more, and then it will contain exactly 1 liter at the end.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Principal and the T-Shirts]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-principal-and-the-t-shirts</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-principal-and-the-t-shirts</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 00:23:37 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/4a4ffbcc-ca28-4a5e-aa35-168c801e879f_666x124.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>With the same seven students, the principal has found a variant of the previous game. &#8220;This time there will be a different real number written on each hat. As before, you can see the hats of others but not your own. Each of you must then choose a T-shirt that is either black or white and wear it. Afterward, you will be placed in increasing order of the numbers on your hats. You win if the T-shirts are of alternating colors.&#8221;</p><p>What strategy can the students use to win this challenge?</p><p><em><strong>(Students choose their T-shirts all at once and in such a way that no student can draw any information from the color of the T-shirt of another student)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2tSg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2tSg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 424w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 848w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 1272w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2tSg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png" width="674" height="136" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:136,&quot;width&quot;:674,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:42212,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2tSg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 424w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 848w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 1272w, https://substackcdn.com/image/fetch/$s_!2tSg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fc61214-4f82-4337-ab11-7accd9f2f8df_674x136.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One must use the sign</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let us begin by presenting a possible strategy and then show that it answers the problem. First of all, the students number themselves from 1 to 7. Let us assume the perspective of student number 1. She observes the hats of the six other students and orders them in increasing order of their hats. Let us suppose she obtains the following order 5, 2, 4, 7, 3, 6. She then adds her own number to the end of the ranking: 5, 2, 4, 7, 3, 6, 1. This is a permutation of f1, 2, 3, 4, 5, 6, 7g. She now only needs to compute the signature of this permutation and to take a black T-shirt if the signature is &#1048576;1 and a white T-shirt if the signature is 1.</p><p>Let us now see why this strategy works. First of all, one must be convinced of the following property: &#8220;If the adopted strategy is such that whenever two students have on their hats neighboring real numbers, they choose different colored T-shirts, then the students will indeed have alternating colors.&#8221;</p><p>Next, one must show that the given strategy upholds this property. To see this, consider an example:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!QHDU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!QHDU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 424w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 848w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 1272w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!QHDU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png" width="602" height="110" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:110,&quot;width&quot;:602,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:37414,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!QHDU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 424w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 848w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 1272w, https://substackcdn.com/image/fetch/$s_!QHDU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcab46bac-0a4a-4b91-b34a-cae553572d40_602x110.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>In this example, students are sorted into order 1, 5, 2, 4, 7, 3, 6. We notice that students 4 and 7 have neighboring real numbers (but they do not know it). Let us assume the perspective of student 4 and apply the previously designed strategy. Student 4 sees the six other students in the order 1, 5, 2, 7, 3, 6. He adds his number on the end, and computes the signature of the permutation mapping 1, . . . , 7 to 1, 5, 2, 7, 3, 6, 4. Now we consider student 7. She sees 1, 5, 2, 4, 3, 6 and computes the signature of the permutation mapping 1, . . . , 7 to 1, 5, 2, 4, 3, 6, 7. In fact, we notice that since students 4 and 7 are neighbors, they will see the same order for the six other remaining students except that a 4 will become a 7 and a 7 will become a 4. They will thus compute the signature of their permutation up to one transposition: going from 1, 5, 2, 7, 3, 6, 4 to 1, 5, 2, 4, 3, 6, 7 by transposition of the 4 and the 7. The signature of the first permutation will thus be the opposite of the signature of the second. Students 4 and 7 will thus choose T-shirts of different colors. Thus, the property holds, and the presented strategy works.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Principal and the Lightbulb]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-principal-and-the-lightbulb</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-principal-and-the-lightbulb</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Wed, 08 May 2024 00:06:27 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2_uv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A principal offers a challenge to his 100 students. &#8220;I will call you one by one into my office, perhaps several times, until one of you can assure me that everyone has been through my office, in which case you all win. So that this is possible, you will be able to, when called, either turn on or off the light in the hallway leading to my office. You will not be able to communicate, so you will not know who came in before you, or even how many students came in before you. I will keep calling you in as long as none of you has assured me that all of you have come in. If one of you tells me everyone has been in my office and that is not the case, you all lose.&#8221;</p><p>How can the students win this challenge?</p><p><em><strong>(It is not specified whether the lamp is on or off at the beginning. Do note that students can enter the office several times before one of them announces that they have all been in. If, for example, each student has been in the principal&#8217;s office 50 times before one of them declares that they all have been in, they win nonetheless)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2_uv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2_uv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 424w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 848w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 1272w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2_uv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png" width="306" height="356" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:356,&quot;width&quot;:306,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:31107,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2_uv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 424w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 848w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 1272w, https://substackcdn.com/image/fetch/$s_!2_uv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F183218c8-1b87-45a5-9978-f92b5b0b7711_306x356.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One can begin by assuming that the light is initially off and that the students know this.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let us begin by solving the problem in the instance in which the students know that the lightbulb begins turned off. The students designate a leader who will be in charge of counting the calls to the office and announcing when everyone has been in. Other than the leader, each student flips the light on if it is off, but only the first time they&#8217;re called and find it turned off. In other words, if a student finds the light off when they enter, but they have already turned it on during a previous visit, they will leave it off. When the leader is called, she always turns off the light if it was turned on. Thus, when the leader has turned the light off 99 times, it will be because the 99 other students have been in the office and the leader will be able to announce it.</p><p>To handle the general case, we slightly tweak the previous strategy. Other than the leader, the students turn the light on if it is turned off, twice but no more. If the light is initially turned off, the leader will have to turn it off 99x2 = 198 times; otherwise the leader will have to turn it off once more, that is, 199 times. In any case, the leader will know everyone has been in the office at least once when she turns the light off for the 198th time.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Very Hungry Termite]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-very-hungry-termite</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-very-hungry-termite</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 23:57:25 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!BQQc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A termite is eating a wooden cube made up of 27 smaller cubes, as shown on the following diagram. It begins with a small cube of its choice, then moves to an adjacent cube (it cannot move diagonally) until it has eaten every one of them.</p><p>Can the termite finish its meal by eating the central cube?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BQQc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BQQc!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 424w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 848w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 1272w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BQQc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png" width="340" height="397.12" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8353df20-222d-43aa-bad5-c4a899798a05_500x584.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:584,&quot;width&quot;:500,&quot;resizeWidth&quot;:340,&quot;bytes&quot;:41953,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!BQQc!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 424w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 848w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 1272w, https://substackcdn.com/image/fetch/$s_!BQQc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8353df20-222d-43aa-bad5-c4a899798a05_500x584.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>Color some of the small cubes of the cube.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let us color the small cubes in black and white in such a way that each small cube is surrounded by adjacent cubes of the other color, as below:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rI3a!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rI3a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 424w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 848w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 1272w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rI3a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png" width="276" height="256" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a18542d3-02c3-434d-8831-17112b18d8bc_276x256.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:256,&quot;width&quot;:276,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:45901,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rI3a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 424w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 848w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 1272w, https://substackcdn.com/image/fetch/$s_!rI3a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa18542d3-02c3-434d-8831-17112b18d8bc_276x256.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The termite travels through cubes of alternating colors. Since it eats an odd number of cubes, it must begin with a white cube to finish with the central cube, which is white. But then, if the termite eats all the cubes starting with a white cube and ending with a white cube, there will be one more white cube than black cubes. But there are 13 white cubes and 14 black cubes. It is thus impossible.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Elephant and the Bananas]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-elephant-and-the-bananas</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-elephant-and-the-bananas</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 23:20:45 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!2KKy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A banana merchant has a stock of 3,000 bananas that he would like to sell at the market of an oasis situated 1,000 kilometers away. To carry the merchandise he has an elephant that consumes one banana per kilometer and cannot carry more than 1,000 bananas at once.</p><p>At most, how many bananas can he transport to the oasis?</p><p><em><strong>(First off, we notice that if the merchant does the trip without stopping, loading up his elephant as much as possible, he will arrive at the oasis with no bananas. It is thus necessary to make stops: the idea is to drop off some merchandise on the way, come back to pick up more bananas, and then pick up the bananas left on the way. Note, we ask not only for an optimal strategy, but also the proof of its optimality)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2KKy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2KKy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 424w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 848w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 1272w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2KKy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png" width="560" height="368.8622754491018" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:440,&quot;width&quot;:668,&quot;resizeWidth&quot;:560,&quot;bytes&quot;:145713,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2KKy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 424w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 848w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 1272w, https://substackcdn.com/image/fetch/$s_!2KKy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe430904f-34cb-41bb-ba2f-6932fd282d7a_668x440.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>The answer is 533 bananas. The hardest part is proving one can&#8217;t do better.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>The elephant can carry at most 533 bananas to the oasis. There are several possible strategies.</p><p>The elephant carries as many bananas as possible, kilometer by kilometer. It starts from kilometer 0 with 1,000 bananas on its back, and arrives at the first kilometer with 999, drops 998 off, and then returns to the start with the last banana. It does this again and drops off 998 at the first kilometer once more. Finally, it returns to pick up the last 1,000 bananas and drops 999 off at the first kilometer mark. All in all, the elephant ate five bananas to carry 998 &#8192; 2 + 999 = 2,995 bananas the first kilometer. It starts over now and carries 2,990 bananas to the second kilometer mark. For each kilometer, the elephant consumes five bananas to carry all the others. The elephant continues in this way until the 200th kilometer, to which it brings 2,000 bananas. It leaves the 200th kilometer with 1,000 bananas on its back, drops 998 off at the 201st kilometer, keeping one for the trip back. It takes the last 1,000 bananas and drops 999 off at the 201st kilometer. All in all, the elephant ate three bananas to carry 998 + 999 = 1,997 bananas from the 200th kilometer to the 201st kilometer. It continues and carries 1,994 bananas to the 202nd kilometer. It consumes three bananas for each kilometer to carry the rest and continues in this way until it reaches the 503rd kilometer with 1,001 bananas. It then leaves behind one banana and leaves directly for the oasis with the 1,000 bananas remaining. It arrives 467 kilometers later with 533 bananas.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Reference Weights]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/reference-weights</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/reference-weights</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 23:07:52 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/39c7cdce-3f09-45a3-9b35-dfdb6245dbb6_668x198.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A set of Roberval scales is sold with a set of 10 reference weights. What masses must the 10 weights have in order to weigh as many consecutive (integer) mass objects as possible? </p><p><em><strong>(For example, with only three weights, one weighing 1kg, one weighing 2kg and one 5kg, it is possible to weigh any object between 1kg and 8kg. Do note, we ask not only for an optimal set of weights, but also the proof of its optimality)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Z6fg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Z6fg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 424w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 848w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 1272w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Z6fg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png" width="668" height="198" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:198,&quot;width&quot;:668,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:56953,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Z6fg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 424w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 848w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 1272w, https://substackcdn.com/image/fetch/$s_!Z6fg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F20a3389f-9fae-4dea-8550-894c4493b0ef_668x198.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>Each weighing has three possible outcomes; what is the maximum number of weights that one could discriminate between? One will be able to use the method of comparing outcomes to hypotheses, which is detailed in the reminder on the pigeonhole principle</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>First of all, notice that starting with one weight of 1 kg and another weight of 3 kg, we can already determine the weight of all objects between 1 kg and 4 kg. To weigh an object of 2 kg with these weights, it suffices to place the object with the 1 kg weight on the left and the 3 kg weight on the right.</p><p>If we choose weights of mass 1 kg, 3 kg, 9 kg, 27 kg, &#8230;, 3^9 kg, we can determine the weight of any object between 1 kg and 1 + 3 +. .&#8192;. .&#8192;. .&#8192;. + 3^9 = (3^10&#8722;1)/2 kg. Indeed, let us show by induction on n &#8192; 0 that with weights of mass 1 kg, 3 kg, ..., 3^n kg, we can determine the weight of any object between 1 kg and (3^(n+1)&#8722;1)/2 kg.</p><p>Initialization is simple. Suppose the proposition holds for n&gt;=0. We have weights of mass 1 kg, 3 kg, &#8230;, 3^(n+1) kg. If we want to weigh a mass between 1 kg and (3^(n+1)&#8722;1)/2 kg, doing so is straightforward; we don&#8217;t need the 3^(n+1) kg weight. To weigh an object whose mass is between (3^(n+1)+1)/2 kg and (3^(n+2)&#8722;1)/2 kg, we begin by subtracting 3^(n+1) kg from this mass by placing the corresponding weight on the other side. This brings the mass down to between -(3^(n+1)&#8722;1)/2 kg and (3^(n+1)&#8722;1)/2 kg, which we can weigh with the other weights, which completes the induction.</p><p>Can we do better? No. We use the comparison method for outcomes and hypotheses. Let us compute the maximum number of different weighings we can produce with 10 weights. For each weight we have three possibilities: place it on the left side, place it on the right side, or do not use it at all. This gives 310 possible weighings. However, we actually have only 3^10 - 1 weighings, since not placing anything on the scales does not count as a valid weighing. We must then divide the result by 2 since the plates are symmetric. We thus obtain at most (3^10&#8722;1)/2 possible results from weighing. This maximum is reached with the previous system of weights; hence the result is proven.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[A Fair Share]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/a-fair-share</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/a-fair-share</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 22:40:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Pq7S!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>To share a pizza equitably between two people, the first person cuts the pizza, and the second chooses their slice. </p><p>Determine, under the same principle, a fair way to share a pizza between n people.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Pq7S!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pq7S!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 424w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 848w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 1272w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pq7S!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png" width="358" height="327.83882783882785" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:500,&quot;width&quot;:546,&quot;resizeWidth&quot;:358,&quot;bytes&quot;:96897,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Pq7S!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 424w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 848w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 1272w, https://substackcdn.com/image/fetch/$s_!Pq7S!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F055f5acc-38b0-4f19-b1a5-3c319891807c_546x500.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>There are many ways to proceed, none are easy to find. One possibility is to build the sharing method by induction on n. One can begin by thinking of the case in which n = 3 and try to reduce to the previous case in which there are only two people.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>The case n = 2 is known to anyone who has at least one sibling. The first sibling cuts the pizza in half and the second chooses their slice. Let us solve the problem of the case n = 3. A person cuts what seems to them like one-third of the pizza. If the second person thinks this slice is more than one-third, they can cut some off. The third person may do the same (potentially cutting some off for the second time). The rule is the following: the last person to touch the slice must eat it. Thus, no one is going to cut a slice so that it seems to them like it is less than one-third in fear of ending up with the slice if no one else touches it. Everyone is happy, the last person to touch the slice gets what they think is more than one-third, and the other two don&#8217;t think that slice is more than one-third, so they think they have at least two-thirds to share. They share the remainder without issues (by the method for the n = 2 case).</p><p>This reasoning extends easily for n people. The first person cuts the slice they like, then each of the others in turn can cut this slice further, knowing that the last one to cut the slice gets it. We then reduce to sharing between n - 1 people. We thus have an induction and the problem is solved.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Triangular Cake]]></title><description><![CDATA[This is a level 3 question which should take approx. 8 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-triangular-cake</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-triangular-cake</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 22:28:02 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/c084893f-5953-4341-9dc7-0264aec494d5_552x214.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A husband, to celebrate the birthday of his beloved, orders a triangular cake from the best baker in town. In the meantime, he crafts a triangular box in which to beautifully present the cake. When he goes to pick the cake up from the baker, the husband is disheartened! He realizes that the baker adhered to the measurements that were given but made the exact symmetric version (see figure below). Therefore, the cake doesn&#8217;t fit in the box. The husband thinks for a moment, then realizes he needs only to make two cuts in order for the cake to be cut into pieces which, once rearranged, will perfectly fit the box.</p><p>How does he do it?</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qf7i!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qf7i!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 424w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 848w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 1272w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qf7i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png" width="560" height="228" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:228,&quot;width&quot;:560,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:15490,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qf7i!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 424w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 848w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 1272w, https://substackcdn.com/image/fetch/$s_!qf7i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd998345-7996-43a9-a9b2-1fd779b91d33_560x228.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p><em><strong>(Of course, the precise triangular shape of the cake is a priori arbitrary. One can&#8217;t stack parts or flip them over)</strong></em></p><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One can consider the moment when the player&#8217;s success rate goes over 75%.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let (ABC) be the triangle that will model the cake. For any triangle, there is a foot to one of its altitudes. Here we will consider H, the foot of the altitude from B. Let I and J be the midpoints of line segments [AB] and [BC]. Two strokes of the knife following lines (HI) and (HJ) solve the problem. Indeed it is simple to rearrange the pieces cut in this manner for the triangle symmetric to (ABC).s</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9HLC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9HLC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 424w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 848w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 1272w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9HLC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png" width="552" height="214" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:214,&quot;width&quot;:552,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:49548,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9HLC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 424w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 848w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 1272w, https://substackcdn.com/image/fetch/$s_!9HLC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8a16728e-76e3-4856-a28c-2397ab8726fc_552x214.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Squirrel and the Nuts]]></title><description><![CDATA[This is a level 2 question which should take approx. 5 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-squirrel-and-the-nuts</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-squirrel-and-the-nuts</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 22:13:48 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Kht9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A squirrel collects 11 nuts. Back in its hideout, it weighs up its spoils in manyways. It notices that whichever nut it sets aside, it can always separate the 10 others into two groups of five nuts with the same weight. We assume that all the nuts have a mass that, when expressed in grams, is an integer. Show that all the nuts have the same mass.</p><p><em><strong>(Assume that the nuts all have the same mass. In this case, it is evident that, whatever the nut the squirrel sets aside, it can always separate the 10 remaining into two groups of five nuts with the same mass. Assume now that the nuts respectively weigh 1 gram, 2 grams, &#8230;, 11 grams. If the squirrel sets aside the nut that weighs 2 grams, it can separate the 10 remaining nuts into two groups of five with the same mass: on one side the nuts weighing 1 gram, 4 grams, 6 grams, 10 grams, and 11 grams, and on the other those weighing 3 grams, 5 grams, 7 grams, 8 grams, and 9 grams. However, if it sets aside the nut weighing 1 gram, we can show that it is impossible to separate the 10 remaining nuts into two groups of five with the same mass. Thus, the distribution of masses of the nuts proposed in this particular case does not work. One must show that the only distributions that work are those in which the nuts have the same weight)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Kht9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Kht9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 424w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 848w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 1272w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Kht9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png" width="444" height="307.003717472119" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:372,&quot;width&quot;:538,&quot;resizeWidth&quot;:444,&quot;bytes&quot;:86751,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Kht9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 424w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 848w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 1272w, https://substackcdn.com/image/fetch/$s_!Kht9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3b302c4c-4e1d-4f99-b381-57420770e987_538x372.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>The easiest approach is to reason on the parity of the weights.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>We consider a distribution of weights that works, which means it is such that whatever nut the squirrel sets aside, it can always separate the 10 others into two groups of five nuts with the same mass. We want to show that all the nuts have the same mass. From now on, we will assimilate the weights of the nuts to the integers representing these weights in thousandths of a gram.</p><p>First, we notice that all the weights have the same parity. Indeed, if a nut has an even weight, since we can separate the other 10 nuts into two groups of the same weight, the sum of the other weights is even. The total sum of nuts is thus even. Likewise if a nut has odd weight. If we now take an arbitrary nut, since the sum of the 10 other weights is even and the total sum is even (respectively odd), this nut has an even (respectively odd) mass.</p><p>Now we notice that if a distribution works and contains an even weight, we can divide all the weights by two and it will still work. We can thus divide all the weights of a unit. By removing the minimum mass from every nut, we have a distribution that works with at least one zero mass. Either all the masses are zero and were all equal, or there is at least one nonzero mass. In this case, since there is an even mass (zero), we can divide by two, and so on as many times as necessary to render the nonzero mass odd. We thus have a zero weight and an odd weight: a contradiction. Hence, we have proven our result.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Chocolate Bar]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-chocolate-bar</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-chocolate-bar</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 06:04:36 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ebzx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Two mathematicians are sharing a bar of chocolate whose lower left square is poisoned. They impose the following rule: when someone wants to take a square of chocolate, they must take the whole upper right corner with it. For example, on the figure below, the first took square 1, then the second took square 2.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ebzx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ebzx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 424w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 848w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 1272w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ebzx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png" width="656" height="324" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:324,&quot;width&quot;:656,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:29642,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ebzx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 424w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 848w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 1272w, https://substackcdn.com/image/fetch/$s_!ebzx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6d8a665-be4c-4cf9-bdbc-d65b2cb4094b_656x324.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Each takes their turn to take a square and the upper right corner that comes with it. The one who is forced to take the poisoned square (when it is the only square left) is declared the loser!</p><p>Show that there is a winning strategy for the player who begins.</p><p><em><strong>(Of course, we don&#8217;t ask for the explicit winning strategy: this is an open problem)</strong></em></p><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p></p><div><hr></div><h2>Hint</h2><p>What happens if the mathematician going second plays a winning strategy?</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Given that there is no possible equality, one of the two players (either the one who starts, or the other) has a winning strategy. Indeed, either the first player has a winning strategy, or the second player can always beat the first player regardless of the first player&#8217;s first move. In the second case, the second player has a winning strategy.</p><p>Assume, for a contradiction, that the second player has a winning strategy. If the first player begins by taking the square in the top right, the second player will find a move that, despite the first player&#8217;s best efforts, will lead to the second player&#8217;s victory. But, since the first move consisted only in taking the first square, the second move could have been played from the start by the first player. But then, in this situation, the second player is blocked; regardless of what the second player does, the first player will win (if they play optimally). This contradicts the fact that he has a winning strategy! It is thus the first player who possesses a winning strategy.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Rats and the Bottles]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-rats-and-the-bottles</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-rats-and-the-bottles</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 05:35:33 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!QSxQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A king owns precisely 1,000 bottles of wine. Having dismantled a plot against him, he knows that exactly one bottle is poisoned. His butler, charged with determining which one it is, has at his disposal some rats which he can have taste the different bottles. If a rat drinks of the poisoned wine, it dies the next day. The king is impatient and wants to be certain of which bottle is poisoned as early as tomorrow. What is the minimum number of rats the butler needs?</p><p><em><strong>(If each rat tastes one bottle, there has to be 999 rats to determine which bottle is poisoned. But the rats can also taste mixes from different bottles. For example, if the first rat tastes a mix of the first 100 bottles, he dies the next day if and only if one of these 100 bottles was poisoned. Note, you will have to prove that the number of rats proposed is in fact minimal)</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!QSxQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!QSxQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 424w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 848w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 1272w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!QSxQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png" width="486" height="326" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:326,&quot;width&quot;:486,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:44448,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!QSxQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 424w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 848w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 1272w, https://substackcdn.com/image/fetch/$s_!QSxQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fddc27d59-fde4-4295-9d38-2156a3914aa5_486x326.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p></p><div><hr></div><h2>Hint</h2><p>One must begin by asking oneself how many rats are necessary. For this, use the method of comparing outcomes to hypotheses, which is detailed in the reminder on the pigeonhole principle. Moreover, one must number the rats in base 2.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>If the first rat tastes a mix of the first 500 bottles, its death or survival the next morning allows the problem to be cut in half. To divide the problem again, the second rat must also taste half the bottles. But we must ensure all rats are useful: if the first rat tastes a mix of the first 500 bottles and the second rat tastes a mix of the last 500 bottles, the second rat is no use. To divide by two the number of bottles as many times as wanted without difficulty, the simplest is to renumber the bottles in base 2.</p><p>We have pow(2,9) &lt;= 999 &lt; pow(2,10), so one will need 10 digits to number all the bottles. The numbers will go from 0000000000 to the base 2 = 0 (the number of the first bottle) to 1111100111 to the base 2 = 999 (the number of the last bottle). The first rat will taste all the bottles whose last digit is a 1. It will thus taste bottles 0000000001 to the base 2, 0000000011 to the base 2, 0000000101 to the base 2, and so on. The second rat tastes all bottles whose second-to-last digit is a 1 and so forth through the 10th rat, who tastes all the bottles whose first digit is 1. The next day, the butler looks at which rats died. If the ith rat is dead, since he tasted all the bottles whose ith digit is a 1, the butler knows that the number on the poisoned bottle has a 1 in the ith position. The butler can in this manner find the number of the poisoned bottle. This method requires 10 rats. Let us show that one can do no better.</p><p>We will show that with n rats we cannot discriminate between more than pow(2,n) bottles. In other words, if we assume that the butler can determine which bottle is poisoned among k bottles with n rats, then we have k &lt;= pow(2,n). To do so, we will compare the number of hypotheses with the number of outcomes; this method is detailed in the reminder on the pigeonhole principle. There are k bottles. Either the first bottle is poisoned, or it is the second, or it is the last. There are thus k different possible hypotheses about the solution of the problem. When the butler has the rats taste mixes from different bottles, the next day each rat will be alive or dead. Since there are n rats, there are pow(2,n) possible outcomes. By the pigeonhole principle, to identify the bottle we must have more possible outcomes than different solutions to the problem. We thus have k&lt;= pow(2,n). With k = 1,000 bottles, we obtain 1,000&lt;= pow(2,n); hence, 10&lt;=n. At least 10 rats are required.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Swimming Pool Lockers]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/swimming-pool-lockers</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/swimming-pool-lockers</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 05:22:44 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/4164bc19-d563-48ba-940a-5ecb8ad933e2_526x210.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>At the swimming pool, a little girl is playing with the lockers. There are 100 lockers, numbered from 1 to 100, all of which are closed at the beginning. She makes a first pass by opening all lockers whose number is a multiple of 2. When she arrives at the 100th locker, she comes back to locker 1 and makes a second pass. This time, she chooses all the lockers whose number is a multiple of 3; if the chosen locker is closed, she opens it, and if the locker is open, she closes it. She makes another pass in this manner for multiples of 4, 5, 6, and so on until her last pass, which is for the multiples of 100.</p><p>After all these passes, which lockers are closed?</p><h5><em>(During her first pass, the girl opens the lockers 2, 4, 6, and so on through 100 and leaves the others shut. During the second pass, she opens locker 3, closes locker 6, opens locker 9, closes locker 12, and so on)</em></h5><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pyMg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pyMg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 424w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 848w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 1272w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pyMg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png" width="534" height="218" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:218,&quot;width&quot;:534,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:53021,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pyMg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 424w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 848w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 1272w, https://substackcdn.com/image/fetch/$s_!pyMg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd635b2a-726d-4b30-ab72-83d50485c0f7_534x218.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p></p><div><hr></div><h2>Hint</h2><p>Reason on the parity of the number of divisors of the number of each locker.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>We notice that for a locker to remain closed after all the passes, the child must have changed its state an even number of times. Thus, she must have passed this locker an even number of times. In other words, the locker&#8217;s number must have an even number of factors, not counting 1, so an odd number of factors in total. This is the case if and only if it is a square. Indeed, let n be a nonzero integer, and let f1, f2, . . . , fk be its factors. We can group them by pairs in the following way: we pair factor f with factor n/f . If n is not a square, n/f is always different from f, so n has an even number of factors. If n is a square, there exists a unique factor f such that n/f = f, so n has an odd number of factors. Finally, the lockers that are closed after all passes are those whose numbers are squares: numbers 1, 4, 9, and so forth.</p><p>Another method for computing the number of factors of n is to decompose it into prime factors:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!i9zA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!i9zA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 424w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 848w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 1272w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!i9zA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png" width="150" height="80" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:80,&quot;width&quot;:150,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:11195,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!i9zA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 424w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 848w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 1272w, https://substackcdn.com/image/fetch/$s_!i9zA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13dbcfa9-aa33-481b-a58b-c2b15c3566b6_150x80.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>The number of factors of n is then given by the following formula:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qu9a!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qu9a!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 424w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 848w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 1272w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qu9a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png" width="176" height="80" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:80,&quot;width&quot;:176,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:13144,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qu9a!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 424w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 848w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 1272w, https://substackcdn.com/image/fetch/$s_!qu9a!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F474a43d9-40f2-4b3e-819d-3faf42e8bd05_176x80.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Thus, n has an odd number of factors if and only if all the &#945;i are even. But, to say that all the &#945;i are even is equivalent to saying that n is a square.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Spaghetti]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/the-spaghetti</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/the-spaghetti</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 04:12:34 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/e9455382-c9fa-425f-a56a-580b2df36e7a_338x222.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A bored young man has before him a plate containing 100 spaghetti. He decides to knot them to form loops. To do this, he starts by taking two spaghetti ends that protrude, at random, and knots them together. He repeats this operation until all the spaghetti have been knotted.</p><p>At the end of this process, how many loops has he made on average?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!YTrY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!YTrY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 424w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 848w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 1272w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!YTrY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png" width="324" height="244" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:244,&quot;width&quot;:324,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:34849,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!YTrY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 424w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 848w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 1272w, https://substackcdn.com/image/fetch/$s_!YTrY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcd6a567e-3236-4970-9be9-6b08db7ba5af_324x244.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p></p><div><hr></div><h2>Hint</h2><p>One can consider the moment when the player&#8217;s success rate goes over 75%.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>Let us denote bn as the average number of loops that the young man creates with a plate of n spaghetti. Thus, b1 = 1, and we seek b100. Let us consider a plate of spaghetti with n &#8192; 2. For his first knot, the young man either ties a spaghetti to itself or the two spaghetti to each other. In the first case, the spaghetti is eliminated: there will be on average bn&#8722;1 + 1 loops. In the second case, everything happens as if the plate only had n-1 spaghetti on it: there will be on average bn&#8722;1 loops. The probability that the first spaghetti tied formed a loop is 1/(2n&#8722;1): indeed the young man chose</p><p>the first end at random and then has 2n - 1 choices for the second. The average number of loops is thus </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!q9o9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!q9o9!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 424w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 848w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 1272w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!q9o9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png" width="460" height="112" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:112,&quot;width&quot;:460,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:27118,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!q9o9!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 424w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 848w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 1272w, https://substackcdn.com/image/fetch/$s_!q9o9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc83e4448-2ed3-486b-aa4b-d56f8fd3a439_460x112.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ycQX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ycQX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 424w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 848w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 1272w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ycQX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png" width="144" height="64" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:64,&quot;width&quot;:144,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:10941,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ycQX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 424w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 848w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 1272w, https://substackcdn.com/image/fetch/$s_!ycQX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed5ce7e3-8caf-4274-bf74-d123f16d93ee_144x64.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>which means that for large n, </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xrzO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xrzO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 424w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 848w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 1272w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xrzO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png" width="140" height="56" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:56,&quot;width&quot;:140,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:10226,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xrzO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 424w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 848w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 1272w, https://substackcdn.com/image/fetch/$s_!xrzO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0bd17d5-173c-4dd7-8c69-1c6f2c960e08_140x56.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>ln(n)/2 is a good approximation of bn. We say that bn is on the order of ln(n)/2 . The growth of bn is logarithmic, and thus much slower than one might have thought.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Unbreakable Plates]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/unbreakable-plates</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/unbreakable-plates</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 04:00:55 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!6GpK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A plate maker wants to test the solidity of his products. To do so, he takes two of his plates and goes to the foot of a 100-story building. He is trying to determine the limit floor, the lowest floor from which one of his plates breaks if dropped. He wants to make this determination in the fewest number of drops.</p><p>With the best possible strategy, in how many drops can he determine the limit floor with certainty?</p><h5><em>(Both plates have the same solidity and do not wear during the drops. Following this method, in the worst case, 100 drops are made and only one plate is used. However, if two plates are used, we need to drop only from the even-numbered floors (2, 4, 6, etc.) until the plate breaks. Once the plate breaks, we then have to go to the floor immediately below it to find the limit. This strategy requires only 51 drops in the worst case, but it is still not optimal)</em></h5><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6GpK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6GpK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 424w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 848w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 1272w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6GpK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png" width="308" height="302.8235294117647" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:468,&quot;width&quot;:476,&quot;resizeWidth&quot;:308,&quot;bytes&quot;:138643,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!6GpK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 424w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 848w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 1272w, https://substackcdn.com/image/fetch/$s_!6GpK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5d714cb7-ea8f-4b8f-9052-afeea1b841c2_476x468.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>One could ponder the question backward by asking from how high we can drop the first plate if we only have at most n trials.</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>The key is to spin the problem differently: with at most n drops, how many floors can one test? We notice already that as soon as the first plate breaks, one must test all the forgotten floors one by one with the remaining plate, starting by the lowest and going up: there is no other approach when one has only one plate left.</p><p>Assume we can&#8217;t do more than n throws. We can drop the plate from the nth floor at most. Indeed, if it breaks, one will have to test in the worst case floors 1, 2, 3, &#8230;, n - 1 with the second plate. If it doesn&#8217;t break, then there are two plates left and n - 1 trials, so we can drop the plate from the n + (n - 1) = (2n - 1)th floor and if it breaks there are n - 2 trials to test n - 2 floors. Thus, with two plates and n trials, we can test at most</p><p>un = n + (n - 1) + (n - 2) + &#8230;. + 1 floors.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9x4T!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9x4T!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 424w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 848w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 1272w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9x4T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png" width="230" height="90" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:90,&quot;width&quot;:230,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:15244,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9x4T!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 424w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 848w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 1272w, https://substackcdn.com/image/fetch/$s_!9x4T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe8f66aad-c5d4-4786-97cf-092219a33ee7_230x90.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>For 100 stories, we have u13 &lt; 100 &lt; u14. It will thus take 14 drops in the worst case.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[One More Coin]]></title><description><![CDATA[This is a level 2 question which should take approx. 4 minute in the interview]]></description><link>https://puzzlesquant.substack.com/p/one-more-coin</link><guid isPermaLink="false">https://puzzlesquant.substack.com/p/one-more-coin</guid><dc:creator><![CDATA[Quant Puzzles]]></dc:creator><pubDate>Tue, 07 May 2024 03:48:32 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/865e455d-3475-4baf-a7fd-65b7e3c62145_298x274.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Two brothers are playing heads or tails. The older brother takes 11 coins and only gives 10 to his little brother; thus, the older brother has one coin more. They toss all their coins at the same time and count how many tails they obtained.</p><p>Under these conditions, what is the probability that the older brother gets strictly more tails than his little brother does?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ot9y!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ot9y!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 424w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 848w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 1272w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ot9y!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png" width="298" height="274" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:274,&quot;width&quot;:298,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:26877,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ot9y!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 424w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 848w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 1272w, https://substackcdn.com/image/fetch/$s_!ot9y!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3ff04823-4dc1-4212-9b38-04fd7dd708a9_298x274.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Try to solve this problem yourself before moving on to the solution below. Use hint if needed</em></p><p>.<br>.<br>.</p><p>.</p><div><hr></div><h2>Hint</h2><p>No computation!</p><p>.</p><p>.</p><p>.</p><p>.</p><div><hr></div><h2>Solution</h2><p>It may seem surprising, but the older brother has, despite his extra coin, only a 50/50 chance of getting strictly more tails than his younger brother.</p><p>There are only two possible cases: either the older brother has strictly more tails than his brother, or strictly more heads. At least one of these two cases will occur: since the older brother has one more coin, he cannot have both a number of heads less than or equal to his younger brother and a number of tails less than or equal to his younger brother. Moreover, both these cases cannot occur at once: since he only has one extra coin, the older brother cannot have both strictly more heads and strictly more tails than his younger brother. We will always have one case or the other, but never both at the same time.</p><p>Both cases are symmetric; thus, they have the same probability, and since they are complementary, their probability is 1/2 . Thus, the older brother only has a 50/50 chance of getting strictly more tails than his younger brother.</p><p>.</p><p>.</p><p>&#128515; Your turn: Managed to crack this one?</p><div><hr></div><p>&#128073; If you enjoyed this post, please consider leaving a like &#10084;&#65039;. Your support boosts visibility on Substack, helping more readers find this newsletter. Just hit the button at the bottom of this email.</p><p>&#128073; If you're loving this newsletter, why not share it with your friends? They might enjoy it too!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://puzzlesquant.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Quant&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>