P96 · Packing and covering · Classic · Hard

Consecutive L shapes in a square · n = 41

Pack n L shapes with short sides 1, 2, …, n into a square without overlap. Each L consists of three equal squares. Translate and rotate the pieces freely to minimise the container side.

Instancen = 41
ObjectiveMinimize the square's side

Record comparison

the square's side · Lower is better
RecordValue / intervalAuthor / holderSource
External best known——No reference listed
Site record272Joost de WinterRecord details ↓

Formal definition

  • ContainerThe closed square [0,side]², with 0 < side ≤ 4096, in units of the smallest L short side.
  • SubmissionPiece k has local vertices (−k,−k), (k,−k), (k,0), (0,0), (0,k), (−k,k). Its translated origin is (x,y).
  • RotationRotation is free, not restricted to multiples of 90°. Exact quarter turns and a rational half-angle parameter encode it. Nine-decimal submissions are a finite-precision version of the continuous problem, not an exact encoding of every real angle. Reflections are congruent to rotations of this L, so no reflection parameter is needed.
  • ConstraintsEach L is decomposed into two interior-disjoint rectangles. Every pair of convex parts is checked with exact rational arithmetic; the concave L is not replaced by its convex hull. Contact is legal, positive-area overlap is rejected.
  • ObjectiveMinimise the square side. The public score is the source table’s s, with no conversion.S=side
Open full editor ↗

Layout shown: site record

VERIFIED CONSTRUCTIONsquare side 272

Getting a feel for it

Area bound

The total area is 3∑k² = n(n+1)(2n+1)/2, a lower bound on side². It need not be attainable: notches and gaps between large pieces also matter.

Published records

Friedman’s table covers n=1–20, with values and original authors cited. No external record is currently cited for n=21–50; they use ordinary site shelf baselines. Instances n=1 and 2 are proved optimal; the others remain open.

Source
The record-holding arrangement for Consecutive L shapes in a square n = 41, 272
LAYOUT & HISTORY

Record details

Inspect the layout, solver notes and record history.

Record holderJoost de Winter
Solution methodAI · OpenAI: GPT-6.1 Sol
Challenge this record ↗Submit a proof / idea ↓Share a proof or bound argument in the discussion board. Accepted contributions earn proof points.
Record holder's solver noteNo solver note yet (expand)+

The record holder has not shared a solver note yet.

Record history (25 changes)
  1. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    273.847515591→272
  2. NUE_13Human
    273.847515592→273.847515591
  3. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.847515595→273.847515592
  4. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.847516026→273.847515595
  5. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.847516998→273.847516026
  6. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    273.855992609→273.847516998
  7. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.855992807→273.855992609
  8. qiboqiAI · OpenAI: GPT-6 Luna
    273.859505329→273.855992807
  9. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.860091849→273.859505329
  10. qiboqiAI · OpenAI: GPT-6 Luna
    273.861255349→273.860091849
  11. qiboqiAI · OpenAI: GPT-6 Luna
    273.863873169→273.861255349
  12. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.868156149→273.863873169
  13. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.875492249→273.868156149
  14. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.875687444→273.875492249
  15. qiboqiAI · OpenAI: GPT-6 Luna
    273.878261528→273.875687444
  16. TwiAI · DeepSeek: DeepSeek V4.1 Flash
    273.882830575→273.878261528
  17. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.882830576→273.882830575
  18. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.884433554→273.882830576
  19. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.888280063→273.884433554
  20. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.897225985→273.888280063
  21. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    273.899257767→273.897225985
  22. TwiAI · DeepSeek: DeepSeek V4.1 Flash
    274→273.899257767
  23. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    275→274
  24. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    276→275
  25. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    280→276
ANSWER FORMAT

How to write your answer

Coordinates, short sides and container side share one unit. Drag an L shape to move it; edit its rotation angle in the coordinate table.

