OFFSET
0,4
COMMENTS
On an n X n chessboard, a pawn structure is defined as the distribution of at most n white and n black pawns, subject to the constraint that the first and n-th ranks of the board remain free of pawns.
FORMULA
a(n) = Sum_{w=0..n} Sum_{b=0..n} binomial(n*(n-2),w) * binomial(n*(n-2)-w,b).
a(n) ~ exp(2*n-6) * n^(2*n-1) / (2*Pi). - Vaclav Kotesovec, Feb 12 2026
EXAMPLE
For n = 3. Only row 2 with 3 squares needs to be considered. These squares can be empty (0), or hold a white pawn (w) or a black pawn (b). Structures: 000,00w,00b,0w0,0ww .. bbb. So, there are 3^3 = 27 structures possible.
MATHEMATICA
a[n_]:=Sum[Sum[Binomial[n*(n-2), w]*Binomial[n*(n-2)-w, b], {b, 0, n}], {w, 0, n}]; Array[a, 15, 0] (* Stefano Spezia, Feb 12 2026 *)
PROG
(PARI) a(n) = sum(w=0, n, sum(b=0, n, binomial(n*(n-2), w) * binomial(n*(n-2)-w, b)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank Hollstein, Feb 11 2026
STATUS
approved
