OFFSET
1,4
COMMENTS
Two color patterns are equivalent if the colors are permuted.
A chiral row is not equivalent to its reverse.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
FORMULA
EXAMPLE
For a(4)=4, the chiral pairs are AAAB-ABBB, AABA-ABAA, AABC-ABCC, and ABAC-ABCB.
MATHEMATICA
Ach[n_, k_] := Ach[n, k] = If[n<2, Boole[n==k && n>=0], k Ach[n-2, k] + Ach[n-2, k-1] + Ach[n-2, k-2]] (* A304972 *)
Table[Sum[StirlingS2[n, j]-Ach[n, j], {j, n}]/2, {n, 40}]
PROG
(PARI) \\ Ach is A304972 as square matrix.
Ach(n)={my(M=matrix(n, n, i, k, i>=k)); for(i=3, n, for(k=2, n, M[i, k]=k*M[i-2, k] + M[i-2, k-1] + if(k>2, M[i-2, k-2]))); M}
seq(n)={my(A=Ach(n)); vector(n, n, sum(k=1, n, stirling(n, k, 2) - A[n, k])/2)} \\ Andrew Howroyd, Sep 18 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Robert A. Russell, Oct 27 2018
STATUS
approved