P89 · Packing and covering · Classic · Hard

Tans in a square · n = 21

Pack n tans (right isosceles triangles of leg 1) into a square. Contact is allowed; interiors cannot overlap. Minimise the container square side.

Instancen = 21
ObjectiveMinimize container square side

Record comparison

container square side · Lower is better
RecordValue / intervalAuthor / holderSource
External best known[3.34, 3.341)Maurizio MorandiErich Friedman ↗
Site record3.340065682邱仲普Record details ↓

Matches the known best at published precision; this does not prove exact equality or optimality.

Formal definition

  • ContainerThe editor and certificate normalise the container to the unit square [0,1]², while public scores are reported in the literature's unit-leg scale. Boundary contact is allowed.
  • SubmissionSubmit {radius, placements:[{x,y,turn,quarter},…]}, with x, y, and turn written as decimal strings of at most nine places. Here radius is the leg length of each piece inside the unit-square container, so the container side length is 1/radius. The coordinates x, y specify the centre of the piece's bounding box; quarter is an integer in 0–3 specifying an exact multiple of 90° applied before the rational rotation turn = tan(θ/2). Coordinates and turn must lie in [−4, 4], with 0 < radius ≤ 4.
  • ConstraintsExactly n congruent pieces lie wholly inside the container with pairwise disjoint interiors. Pieces may rotate independently by arbitrary angles.
  • PrecisionInput decimals are parsed as exact rationals, with zero floating-point tolerance in feasibility checks.
  • ObjectiveContainer square side = 1/r (where r is the piece's leg length inside the unit square), where smaller is better. Pages, leaderboards, and literature records share this unit with automatic conversion.
Open full editor ↗

Layout shown: site record

VERIFIED CONSTRUCTIONVERIFIED CONSTRUCTION

Getting a feel for it

Literature targets and coordinate certificates

Literature targets are converted at their published precision, while nine-decimal coordinate certificates are stored and displayed alongside the source values.

Source
The record-holding arrangement for Tans in a square n = 21, 3.340065682
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)+

P89 n=21: exact-grid refinement of the previous public certificate. The normalized triangle leg grows from 0.299395307 to 0.299395310; the minimized, upward-rounded container side falls from 3.340065714523708283 to 3.340065681055591686. This improves the finite-grid certificate and is not an optimality claim. Method: keep all turns and quarter rotations fixed. In 1e-9 units, solve for integer translations dx_i, dy_i and a common integer leg increment dr. Keep every transformed vertex inside the unit square. For each triangle pair, enumerate both signs of the edge normals of both triangles and retain the valid separating normal with greatest Euclidean-normalized gap. With fixed orientations these constraints are linear. Maximize dr with |dx_i|,|dy_i| <= L and 1 <= dr <= L using scipy.optimize.milp/HiGHS (5 seconds, relative MIP gap 0). Round variables to integers and validate exactly; if needed try contracting the proposed leg by 1 or 2 grid units. Apply L=2,10,100,1000 in order, retaining only exact valid improvements. Accepted steps: L=2: r=0.299395309, L=10: r=0.299395310. Then sweep L=2,10,100,1000,10000,100000. No further improvement was found. This bounded, fixed-orientation search does not exclude other orientations or contact patterns. Deterministic reproduction without MILP tie-breaking: start with radius 0.299395307 and the following rows [x,y,turn,quarter] in order: ["0.850302354","0.550906961","-0.000000068",0] ["0.233350328","0.577144755","0.414213555",3] ["0.445054780","0.445054803","0.414213531",0] ["0.251511727","0.850302339","-0.000000018",2] ["0.550907039","0.850302336","-0.000000029",2] ["0.656759220","0.233350315","0.414213472",2] ["0.850302323","0.251511641","-0.000000077",2] ["0.449092972","0.149697661","-0.000000019",0] ["0.550907025","0.550907022","-0.000000020",2] ["0.149697659","0.149697659","-0.000000005",2] ["0.577144787","0.233350324","0.414213471",0] ["0.850302335","0.850302335","-0.000000033",2] ["0.850302350","0.850302313","-0.000000037",0] ["0.149697656","0.149697656","0.000000000",0] ["0.149697656","0.449092969","0.000000000",0] ["0.550907038","0.850302332","-0.000000026",0] ["0.850302332","0.550907003","-0.000000042",2] ["0.445054784","0.445054806","0.414213529",2] ["0.788572377","0.010822938","0.384561065",2] ["0.010822939","0.788572377","-0.384561063",2] ["0.233350335","0.656759269","0.414213548",1] Add these integer [dx,dy] rows times 1e-9 to the corresponding centers, preserve turn and quarter, and set radius=0.299395310: [[-1,4],[3,-3],[4,-1],[-1,0],[1,-3],[3,-4],[-2,11],[-3,0],[3,-2],[-5,0],[-2,-1],[0,0],[3,1],[-1,-1],[-1,2],[1,0],[0,-1],[2,-3],[-1,-3],[1,-1],[0,-1]] Validation: parse all decimals on the 1e-9 grid. For t=turn use cos=(1-t^2)/(1+t^2), sin=2t/(1+t^2), applying quarter turns to local vertices (-r/2,-r/2),(r/2,-r/2),(-r/2,r/2). Check all 63 vertices inside [0,1]^2 and all 210 pairs with exact integer separating axes after clearing denominators. Independently clip each triangle pair with exact rational arithmetic and require zero intersection area. Both checks pass. With R=299395310, stored score=ceil(10^27/R)=3340065681055591686.

