OFFSET
1,5
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1275
FORMULA
T(n,k) = (k!/2) * (S2(n,k) + S2(ceiling(n/2),k)) where S2(n,k) is the Stirling subset number A008277.
G.f. for column k: k! x^k / (2*Product_{i=1..k}(1-ix)) + k! (x^(2k-1)+x^(2k)) / (2*Product{i=1..k}(1-i x^2)). - Robert A. Russell, Sep 25 2018
T(n, k) = Sum_{i=0..k} (-1)^(k-i)*binomial(k,i)*A277504(n, i). - Andrew Howroyd, Sep 13 2019
EXAMPLE
The triangle begins:
1;
1, 1;
1, 4, 3;
1, 8, 18, 12;
1, 18, 78, 120, 60;
1, 34, 273, 780, 900, 360;
1, 70, 921, 4212, 8400, 7560, 2520;
1, 134, 2916, 20424, 63000, 95760, 70560, 20160;
1, 270, 9150, 93360, 417120, 952560, 1164240, 725760, 181440;
...
For T(3,2)=4, the achiral color rows are ABA and BAB, while the chiral pairs are AAB-BAA and ABB-BBA. For T(3,3)=3, the color rows are all chiral pairs: ABC-CBA, ACB-BCA, and BAC-CAB.
MATHEMATICA
Table[(k!/2) (StirlingS2[n, k] + StirlingS2[Ceiling[n/2], k]), {n, 1, 15}, {k, 1, n}] // Flatten
PROG
(PARI) T(n, k) = {k! * (stirling(n, k, 2) + stirling((n+1)\2, k, 2)) / 2} \\ Andrew Howroyd, Sep 13 2019
CROSSREFS
KEYWORD
AUTHOR
Robert A. Russell, Jun 06 2018
STATUS
approved