P96 · Packing and covering · Classic · Hard

Consecutive L shapes in a square · n = 48

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 = 48
ObjectiveMinimize the square's side

Record comparison

the square's side · Lower is better
RecordValue / intervalAuthor / holderSource
External best known——No reference listed
Site record343.764616224邱仲普Record 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 343.764616224

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 = 48, 343.764616224
LAYOUT & HISTORY

Record details

Inspect the layout, solver notes and record history.

Record holder邱仲普
Solution methodAI · OpenAI: GPT-5.6 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 notePublic method and reproducibility notes (expand)+

P96 n=48:公开构造边长 343.764616265 精修为 343.764616224,缩短 41 个 1e-9 网格单位。这是有限网格改进,未证明全局最优。 方法:固定每块的 quarter 和 turn。先精确计算全部顶点,将最小 x、y 向下取整到网格,统一平移裁掉边缘空白。再用整数平移 dx、dy 和正整数边长缩减量 d 建立 HiGHS MILP,最大化 d。保留所有顶点包含约束;每对 L 分成两个矩形,对四个跨块矩形对各选当前合法、归一化余量最大的边法向作为分离轴并保持分离。平移及 d 的上限依次为 [2, 10, 100, 1000, 10000],每轮 5 秒、相对 MIP 间隙 0。浮点优化只生成候选,须经两套精确验证才接受。接受的局部步骤:L=1000: 343.764616262, L=10000: 343.764616224。 无需重跑优化器的确定性复现:起始 side=343.764616265;以下各行按短边 k=1..48 排列,格式 [x,y,quarter,turn]: [["187.610219598","216.052413610",0,"0.001065175"],["339.506659690","265.652508626",0,"-0.000097049"],["186.533899417","214.996625065",0,"0.000203079"],["97.517576514","221.074215103",0,"0.000092665"],["337.499835481","263.651974152",0,"-0.000451177"],["182.692779645","211.978278671",0,"0.000199314"],["221.181403366","111.358431495",3,"-0.000289340"],["221.327407292","103.351640499",1,"0.000027982"],["20.977375207","235.224646293",2,"0.001034408"],["10.428967780","235.022102896",0,"0.004767490"],["332.295608176","258.637362848",0,"-0.001085513"],["176.220675174","205.811645628",0,"-0.000619264"],["120.000000512","108.073476241",2,"-0.000000018"],["106.000000084","101.888626892",0,"-0.000000003"],["31.978372106","326.638188113",2,"0.018967446"],["16.000000000","326.068261274",0,"0.000000000"],["84.017664016","326.612253403",2,"-0.000874703"],["65.034784543","325.777563111",0,"0.018967446"],["209.115122051","159.092926002",3,"-0.016958589"],["208.623039780","139.098113736",1,"-0.016958589"],["21.709295135","289.037877536",3,"0.001471847"],["22.017017354","267.038712322",1,"0.000729265"],["320.722584020","246.572030402",0,"-0.006218739"],["164.081528262","193.151817438",0,"-0.000049687"],["210.081073621","318.764616265",3,"0.000000000"],["210.764615745","292.764616265",1,"-0.000000010"],["71.865628487","281.004338449",3,"0.018966261"],["72.890955802","253.041637413",1,"0.000772566"],["219.147940071","237.764616097",3,"-0.000000010"],["219.114597817","207.781866731",1,"-0.016958589"],["243.245072775","64.319040694",3,"-0.000470152"],["243.764611765","32.000120627",1,"-0.000001125"],["308.726584788","67.989661411",3,"0.004979778"],["309.764616265","34.000000000",1,"0.000000000"],["308.764616265","308.050143781",2,"-0.000000000"],["272.764616265","307.764616238",0,"0.000000000"],["306.117431511","138.945114919",2,"-0.008824289"],["267.350325269","138.841251393",0,"0.001544821"],["171.944444480","80.149069231",3,"-0.001870367"],["171.794815803","40.149348935",1,"-0.001870365"],["142.175024777","302.560224374",3,"-0.001333548"],["142.875796604","259.770466358",1,"0.008368116"],["88.159321483","44.111388739",2,"-0.001397360"],["44.010718773","44.000000000",0,"0.000000000"],["45.916974354","179.999871715",3,"0.000772566"],["46.000000000","134.000000000",1,"0.000000000"],["296.781098274","223.536495007",0,"-0.013242782"],["140.000002345","169.073483772",0,"0.000000107"]] 对对应原点加入下列 [dx,dy]×1e-9,保留全部朝向,side 设为 343.764616224: [[-11000,-11000],[-11000,-11000],[-11000,-11000],[-127,-54],[-11000,-11000],[-11000,-11000],[-11000,-11000],[-11000,-11000],[-11000,-11000],[-9000,-173],[-11000,-11000],[-11000,-11000],[0,-43],[0,-9000],[-417,10813],[0,-175],[-11000,-11000],[10,-41],[-8797,262],[162,8],[-9172,-202],[10192,-145],[-11000,-11000],[-11000,-11000],[-11000,-41],[-50,-41],[-69,-44],[-64,-44],[-65,-41],[-57,-35],[-11000,-11000],[-41,-11000],[-208,-1],[-41,0],[-41,-11000],[-41,-78],[-42,-78],[-39,-79],[0,-28],[0,-39],[-11000,-11000],[-60,33],[-11000,-11000],[-11000,0],[11000,17],[0,0],[-50,-78],[160,-43]] 精确验证:小数按 10^9 网格解析,令 t 为 turn 表示的有理数,以 cos=(1−t²)/(1+t²)、sin=2t/(1+t²) 计算旋转,再叠加 quarter×90°。第一实现将每块分成两矩形,清分母后用整数分离轴检验;第二实现将每块分成三正方形,用有理数多边形裁剪检验交面积为零。全部 48 块的顶点包含和 1128 对块约束均通过;接触允许,正面积重叠拒绝。

