A099510 Triangle, read by rows, of trinomial coefficients arranged so that there are n+1 terms in row n by setting T(n,k) equal to the coefficient of z^k in (1 + 2*z + z^2)^(n-[k/2]), for n>=k>=0, where [k/2] is the integer floor of k/2.
1, 1, 2, 1, 4, 1, 1, 6, 6, 4, 1, 8, 15, 20, 1, 1, 10, 28, 56, 15, 6, 1, 12, 45, 120, 70, 56, 1, 1, 14, 66, 220, 210, 252, 28, 8, 1, 16, 91, 364, 495, 792, 210, 120, 1, 1, 18, 120, 560, 1001, 2002, 924, 792, 45, 10, 1, 20, 153, 816, 1820, 4368, 3003, 3432, 495, 220, 1, 1, 22, 190
Offset: 0
Examples
Rows begin: [1], [1,2], [1,4,1], [1,6,6,4], [1,8,15,20,1], [1,10,28,56,15,6], [1,12,45,120,70,56,1], [1,14,66,220,210,252,28,8], [1,16,91,364,495,792,210,120,1], [1,18,120,560,1001,2002,924,792,45,10],... and can be derived from coefficients of (1+2*z+z^2)^n: [1], [1,2,1], [1,4,6,4,1], [1,6,15,20,15,6,1], [1,8,28,56,70,56,28,8,1], [1,10,45,120,210,252,210,120,45,10,1],... by shifting each column k down by [k/2] rows.
Programs
-
PARI
T(n,k)=if(n
Formula
G.f.: (1-x+2*x*y-x^2*y^2)/((1-x)^2-2*x^2*y^2-2*x^3*y^2+x^4*y^4). T(n, k) = binomial(2*n-2*(k\2), k).
Comments