# Review of "The number of layers in an optimal 1324 packing grows logarithmically from both ends"

**Recommendation: minor revisions.**

The paper proves one clear claim. For fixed k ≥ 2, every exact layered maximizer of the pattern (1,k,1) at length n has 2 log n / log(1/α_k) + O_k(1) layers, ties included. This answers the question Sliačan and Stromquist ask in their §5 (scout copy `data/four.txt`, lines 756–760: "If L_n is the number of layers in a layered maximiser of length n, what can we say about L_n as n → ∞?"). I checked every step of the proof and found no gap. I also reran the computations. The changes I ask for are about context and the record card, not about correctness.

## What I checked

**The proof, step by step.**
- *Recurrence (1) and optimal prefixes.* A layer's contribution a·C(b−a,k)·(n−b) depends only on its own two boundaries. Replacing the prefix therefore cannot change any later term, so every step of a global optimizer attains (1).
- *Sandwich (2).* Correct: each right factor n−b_i lies between n−b and n.
- *One-ended estimate.* HSV Theorem 1.3 (`scout-layer-packing/data/one-sided.txt`, line 98) gives β(n−ℓ)^{ℓ+1}/(ℓ+1)! ≤ M_n ≤ β(n+δ_{2,ℓ})^{ℓ+1}/(ℓ+1)!. That is the M(b) = Cb^p + O(b^{p−1}) the paper uses, with C = β/p!.
- *Three-way split.* Splitting a layer leaves every other layer's left and right counts unchanged. For d ≥ 4k the falling-factorial ratio is at least 1/4 per factor, so the bound with 4^{−k} holds. The inequality as ≥ 4^{−k}(a+h)(s+h) does force a, s > 0 and min(a,s) ≥ 4^{−k}h.
- *Random-point enlargement.* Left factors never fall. Right factors fall by a factor of at most 1−1/(n−t). The identity w·C(w,k−1) ≥ k·C(w,k) holds, and the deterministic bounds are applied before taking the expectation, as they should be. I expanded (1−1/(n−t))(1+k/t) ≥ 1+1/t and confirmed it is exactly k(n−t−1) ≥ n. The step from summed gains to d ≥ c′a needs k > 1, as stated.
- *Inequality (4) and the function g.* I confirmed algebraically that g(α) = C reduces to the root equation. Numerically, for k = 2…7, the argmax of g on a grid of step 10⁻⁴ sits at α_k, and g(α) − C is about 10⁻¹⁶ or smaller. The quadratic lower bound needs the upper bound q < 1, as the paper notes.
- *Midpoint traversal.* The bound b₀ = Θ(n) is correct. The two error series are geometric from opposite ends. The reversal argument (a ↔ n−b) correctly avoids any symmetry or uniqueness assumption.

**Computations.**
- `analysis/check.py` reproduces `results/check.txt` exactly in 9 s: 15 OEIS rows, exhaustive checks through n = 12, and 12,282 duplication comparisons.
- I wrote my own DP that tracks the full set of tied layer counts, not just the extremes. It gives 11–13 and 5–17 at n = 512, and 15 and 7–11 at n = 2,048, for k = 2 and k = 7. This matches Table 1. Every count between the extremes is attained.
- Over all 3,075 scanned (n, k) pairs with n ≥ 64, the minimum layer count minus 2 log n/log(1/α_k) stays within [−1.4, 0.9] for every k. The maximum count's deviation reaches about 2k − 3, which is 11 at k = 7. The finite data are consistent with the law. They also show that the O_k(1) term really does depend on k.

## Requested changes

1. **State the known one-ended result precisely, and say why it doesn't transfer.** This is the single most important change. HSV already prove k_n = αn + O(1) for the one-ended problem (Theorems 4.1–4.2, Corollary 4.3 in `one-sided.txt`, around lines 681–830). Iterated, that is essentially the one-ended version of this paper's law. The paper currently says only that removing the last layer leaves "roughly a fixed fraction" of the length. An expert reading this will ask at once why HSV's bound cannot simply be applied to each end. Say it plainly in the background section. The two-ended prefix objective H carries the weight n−b, so HSV's bimodality and continuity machinery does not apply. Matching scores alone cannot exclude near-empty layers, which is why the two comparisons are needed. Readers will then see exactly what is new.

2. **Present end-block splitting as a general mechanism, not one example.** The first layer has a = 0, so it never contributes as a middle layer. Splitting it into singletons changes no other term. The same holds for the last layer. So any maximizer whose first layer has width w comes with tied maximizers having up to w−1 more layers, and likewise at the right end. The three-way split bounds w below max(8,4k), and that is the reason the O_k(1) term cannot be uniform in k. One or two sentences would turn the k = 7 example from an illustration into an explanation. They would also account for the ~2k spread in the maximum layer counts across the scan.

3. **`record.json` → `so_what`.** "Multiplying the list length by a fixed factor changes the number of blocks it needs by only a bounded amount" is accurate but hard to picture. Give the concrete version: for the four-number pattern, each time the list gets about 2.7 times longer, a best arrangement needs about two more blocks, one at each end. Add a short clause saying this is a result in pure mathematics, so a lay reader does not look for a practical use.

4. **Small wording points in the proof.**
   - In the second comparison, "realizes this gain using at most n·a·d^k/k! copies" should say that the step's contribution a·C(d,k)·(n−b) equals H(b)−H(a) and is at most n·a·d^k/k!.
   - Note that (5) is trivially true but useless for b comparable with n. The proof only needs it there because the errors are summed.

## Record card

- `type: finding` is right.
- `importance: 3` is fair. The paper settles an explicitly posed open question for a whole family, including the leading constant and ties, though it leaves the central proportions and the exact O_k(1) term open.
- The findings match the paper. Finding 3 ("all layered 1324 maximizers have 21 layers" at n = 32,768) matches the scan, which has min = max = 21.
