OFFSET
4,2
COMMENTS
The number of ways of arranging n pawns of each color on an n X n board such that no pawn threatens another, each file contains one pawn of each color, none of the pawns are passed pawns, and each pawn is placed between row 2 and row n-1 inclusive.
There is no requirement that the arrangements counted here can actually be achieved via a sequence of legal chess moves.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 4..40
EXAMPLE
The a(5) = 3 positions are:
. . . . . . . . . . . . . . .
b b b b b . b . b . b . b . b
. . . . . b w b w b w b w b w
w w w w w w . w . w . w . w .
. . . . . . . . . . . . . . .
PROG
(PARI)
MkTfrMtx(n)={my(m=binomial(n, 2), M=matrix(m, m)); for(i=1, n-1, for(j=i+1, n, for(p=1, n-1, for(q=p+1, n, if(q<>i+1&&j<>p+1, M[binomial(n-i, 2)+(j-i), binomial(n-p, 2)+(q-p)]=1) )))); M}
a(n)={my(M=MkTfrMtx(n-2)); vecsum(M^(n-1)*vectorv(#M, i, 1))} \\ Andrew Howroyd, Jun 15 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Edwin Hermann, Jun 09 2025
EXTENSIONS
a(9) onwards from Andrew Howroyd, Jun 15 2025
STATUS
approved