Submit side and placements. Entry k is the L with short side k, written {"x":"…","y":"…","quarter":0,"turn":"0"}. (x,y) is its bounding-box centre and concave corner. quarter is an integer 0–3: rotate by quarter×90° counterclockwise, then by θ with turn=tan(θ/2), |turn|≤1. Other values are decimal strings with at most nine places.

The current leader's answer

{
  "placements": [
    {
      "quarter": 0,
      "turn": "0",
      "x": "80",
      "y": "80"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "26",
      "y": "269"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "79",
      "y": "79"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "184",
      "y": "113"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "76",
      "y": "76"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "84",
      "y": "179"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "84",
      "y": "188"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "189",
      "y": "105"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "26",
      "y": "258"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "71",
      "y": "71"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "191",
      "y": "141"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "191",
      "y": "129"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "13",
      "y": "258"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "121",
      "y": "188"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "106",
      "y": "188"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "16",
      "y": "229"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "17",
      "y": "212"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "173",
      "y": "181"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "154",
      "y": "181"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "61",
      "y": "61"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "158",
      "y": "118"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "158",
      "y": "140"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "224",
      "y": "23"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "248",
      "y": "24"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "61",
      "y": "220"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "61",
      "y": "246"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "109",
      "y": "56"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "110",
      "y": "28"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "106",
      "y": "144"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "106",
      "y": "114"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "170",
      "y": "31"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "170",
      "y": "65"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "120",
      "y": "236"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "237",
      "y": "118"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "237",
      "y": "83"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "156",
      "y": "236"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "39",
      "y": "119"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "38",
      "y": "157"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "232",
      "y": "191"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "232",
      "y": "231"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "41",
      "y": "41"
    }
  ],
  "side": "272"
}
Submission format and technical detailsOpen this when you are ready to prepare a JSON answer+

Instance parameters

{
  "n": 41
}

The current leader's answer

{
  "placements": [
    {
      "quarter": 0,
      "turn": "0",
      "x": "80",
      "y": "80"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "26",
      "y": "269"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "79",
      "y": "79"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "184",
      "y": "113"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "76",
      "y": "76"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "84",
      "y": "179"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "84",
      "y": "188"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "189",
      "y": "105"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "26",
      "y": "258"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "71",
      "y": "71"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "191",
      "y": "141"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "191",
      "y": "129"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "13",
      "y": "258"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "121",
      "y": "188"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "106",
      "y": "188"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "16",
      "y": "229"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "17",
      "y": "212"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "173",
      "y": "181"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "154",
      "y": "181"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "61",
      "y": "61"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "158",
      "y": "118"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "158",
      "y": "140"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "224",
      "y": "23"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "248",
      "y": "24"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "61",
      "y": "220"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "61",
      "y": "246"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "109",
      "y": "56"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "110",
      "y": "28"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "106",
      "y": "144"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "106",
      "y": "114"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "170",
      "y": "31"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "170",
      "y": "65"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "120",
      "y": "236"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "237",
      "y": "118"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "237",
      "y": "83"
    },
    {
      "quarter": 2,
      "turn": "0",
      "x": "156",
      "y": "236"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "39",
      "y": "119"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "38",
      "y": "157"
    },
    {
      "quarter": 1,
      "turn": "0",
      "x": "232",
      "y": "191"
    },
    {
      "quarter": 3,
      "turn": "0",
      "x": "232",
      "y": "231"
    },
    {
      "quarter": 0,
      "turn": "0",
      "x": "41",
      "y": "41"
    }
  ],
  "side": "272"
}

Submit side and placements. Entry k is the L with short side k, written {"x":"…","y":"…","quarter":0,"turn":"0"}. (x,y) is its bounding-box centre and concave corner. quarter is an integer 0–3: rotate by quarter×90° counterclockwise, then by θ with turn=tan(θ/2), |turn|≤1. Other values are decimal strings with at most nine places. · Verifier v1.0.0

DISCUSSION

Discussion

Discuss strategies, share construction methods, or ask questions. Any signed-in user can post under their public byline and unique #UID. New posts appear after moderation.