A109439 Triangle read by rows, in which row n gives coefficients in expansion of ((1 - x^n)/(1 - x))^3.
1, 1, 3, 3, 1, 1, 3, 6, 7, 6, 3, 1, 1, 3, 6, 10, 12, 12, 10, 6, 3, 1, 1, 3, 6, 10, 15, 18, 19, 18, 15, 10, 6, 3, 1, 1, 3, 6, 10, 15, 21, 25, 27, 27, 25, 21, 15, 10, 6, 3, 1, 1, 3, 6, 10, 15, 21, 28, 33, 36, 37, 36, 33, 28, 21, 15, 10, 6, 3, 1, 1, 3, 6, 10, 15, 21, 28, 36, 42, 46, 48, 48
Offset: 1
Examples
Triangle starts: 1; 1, 3, 3, 1; 1, 3, 6, 7, 6, 3, 1; 1, 3, 6,10,12,12,10, 6, 3, 1; 1, 3, 6,10,15,18,19,18,15,10, 6, 3, 1; 1, 3, 6,10,15,21,25,27,27,25,21,15,10, 6, 3, 1; 1, 3, 6,10,15,21,28,33,36,37,36,33,28,21,15,10, 6, 3, 1.
Programs
-
Mathematica
Flatten[Table[CoefficientList[Series[((1-x^n)/(1-x))^3,{x,1,3*n}],x], {n,1,100}],1]
-
PARI
row(n) = Vec(((1 - x^n)/(1 - x))^3); tabf(nn) = for (n=1, nn, print(row(n))); \\ Michel Marcus, Oct 12 2016
Formula
From Juan Pablo Herrera P., Oct 17 2016: (Start)
T(n,k) = A000217(k+1) = (k+2)!/(k!*2) if 0 <= k < n,
T(n,k) = (9*n-3*n^2+6*k*n-6*k-2*k^2-4)/2 if n-3 < k < 2*n,
T(n,k) = A000217(3n-k-2) = (3*n-k-1)!/((3*(n-1)-k)!*2) if 2*n-3 < k < 3*n-2.
T(n,k) = Sum_{i=k-n+1..k} A004737(T(n,i)),
T(n,k) = Sum_{i=k-n+1..k} (n-|n-i-1|) if n <= k <= 2*n+1. (End)
Extensions
Offset corrected by Joerg Arndt at the suggestion of Michel Marcus, Oct 12 2016
Comments