OFFSET
1,1
COMMENTS
Row n sums to C(2n,n) (A000984).
LINKS
Andrew Woods, Rows n = 1..50 of triangle, flattened
EXAMPLE
The triangle begins:
[2,
[4, 2,
[18, 0, 2,
[64, 4, 0, 2,
[238, 12, 0, 0, 2,
The second row counts the sets {0101, 1010, 0110, 1001} and {0011, 1100}.
PROG
(PARI)
bn(n, k)=binomial(max(0, n), k)
f(n, k)=2*sum(x=1, floor(n/k), bn(n+x*(1-k)-1, x-1)*(bn(n+x*(1-k)-1, x-1)+bn(n+(x+1)*(1-k)-1, x)))
T(n, k)=f(n, k)-f(n, k+1)
r(n)=vector(n, x, T(n, x))
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Andrew Woods, Oct 09 2013
STATUS
approved