The maximum area of a snake polyomino in a $12 \times n$ rectangle
Abstract
A snake polyomino is a set of cells of the square lattice whose cells, under edge adjacency, induce a path.
Let $T(m,n)$ be the largest number of cells of a snake polyomino contained in an $m \times n$ rectangle, equivalently the largest number of vertices of an induced path in the grid graph $P_m \times P_n$ (OEIS A360917).
Blondin Massé and Goupil determined $T(m,n)$ for all $m \le 5$ and proposed the general case as a conjecture; for $m = 12$, entry A397153 of the OEIS records a conjectured generating function, contributed by Goupil in July 2026, which has remained unproved.
We prove it.
For every $n \ge 1$ other than $n \in \{2,3,\dots,10,12\}$ one has $T(12,n) = 44k + c_r$ where $n = 6k+r$ with $0 \le r < 6$ and $(c_0,\dots,c_5) = (5,12,19,27,34,42)$, and the ten remaining values are $18,26,33,40,47,55,62,70,77$ and $92$.
The proof has two independent halves.
The upper bound comes from a column-profile transfer system read in the max-plus semiring: a single entrywise inequality $v_{46} \le 44 + v_{40}$ between two value vectors on its useful core propagates to all larger indices because the max-plus action is monotone and additively homogeneous.
The lower bound comes from explicit periodic snakes, one for each residue class, which are checked against the definition of a snake and not against the transfer system.
The same method settles every height up to $12$; heights $6$ through $11$ had no formula in the literature, and we record them as well.