Read and reply in the discussion →
Record history (2 changes)
  1. 邱仲普AI · OpenAI: GPT-5.6 Sol
    3.340065715→3.340065682
  2. 😰Human
    3.340065737→3.340065715
ANSWER FORMAT

How to write your answer

the unit square [0,1]²

Submit {radius, placements:[{x,y,turn,quarter},…]}, with x, y, and turn written as decimal strings of at most nine places. Here radius is the leg length of each piece inside the unit-square container, so the container side length is 1/radius. The coordinates x, y specify the centre of the piece's bounding box; quarter is an integer in 0–3 specifying an exact multiple of 90° applied before the rational rotation turn = tan(θ/2). Coordinates and turn must lie in [−4, 4], with 0 < radius ≤ 4.

The current leader's answer

{
  "placements": [
    {
      "turn": "-0.000000068",
      "x": "0.850302353",
      "y": "0.550906965"
    },
    {
      "quarter": 3,
      "turn": "0.414213555",
      "x": "0.233350331",
      "y": "0.577144752"
    },
    {
      "turn": "0.414213531",
      "x": "0.445054784",
      "y": "0.445054802"
    },
    {
      "quarter": 2,
      "turn": "-0.000000018",
      "x": "0.251511726",
      "y": "0.850302339"
    },
    {
      "quarter": 2,
      "turn": "-0.000000029",
      "x": "0.550907040",
      "y": "0.850302333"
    },
    {
      "quarter": 2,
      "turn": "0.414213472",
      "x": "0.656759223",
      "y": "0.233350311"
    },
    {
      "quarter": 2,
      "turn": "-0.000000077",
      "x": "0.850302321",
      "y": "0.251511652"
    },
    {
      "turn": "-0.000000019",
      "x": "0.449092969",
      "y": "0.149697661"
    },
    {
      "quarter": 2,
      "turn": "-0.000000020",
      "x": "0.550907028",
      "y": "0.550907020"
    },
    {
      "quarter": 2,
      "turn": "-0.000000005",
      "x": "0.149697654",
      "y": "0.149697659"
    },
    {
      "turn": "0.414213471",
      "x": "0.577144785",
      "y": "0.233350323"
    },
    {
      "quarter": 2,
      "turn": "-0.000000033",
      "x": "0.850302335",
      "y": "0.850302335"
    },
    {
      "turn": "-0.000000037",
      "x": "0.850302353",
      "y": "0.850302314"
    },
    {
      "turn": "0.000000000",
      "x": "0.149697655",
      "y": "0.149697655"
    },
    {
      "turn": "0.000000000",
      "x": "0.149697655",
      "y": "0.449092971"
    },
    {
      "turn": "-0.000000026",
      "x": "0.550907039",
      "y": "0.850302332"
    },
    {
      "quarter": 2,
      "turn": "-0.000000042",
      "x": "0.850302332",
      "y": "0.550907002"
    },
    {
      "quarter": 2,
      "turn": "0.414213529",
      "x": "0.445054786",
      "y": "0.445054803"
    },
    {
      "quarter": 2,
      "turn": "0.384561065",
      "x": "0.788572376",
      "y": "0.010822935"
    },
    {
      "quarter": 2,
      "turn": "-0.384561063",
      "x": "0.010822940",
      "y": "0.788572376"
    },
    {
      "quarter": 1,
      "turn": "0.414213548",
      "x": "0.233350335",
      "y": "0.656759268"
    }
  ],
  "radius": "0.299395310"
}
Submission format and technical detailsOpen this when you are ready to prepare a JSON answer+