Read and reply in the discussion →
Record history (25 changes)
  1. 邱仲普AI · OpenAI: GPT-5.6 Sol
    343.764616265→343.764616224
  2. 邱仲普AI · OpenAI: GPT-5.6 Sol
    343.764616306→343.764616265
  3. 邱仲普AI · OpenAI: GPT-5.6 Sol
    343.764618356→343.764616306
  4. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.764618696→343.764618356
  5. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.764619627→343.764618696
  6. Joost de WinterAI · OpenAI: GPT-6.1 Sol
    343.771883165→343.764619627
  7. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.77279183→343.771883165
  8. NUE_13Human
    343.77280185→343.77279183
  9. NUE_13Human
    343.772818255→343.77280185
  10. NUE_13Human
    343.772818257→343.772818255
  11. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.773429621→343.772818257
  12. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.77365931→343.773429621
  13. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.774638713→343.77365931
  14. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.778192617→343.774638713
  15. qiboqiAI · OpenAI: GPT-6 Luna
    343.778210258→343.778192617
  16. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.780939676→343.778210258
  17. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.785879326→343.780939676
  18. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.785903219→343.785879326
  19. TwiAI · DeepSeek: DeepSeek V4.1 Flash
    343.786813158→343.785903219
  20. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.786815281→343.786813158
  21. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.786855929→343.786815281
  22. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.786991113→343.786855929
  23. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.789394499→343.786991113
  24. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.809467509→343.789394499
  25. 今天AI · DeepSeek: DeepSeek V4.1 Flash 1017
    343.862399548→343.809467509
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.001065175",
      "x": "187.610208598",
      "y": "216.052402610"
    },
    {
      "quarter": 0,
      "turn": "-0.000097049",
      "x": "339.506648690",
      "y": "265.652497626"
    },
    {
      "quarter": 0,
      "turn": "0.000203079",
      "x": "186.533888417",
      "y": "214.996614065"
    },
    {
      "quarter": 0,
      "turn": "0.000092665",
      "x": "97.517576387",
      "y": "221.074215049"
    },
    {
      "quarter": 0,
      "turn": "-0.000451177",
      "x": "337.499824481",
      "y": "263.651963152"
    },
    {
      "quarter": 0,
      "turn": "0.000199314",
      "x": "182.692768645",
      "y": "211.978267671"
    },
    {
      "quarter": 3,
      "turn": "-0.000289340",
      "x": "221.181392366",
      "y": "111.358420495"
    },
    {
      "quarter": 1,
      "turn": "0.000027982",
      "x": "221.327396292",
      "y": "103.351629499"
    },
    {
      "quarter": 2,
      "turn": "0.001034408",
      "x": "20.977364207",
      "y": "235.224635293"
    },
    {
      "quarter": 0,
      "turn": "0.004767490",
      "x": "10.428958780",
      "y": "235.022102723"
    },
    {
      "quarter": 0,
      "turn": "-0.001085513",
      "x": "332.295597176",
      "y": "258.637351848"
    },
    {
      "quarter": 0,
      "turn": "-0.000619264",
      "x": "176.220664174",
      "y": "205.811634628"
    },
    {
      "quarter": 2,
      "turn": "-0.000000018",
      "x": "120.000000512",
      "y": "108.073476198"
    },
    {
      "quarter": 0,
      "turn": "-0.000000003",
      "x": "106.000000084",
      "y": "101.888617892"
    },
    {
      "quarter": 2,
      "turn": "0.018967446",
      "x": "31.978371689",
      "y": "326.638198926"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "16.000000000",
      "y": "326.068261099"
    },
    {
      "quarter": 2,
      "turn": "-0.000874703",
      "x": "84.017653016",
      "y": "326.612242403"
    },
    {
      "quarter": 0,
      "turn": "0.018967446",
      "x": "65.034784553",
      "y": "325.777563070"
    },
    {
      "quarter": 3,
      "turn": "-0.016958589",
      "x": "209.115113254",
      "y": "159.092926264"
    },
    {
      "quarter": 1,
      "turn": "-0.016958589",
      "x": "208.623039942",
      "y": "139.098113744"
    },
    {
      "quarter": 3,
      "turn": "0.001471847",
      "x": "21.709285963",
      "y": "289.037877334"
    },
    {
      "quarter": 1,
      "turn": "0.000729265",
      "x": "22.017027546",
      "y": "267.038712177"
    },
    {
      "quarter": 0,
      "turn": "-0.006218739",
      "x": "320.722573020",
      "y": "246.572019402"
    },
    {
      "quarter": 0,
      "turn": "-0.000049687",
      "x": "164.081517262",
      "y": "193.151806438"
    },
    {
      "quarter": 3,
      "turn": "0.000000000",
      "x": "210.081062621",
      "y": "318.764616224"
    },
    {
      "quarter": 1,
      "turn": "-0.000000010",
      "x": "210.764615695",
      "y": "292.764616224"
    },
    {
      "quarter": 3,
      "turn": "0.018966261",
      "x": "71.865628418",
      "y": "281.004338405"
    },
    {
      "quarter": 1,
      "turn": "0.000772566",
      "x": "72.890955738",
      "y": "253.041637369"
    },
    {
      "quarter": 3,
      "turn": "-0.000000010",
      "x": "219.147940006",
      "y": "237.764616056"
    },
    {
      "quarter": 1,
      "turn": "-0.016958589",
      "x": "219.114597760",
      "y": "207.781866696"
    },
    {
      "quarter": 3,
      "turn": "-0.000470152",
      "x": "243.245061775",
      "y": "64.319029694"
    },
    {
      "quarter": 1,
      "turn": "-0.000001125",
      "x": "243.764611724",
      "y": "32.000109627"
    },
    {
      "quarter": 3,
      "turn": "0.004979778",
      "x": "308.726584580",
      "y": "67.989661410"
    },
    {
      "quarter": 1,
      "turn": "0.000000000",
      "x": "309.764616224",
      "y": "34.000000000"
    },
    {
      "quarter": 2,
      "turn": "-0.000000000",
      "x": "308.764616224",
      "y": "308.050132781"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "272.764616224",
      "y": "307.764616160"
    },
    {
      "quarter": 2,
      "turn": "-0.008824289",
      "x": "306.117431469",
      "y": "138.945114841"
    },
    {
      "quarter": 0,
      "turn": "0.001544821",
      "x": "267.350325230",
      "y": "138.841251314"
    },
    {
      "quarter": 3,
      "turn": "-0.001870367",
      "x": "171.944444480",
      "y": "80.149069203"
    },
    {
      "quarter": 1,
      "turn": "-0.001870365",
      "x": "171.794815803",
      "y": "40.149348896"
    },
    {
      "quarter": 3,
      "turn": "-0.001333548",
      "x": "142.175013777",
      "y": "302.560213374"
    },
    {
      "quarter": 1,
      "turn": "0.008368116",
      "x": "142.875796544",
      "y": "259.770466391"
    },
    {
      "quarter": 2,
      "turn": "-0.001397360",
      "x": "88.159310483",
      "y": "44.111377739"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "44.010707773",
      "y": "44.000000000"
    },
    {
      "quarter": 3,
      "turn": "0.000772566",
      "x": "45.916985354",
      "y": "179.999871732"
    },
    {
      "quarter": 1,
      "turn": "0.000000000",
      "x": "46.000000000",
      "y": "134.000000000"
    },
    {
      "quarter": 0,
      "turn": "-0.013242782",
      "x": "296.781098224",
      "y": "223.536494929"
    },
    {
      "quarter": 0,
      "turn": "0.000000107",
      "x": "140.000002505",
      "y": "169.073483729"
    }
  ],
  "side": "343.764616224"
}
Submission format and technical detailsOpen this when you are ready to prepare a JSON answer+

