|
|
A228337
|
|
Irregular triangle read by rows: the W-transformation of the Catalan triangle A033184.
|
|
3
|
|
|
1, 2, 4, 1, 10, 4, 20, 21, 1, 56, 70, 6, 140, 238, 50, 1, 420, 792, 210, 8, 1176, 2604, 990, 91, 1, 3696, 8778, 3850, 462, 10, 11088, 29106, 15675, 2772, 144, 1, 36036, 99528, 59202, 12376, 858, 12, 113256, 335049, 228085, 60060, 6240, 209, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
EXAMPLE
|
Triangle begins:
1;
2;
4, 1;
10, 4;
20, 21, 1;
56, 70, 6;
140, 238, 50, 1;
420, 792, 210, 8;
1176, 2604, 990, 91, 1;
...
|
|
MATHEMATICA
|
nn = 12;
c[n_, k_] := If[k <= n, Binomial[2n-k, n] (k+1)/(n+1), 0];
a[n_, k_] := Table[c[If[OddQ[n], (n-1)/2+k+2i-2, n/2+k+i-1], 2k+j-1], {i, 1, 2}, {j, 1, 2}] // Permanent;
|
|
PROG
|
(PARI) C(n, k) = (k<=n)*binomial(2*n-k, n)*(k+1)/(n+1);
matperm(M)=my(n=#M, t); sum(i=1, n!, t=numtoperm(n, i); prod(j=1, n, M[j, t[j]])); \\ from Rosetta code
W(n, k) = my(nn); if (n % 2, nn = (n-1)/2; matperm(matrix(2, 2, i, j, C(nn+k+2*i-2, 2*k+j-1))), nn = n/2; matperm(matrix(2, 2, i, j, C(nn+k+i-1, 2*k+j-1))));
aW(nn) = {for (n=0, nn, for (k=0, n\2, print1(W(n, k), ", "); ); print(); ); } \\ Michel Marcus, Feb 13 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,tabf
|
|
AUTHOR
|
|
|
EXTENSIONS
|
A-number for Catalan triangle changed by Michel Marcus, Feb 13 2014
|
|
STATUS
|
approved
|
|
|
|