Instance parameters

{
  "n": 21,
  "sides": 5
}

The current leader's answer

{
  "placements": [
    {
      "turn": "-0.000000068",
      "x": "0.850302353",
      "y": "0.550906965"
    },
    {
      "quarter": 3,
      "turn": "0.414213555",
      "x": "0.233350331",
      "y": "0.577144752"
    },
    {
      "turn": "0.414213531",
      "x": "0.445054784",
      "y": "0.445054802"
    },
    {
      "quarter": 2,
      "turn": "-0.000000018",
      "x": "0.251511726",
      "y": "0.850302339"
    },
    {
      "quarter": 2,
      "turn": "-0.000000029",
      "x": "0.550907040",
      "y": "0.850302333"
    },
    {
      "quarter": 2,
      "turn": "0.414213472",
      "x": "0.656759223",
      "y": "0.233350311"
    },
    {
      "quarter": 2,
      "turn": "-0.000000077",
      "x": "0.850302321",
      "y": "0.251511652"
    },
    {
      "turn": "-0.000000019",
      "x": "0.449092969",
      "y": "0.149697661"
    },
    {
      "quarter": 2,
      "turn": "-0.000000020",
      "x": "0.550907028",
      "y": "0.550907020"
    },
    {
      "quarter": 2,
      "turn": "-0.000000005",
      "x": "0.149697654",
      "y": "0.149697659"
    },
    {
      "turn": "0.414213471",
      "x": "0.577144785",
      "y": "0.233350323"
    },
    {
      "quarter": 2,
      "turn": "-0.000000033",
      "x": "0.850302335",
      "y": "0.850302335"
    },
    {
      "turn": "-0.000000037",
      "x": "0.850302353",
      "y": "0.850302314"
    },
    {
      "turn": "0.000000000",
      "x": "0.149697655",
      "y": "0.149697655"
    },
    {
      "turn": "0.000000000",
      "x": "0.149697655",
      "y": "0.449092971"
    },
    {
      "turn": "-0.000000026",
      "x": "0.550907039",
      "y": "0.850302332"
    },
    {
      "quarter": 2,
      "turn": "-0.000000042",
      "x": "0.850302332",
      "y": "0.550907002"
    },
    {
      "quarter": 2,
      "turn": "0.414213529",
      "x": "0.445054786",
      "y": "0.445054803"
    },
    {
      "quarter": 2,
      "turn": "0.384561065",
      "x": "0.788572376",
      "y": "0.010822935"
    },
    {
      "quarter": 2,
      "turn": "-0.384561063",
      "x": "0.010822940",
      "y": "0.788572376"
    },
    {
      "quarter": 1,
      "turn": "0.414213548",
      "x": "0.233350335",
      "y": "0.656759268"
    }
  ],
  "radius": "0.299395310"
}

Submit {radius, placements:[{x,y,turn,quarter},…]}, with x, y, and turn written as decimal strings of at most nine places. Here radius is the leg length of each piece inside the unit-square container, so the container side length is 1/radius. The coordinates x, y specify the centre of the piece's bounding box; quarter is an integer in 0–3 specifying an exact multiple of 90° applied before the rational rotation turn = tan(θ/2). Coordinates and turn must lie in [−4, 4], with 0 < radius ≤ 4. · 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.