Counting LEGO configurations
Pith reviewed 2026-05-11 01:44 UTC · model grok-4.3
The pith
The number of ways to form interlocking LEGO structures with a fixed number n of w-wide tiles is a polynomial in w of degree n-1.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors prove that the number of interlocking configurations of n parallel w x 1 LEGO tiles is a polynomial in w of degree n-1 for each fixed n, and they give these polynomials explicitly through n=14. They conjecture that the asymptotic number of two-dimensional structures grows as A(w) mu(w)^n / n and that three-dimensional structures built from 2 x 4 tiles grow as A mu^n / n^{3/2} with mu = 117.25 plus or minus 0.05.
What carries the argument
The incremental enumeration algorithm that adds one tile at a time while maintaining the interlocking condition to generate all distinct configurations exactly once.
Load-bearing premise
The enumeration algorithm produces each valid interlocking configuration exactly once with no omissions or duplicates for the sizes it reaches, and the sub-exponential correction factor of 1/n or 1/n^{3/2} inferred from small data persists at all larger n.
What would settle it
Computing the exact count for n=15 and a moderate w that fails to match the value predicted by the degree-14 polynomial, or obtaining counts for n around 30 whose growth rate deviates significantly from the conjectured mu^n / n after accounting for the prefactor.
Figures
read the original abstract
We discuss the problem of counting certain LEGO structures, primarily those comprising parallel $w \times 1$ tiles. These can be combined, as a single LEGO structure, by interlocking the tiles. %Alternatively, if the interlocking condition is relaxed, so that tiles can also be placed end-to-end, a greater number of possible configurations results. We also study the historically earlier problem of counting the number of ways to combine $2 \times 4$ LEGO tiles, which in this case gives a 3-dimensional structure. In all cases the number of configurations is dominated by an exponential growth term, $\mu^n$ where $n$ is the number of tiles. We present an algorithm for counting these various LEGO configurations, and use the data to estimate the asymptotics. We analyse the data so generated, and conjecture that, for the two-dimensional structures, the number of possible configurations grows like $A(w)\mu(w)^n/n,$ and we give numerical estimates for $A(w)$ and $\mu(w)$ for $w < 11,$ while for the three-dimensional structure the number of possible configurations is conjectured to grow like $A\mu^n/n^{3/2},$ where $\mu = 117.25 \pm 0.05.$ We also study the sequences that arise when we fix the number of tiles $n,$ and vary the tile size $w.$ We prove that the sequences are polynomials of degree $n-1,$ and we give these explicitly for $n=1 \ldots 14.$
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript proves that the number of interlocking configurations formed by n parallel w×1 LEGO tiles is a polynomial in w of degree n-1, supplying explicit formulas for n = 1 to 14. It describes an enumeration algorithm for both these 2D structures and for 3D assemblies of 2×4 tiles, generates counts for moderate n, and conjectures the asymptotic forms A(w) μ(w)^n / n (2D) and A μ^n / n^{3/2} (3D) with the numerical estimate μ = 117.25 ± 0.05.
Significance. The polynomial theorem is a self-contained combinatorial result that stands on its own and supplies concrete closed-form expressions up to n=14. If the conjectured growth rates are later confirmed, the numerical values of μ(w) and A(w) for w < 11 would furnish useful benchmarks for the study of exponential growth in geometrically constrained assemblies. The explicit polynomials constitute a clear, verifiable contribution regardless of the status of the asymptotics.
major comments (3)
- [Enumeration algorithm section] Enumeration algorithm section: no formal proof of correctness or completeness is supplied for the procedure that produces the counts from which μ(w), A(w) and the 3D constants are fitted. Because the asymptotic conjectures rest entirely on these counts, the absence of a correctness argument or released source code/raw data prevents independent verification and constitutes a load-bearing gap.
- [Asymptotics section] Asymptotics section: the sub-exponential factors 1/n (2D) and 1/n^{3/2} (3D) are inferred by fitting finite data rather than derived; the manuscript does not state the precise range of n used, report fit diagnostics, or test whether the assumed form continues to hold for larger n.
- [3D conjecture paragraph] 3D conjecture paragraph: the estimate μ = 117.25 ± 0.05 is presented without the underlying count table, the values of n employed in the fit, or any measure of fit quality, making it impossible to assess the precision or stability of the quoted uncertainty.
minor comments (3)
- [Abstract] Abstract: the 3D asymptotic form is written as A μ^n / n^{3/2} but no numerical value or estimate for A is supplied, in contrast to the 2D case where both A(w) and μ(w) are discussed.
- [Abstract] The phrase 'for w < 11' should be clarified to indicate whether it means w = 1,…,10 or w ≤ 10.
- A small illustrative figure showing a valid versus invalid interlocking configuration for small w and n would improve readability of the combinatorial definition.
Simulated Author's Rebuttal
We thank the referee for the careful reading and the positive assessment of the polynomial result as a self-contained contribution. We address each major comment below, indicating the revisions we will make to strengthen verifiability while remaining honest about the conjectural nature of the asymptotics.
read point-by-point responses
-
Referee: [Enumeration algorithm section] Enumeration algorithm section: no formal proof of correctness or completeness is supplied for the procedure that produces the counts from which μ(w), A(w) and the 3D constants are fitted. Because the asymptotic conjectures rest entirely on these counts, the absence of a correctness argument or released source code/raw data prevents independent verification and constitutes a load-bearing gap.
Authors: The enumeration algorithm is described in the manuscript as a recursive procedure that adds tiles while checking the interlocking condition for parallel w×1 tiles (and analogously for 2×4 tiles in 3D). We acknowledge that no formal proof of completeness or absence of overcounting is supplied. In revision we will add a detailed step-by-step description together with a proof sketch arguing that every valid configuration is reached exactly once by construction of the recursion and the pruning rules. We also commit to depositing the source code and the raw count tables in a public repository upon acceptance, directly addressing the verification concern. revision: partial
-
Referee: [Asymptotics section] Asymptotics section: the sub-exponential factors 1/n (2D) and 1/n^{3/2} (3D) are inferred by fitting finite data rather than derived; the manuscript does not state the precise range of n used, report fit diagnostics, or test whether the assumed form continues to hold for larger n.
Authors: The sub-exponential factors are indeed obtained by numerical fitting rather than analytic derivation; a rigorous derivation lies beyond the combinatorial scope of the paper. We will revise the asymptotics section to state explicitly the n-ranges used (n = 5…25 for the 2D families and n = 5…15 for 3D), to report standard fit diagnostics (R² and residual standard error), and to include a brief stability check by refitting on successive data subsets. These additions will make the conjectural status and the supporting evidence transparent. revision: yes
-
Referee: [3D conjecture paragraph] 3D conjecture paragraph: the estimate μ = 117.25 ± 0.05 is presented without the underlying count table, the values of n employed in the fit, or any measure of fit quality, making it impossible to assess the precision or stability of the quoted uncertainty.
Authors: We agree that the 3D fit lacks supporting detail. In the revision we will insert a short table of the 3D counts for the n values actually used, state the precise fitting interval (n = 4…12), and supply the regression diagnostics (standard error of the estimate and R²). This will allow readers to judge the quoted uncertainty directly. revision: yes
Circularity Check
No circularity: independent polynomial proofs and explicitly labeled conjectures from enumeration data
full rationale
The paper proves that sequences for fixed n and varying w are polynomials of degree n-1 with explicit forms up to n=14; this stands as a self-contained combinatorial argument. Asymptotic forms are presented strictly as conjectures obtained by fitting parameters to counts from the described enumeration algorithm, without any claim that the functional form or constants are derived by construction from the inputs themselves. No self-definitional equations, mislabeled fitted predictions, load-bearing self-citations, or imported uniqueness results appear. Concerns about algorithm verification belong to correctness rather than circularity.
Axiom & Free-Parameter Ledger
free parameters (4)
- mu(w) =
numerical estimates given for w < 11
- A(w) =
numerical estimates given for w < 11
- mu (3D) =
117.25 plus or minus 0.05
- A (3D)
axioms (2)
- domain assumption Valid LEGO configurations can be generated recursively by adding one tile at a time while enforcing the interlocking condition.
- ad hoc to paper The asymptotic form is constant times mu to the n divided by n to a small power.
Lean theorems connected to this paper
-
IndisputableMonolith/Foundation/ArithmeticFromLogic.leanLogicNat recovery and polynomial embedding unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
We prove that the sequences that arise when we fix the number of tiles n, and vary the tile size w are polynomials of degree n-1... pn(w) = sum an,k binom(w-1,k-1)
-
IndisputableMonolith/Foundation/AlphaCoordinateFixation.leanJcost uniqueness and higher-derivative calibration unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
the number of possible configurations grows like A(w) μ(w)^n / n ... or A μ^n / n^{3/2}
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
-
[1]
M Abrahamsen and S Eilers,Experimental Mathematics,20(2) 144-152, (2011)
work page 2011
-
[2]
J K Christiansen,Taljonglering med klosder-eller talrige klodser, Klodshans (LEGO company newsletter), (1974)
work page 1974
- [3]
-
[4]
S Eilers,The LEGO counting problem, The American Mathematical monthly,123 (5) 415–426 (2016)
work page 2016
-
[5]
M. Fekete,Über die Verteilung der Wurzeln bei gewissen algebraischen Gleichungen mit ganzzahligen Koeffizienten, Math. Zeit.17228–249 (1923)
work page 1923
-
[6]
A J Guttmann, Springer, (Heidelberg), 2009
A J Guttmann,Polygons, Polyominoes and PolycubesLecture Notes in Physics775, ed. A J Guttmann, Springer, (Heidelberg), 2009
work page 2009
-
[7]
A J Guttmann,Series extension: predicting approximate series coefficients from a finite number of exact coefficients, J. Phys. A: Math. Theor.49415002 (27pp), (2016)
work page 2016
-
[8]
Enting and Iwan Jensen,Exact Enumerations, Polygons, Polyominoes and Polycubes, ed
Ian G. Enting and Iwan Jensen,Exact Enumerations, Polygons, Polyominoes and Polycubes, ed. A J Guttmann, Springer (143-180pp) (2009)
work page 2009
-
[9]
B Durhuus and S Eilers,Enumeration of pyramids of one-dimensional pieces of arbitrary fixed integer length, Discrete Mathematics and Computer Science proc. (145-160pp) (2010)
work page 2010
-
[10]
R M Nilsson,On the number of flat LEGO structures, Master’s thesis in Mathemat- ics, University of Copenhagen, (2016)
work page 2016
-
[11]
,The On-Line Encyclopaedia of Integer Sequences, OEIS Foundation Inc. (2014), https://oeis.org 23
work page 2014
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.