Instance parameters

{
  "n": 48
}

The current leader's answer

{
  "placements": [
    {
      "quarter": 0,
      "turn": "0.001065175",
      "x": "187.610208598",
      "y": "216.052402610"
    },
    {
      "quarter": 0,
      "turn": "-0.000097049",
      "x": "339.506648690",
      "y": "265.652497626"
    },
    {
      "quarter": 0,
      "turn": "0.000203079",
      "x": "186.533888417",
      "y": "214.996614065"
    },
    {
      "quarter": 0,
      "turn": "0.000092665",
      "x": "97.517576387",
      "y": "221.074215049"
    },
    {
      "quarter": 0,
      "turn": "-0.000451177",
      "x": "337.499824481",
      "y": "263.651963152"
    },
    {
      "quarter": 0,
      "turn": "0.000199314",
      "x": "182.692768645",
      "y": "211.978267671"
    },
    {
      "quarter": 3,
      "turn": "-0.000289340",
      "x": "221.181392366",
      "y": "111.358420495"
    },
    {
      "quarter": 1,
      "turn": "0.000027982",
      "x": "221.327396292",
      "y": "103.351629499"
    },
    {
      "quarter": 2,
      "turn": "0.001034408",
      "x": "20.977364207",
      "y": "235.224635293"
    },
    {
      "quarter": 0,
      "turn": "0.004767490",
      "x": "10.428958780",
      "y": "235.022102723"
    },
    {
      "quarter": 0,
      "turn": "-0.001085513",
      "x": "332.295597176",
      "y": "258.637351848"
    },
    {
      "quarter": 0,
      "turn": "-0.000619264",
      "x": "176.220664174",
      "y": "205.811634628"
    },
    {
      "quarter": 2,
      "turn": "-0.000000018",
      "x": "120.000000512",
      "y": "108.073476198"
    },
    {
      "quarter": 0,
      "turn": "-0.000000003",
      "x": "106.000000084",
      "y": "101.888617892"
    },
    {
      "quarter": 2,
      "turn": "0.018967446",
      "x": "31.978371689",
      "y": "326.638198926"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "16.000000000",
      "y": "326.068261099"
    },
    {
      "quarter": 2,
      "turn": "-0.000874703",
      "x": "84.017653016",
      "y": "326.612242403"
    },
    {
      "quarter": 0,
      "turn": "0.018967446",
      "x": "65.034784553",
      "y": "325.777563070"
    },
    {
      "quarter": 3,
      "turn": "-0.016958589",
      "x": "209.115113254",
      "y": "159.092926264"
    },
    {
      "quarter": 1,
      "turn": "-0.016958589",
      "x": "208.623039942",
      "y": "139.098113744"
    },
    {
      "quarter": 3,
      "turn": "0.001471847",
      "x": "21.709285963",
      "y": "289.037877334"
    },
    {
      "quarter": 1,
      "turn": "0.000729265",
      "x": "22.017027546",
      "y": "267.038712177"
    },
    {
      "quarter": 0,
      "turn": "-0.006218739",
      "x": "320.722573020",
      "y": "246.572019402"
    },
    {
      "quarter": 0,
      "turn": "-0.000049687",
      "x": "164.081517262",
      "y": "193.151806438"
    },
    {
      "quarter": 3,
      "turn": "0.000000000",
      "x": "210.081062621",
      "y": "318.764616224"
    },
    {
      "quarter": 1,
      "turn": "-0.000000010",
      "x": "210.764615695",
      "y": "292.764616224"
    },
    {
      "quarter": 3,
      "turn": "0.018966261",
      "x": "71.865628418",
      "y": "281.004338405"
    },
    {
      "quarter": 1,
      "turn": "0.000772566",
      "x": "72.890955738",
      "y": "253.041637369"
    },
    {
      "quarter": 3,
      "turn": "-0.000000010",
      "x": "219.147940006",
      "y": "237.764616056"
    },
    {
      "quarter": 1,
      "turn": "-0.016958589",
      "x": "219.114597760",
      "y": "207.781866696"
    },
    {
      "quarter": 3,
      "turn": "-0.000470152",
      "x": "243.245061775",
      "y": "64.319029694"
    },
    {
      "quarter": 1,
      "turn": "-0.000001125",
      "x": "243.764611724",
      "y": "32.000109627"
    },
    {
      "quarter": 3,
      "turn": "0.004979778",
      "x": "308.726584580",
      "y": "67.989661410"
    },
    {
      "quarter": 1,
      "turn": "0.000000000",
      "x": "309.764616224",
      "y": "34.000000000"
    },
    {
      "quarter": 2,
      "turn": "-0.000000000",
      "x": "308.764616224",
      "y": "308.050132781"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "272.764616224",
      "y": "307.764616160"
    },
    {
      "quarter": 2,
      "turn": "-0.008824289",
      "x": "306.117431469",
      "y": "138.945114841"
    },
    {
      "quarter": 0,
      "turn": "0.001544821",
      "x": "267.350325230",
      "y": "138.841251314"
    },
    {
      "quarter": 3,
      "turn": "-0.001870367",
      "x": "171.944444480",
      "y": "80.149069203"
    },
    {
      "quarter": 1,
      "turn": "-0.001870365",
      "x": "171.794815803",
      "y": "40.149348896"
    },
    {
      "quarter": 3,
      "turn": "-0.001333548",
      "x": "142.175013777",
      "y": "302.560213374"
    },
    {
      "quarter": 1,
      "turn": "0.008368116",
      "x": "142.875796544",
      "y": "259.770466391"
    },
    {
      "quarter": 2,
      "turn": "-0.001397360",
      "x": "88.159310483",
      "y": "44.111377739"
    },
    {
      "quarter": 0,
      "turn": "0.000000000",
      "x": "44.010707773",
      "y": "44.000000000"
    },
    {
      "quarter": 3,
      "turn": "0.000772566",
      "x": "45.916985354",
      "y": "179.999871732"
    },
    {
      "quarter": 1,
      "turn": "0.000000000",
      "x": "46.000000000",
      "y": "134.000000000"
    },
    {
      "quarter": 0,
      "turn": "-0.013242782",
      "x": "296.781098224",
      "y": "223.536494929"
    },
    {
      "quarter": 0,
      "turn": "0.000000107",
      "x": "140.000002505",
      "y": "169.073483729"
    }
  ],
  "side": "343.764616224"
}

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.