{"id":2024,"date":"2017-05-07T22:47:49","date_gmt":"2017-05-08T03:47:49","guid":{"rendered":"http:\/\/www.laurentlessard.com\/bookproofs\/?p=2024"},"modified":"2017-05-10T02:52:19","modified_gmt":"2017-05-10T07:52:19","slug":"squaring-the-square","status":"publish","type":"post","link":"https:\/\/laurentlessard.com\/bookproofs\/squaring-the-square\/","title":{"rendered":"Squaring the square"},"content":{"rendered":"<body><p><\/p>This <a href=\"https:\/\/fivethirtyeight.com\/features\/who-will-win-the-lucky-derby\/\">Riddler puzzle<\/a> is about tiling a square using smaller squares.\n<blockquote><p>\nYou are handed a piece of paper containing the 13-by-13 square shown below, and you must divide it into some smaller square pieces. If you are only allowed to cut along the lines, what is the smallest number of squares you can divide this larger square into? (You could, for example, divide it into one 12-by-12 square and 25 one-by-one squares for a total of 26 squares, but you can do much better.)\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/gridlines-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"aligncenter size-thumbnail wp-image-2025\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/gridlines-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/gridlines-300x298.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/gridlines.png 301w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><\/p>\n<p>Here is how I solved the problem:<br>\n<a href=\"javascript:Solution('soln_squaresquare','toggle_squaresquare')\" id=\"toggle_squaresquare\">[Show Solution]<\/a><\/p>\n<div id=\"soln_squaresquare\" style=\"display: none\">\n<p>This is a challenging puzzle and there is unfortunately no clever trick one can use to solve it quickly. If we consider the general problem of tiling an $N\\times N$ grid using smaller squares, we can make several observations:<\/p>\n<ul>\n<li>The smallest answer we could ever hope for is $4$. If $N=2k$ is even, we can achieve the minimum by splitting the square into four $k\\times k$ squares. It\u2019s clear that this solution cannot be improved.\n<\/li>\n<li>If $N = 3k$ is a multiple of $3$, we can split it into six pieces: one $2k\\times 2k$ square and five $k\\times k$ squares. I believe this also cannot be improved.\n<\/li>\n<li>When $N$ has many divisors, it becomes easier to tile it. The most challenging cases are therefore the cases where $N$ is prime. So a larger grid doesn\u2019t necessarily mean a more difficult problem! We\u2019ll see examples of this later.\n<\/li>\n<\/ul>\n<p>I\u2019ll solve this problem by converting it into an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Integer_programming\">integer linear program<\/a> (specifically, a variant of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Knapsack_problem\">knapsack problem<\/a>), which can be solved much more efficiently than by brute-force checking the astronomical number of possible tilings.<\/p>\n<p>I\u2019ll illustrate the approach for the $5\\times 5$ case. We\u2019ll represent each possible square as a $5\\times 5$ matrix of $0$\u2019s and $1$\u2019s. For example, we can use $25$ different $1\\times 1$ tiles:<br>\n\\[<br>\n\\scriptsize \\begin{bmatrix}{\\color{red}{\\color{red}1}}&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},<br>\n\\begin{bmatrix}0&amp;{\\color{red}1}&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},<br>\n\\begin{bmatrix}0&amp;0&amp;{\\color{red}1}&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},\\,\\dots\\,,<br>\n\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;{\\color{red}1}\\end{bmatrix}<br>\n\\]We can also use $16$ different $2\\times 2$ tiles:<br>\n\\[<br>\n\\scriptsize \\begin{bmatrix}{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0&amp;0\\\\{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},<br>\n\\begin{bmatrix}0&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0\\\\0&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},<br>\n\\begin{bmatrix}0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0\\\\0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix},\\,\\dots\\,,<br>\n\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\end{bmatrix}<br>\n\\]Continuing in this fashion, we have $9$ different $3\\times 3$ tiles and $4$ different $4\\times 4$ tiles. So in total, we have $25+16+9+4=54$ different tiles. The name of the game is to pick the smallest possible subset of these matrices that sums to the matrix of all $1$\u2019s. We can represent this compactly by vectorizing each of the $54$ matrices above into $25\\times 1$ columns, and then stacking the columns side by side to form a matrix $A \\in \\{0,1\\}^{25\\times 54}$. Our goal is then to solve the problem:<br>\n\\begin{align}<br>\n\\underset{x \\in \\{0,1\\}^{54}}{\\text{minimize}}\\qquad&amp; \\sum_{i=1}^{54} x_i \\\\<br>\n\\text{subject to:}\\qquad &amp; Ax = 1<br>\n\\end{align}Here, each $x_i$ is a binary variable that selects whether we\u2019ll be using the $i^\\text{th}$ column of $A$ or not. It turns out the optimal solution for this $5\\times 5$ case uses $8$ squares; or the sum:<br>\n\\begin{multline}<br>\n\\scriptsize \\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\{\\color{red}1}&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0\\\\{\\color{red}1}&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0\\\\{\\color{red}1}&amp;{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0&amp;0\\\\{\\color{red}1}&amp;{\\color{red}1}&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;{\\color{red}1}\\end{bmatrix}\\\\<br>\n\\scriptsize+\\begin{bmatrix}0&amp;0&amp;{\\color{red}1}&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;{\\color{red}1}&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;{\\color{red}1}&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n+\\begin{bmatrix}0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;{\\color{red}1}\\\\0&amp;0&amp;0&amp;0&amp;0\\\\0&amp;0&amp;0&amp;0&amp;0\\end{bmatrix}<br>\n\\end{multline}This general strategy of enumerating choices and then selecting among them doesn\u2019t scale all that well because as $N$ gets large $A$ grows pretty quickly. In fact, $A$ will be $N^2 \\times \\tfrac{1}{6}(N-1)(2N^2+5N+6)$. However, in these cases we can use a heuristic such as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Column_generation\">column generation<\/a> to quickly obtain approximate answers that can be iteratively and efficiently refined.<\/p>\n<p>I solved the above integer linear program using <a href=\"https:\/\/julialang.org\/\">Julia<\/a> with <a href=\"https:\/\/jump.readthedocs.io\/en\/latest\/\">JuMP<\/a> and the <a href=\"https:\/\/www.mosek.com\/\">Mosek<\/a> solver. Read ahead for the results!<\/p>\n<\/div>\n<p>And here is the tl;dr, just the solutions!<br>\n<a href=\"javascript:Solution('soln_squaresquare2','toggle_squaresquare2')\" id=\"toggle_squaresquare2\">[Show Solution]<\/a><\/p>\n<div id=\"soln_squaresquare2\" style=\"display: none\">\n<p>Here is what I found for the first few odd values of $N$ (remember, the answer is just $4$ when $N$ is even!):<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_3x3-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2039\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_3x3-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_3x3-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_3x3.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x5-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2038\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x5-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x5-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x5.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x7-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2037\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x7-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x7-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x7.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_9x9-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2036\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_9x9-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_9x9-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_9x9.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x11-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2035\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x11-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x11-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x11.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_13x13-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2034\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_13x13-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_13x13-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_13x13.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_15x15-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2033\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_15x15-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_15x15-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_15x15.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_17x17-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2032\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_17x17-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_17x17-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_17x17.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_19x19-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2031\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_19x19-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_19x19-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_19x19.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_21x21-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2030\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_21x21-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_21x21-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_21x21.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_23x23-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2029\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_23x23-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_23x23-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_23x23.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_25x25-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2028\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_25x25-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_25x25-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_25x25.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><\/p>\n<p>Most of the cases solve in a matter of seconds. The slowest case was $23\\times 23$ ($4323$ binary variables, $529$ constraints) and it took about $45$ seconds. As observed before, the solution is $6$ whenever $N$ is a multiple of $3$, and the solutions get more intricate when $N$ is prime. Of course, we don\u2019t need to restrict ourselves to square boards! Here are some examples of optimal non-square tilings:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x13-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2043\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x13-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x13-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_7x13.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_8x13-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2042\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_8x13-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_8x13-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_8x13.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x11-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2041\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x11-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x11-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_5x11.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><img decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x13-150x150.png\" alt=\"\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-2040\" loading=\"lazy\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x13-150x150.png 150w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x13-300x300.png 300w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2017\/05\/squarethesquare_11x13.png 500w\" sizes=\"auto, (max-width: 150px) 85vw, 150px\" \/><\/p>\n<p>Some observations:<\/p>\n<ul>\n<li>Using even numbers doesn\u2019t necessarily lead to simple solutions when the canvas isn\u2019t square!\n<\/li>\n<li>Using sidelengths that are consecutive <a href=\"https:\/\/en.wikipedia.org\/wiki\/Fibonacci_number\">Fibonacci numbers<\/a> (e.g. the 8\u00d713 case above) leads to the famous approximation of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Golden_spiral\">Golden spiral<\/a>. Perhaps not surprising, but still very cool!\n<\/li>\n<\/ul>\n<p>If you\u2019d like to read more about the \u201csquaring the square\u201d problem and its long history, check out the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Squaring_the_square\">Wiki article<\/a> on it!<\/p>\n<\/div>\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>This Riddler puzzle is about tiling a square using smaller squares. You are handed a piece of paper containing the 13-by-13 square shown below, and you must divide it into some smaller square pieces. If you are only allowed to cut along the lines, what is the smallest number of squares you can divide this &hellip; <a href=\"https:\/\/laurentlessard.com\/bookproofs\/squaring-the-square\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Squaring the square&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[30,27,26,2],"class_list":["post-2024","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-riddler","tag-integer-programming","tag-linear-programming","tag-optimization","tag-riddler"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/2024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/comments?post=2024"}],"version-history":[{"count":12,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/2024\/revisions"}],"predecessor-version":[{"id":2059,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/2024\/revisions\/2059"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/media\/2034"}],"wp:attachment":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/media?parent=2024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/categories?post=2024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/tags?post=2024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}