login
Triangle T(n, k, m) = b(n, m)/(b(k, m)*b(n-k, m)), with T(0, k, m) = 1, b(n, k) = Product_{j=1..n} ( Sum_{i=0..j-1} (-1)^(j+i)*(j+1)*(k+1)^i*StirlingS1(j-1, i) ), b(n, 0) = n!, and m = 3, read by rows.
2

%I #7 Jun 21 2021 06:04:57

%S 1,1,1,1,6,1,1,40,40,1,1,300,2000,300,1,1,2520,126000,126000,2520,1,1,

%T 23520,9878400,74088000,9878400,23520,1,1,241920,948326400,

%U 59744563200,59744563200,948326400,241920,1,1,2721600,109734912000,64524128256000,542002677350400,64524128256000,109734912000,2721600,1

%N Triangle T(n, k, m) = b(n, m)/(b(k, m)*b(n-k, m)), with T(0, k, m) = 1, b(n, k) = Product_{j=1..n} ( Sum_{i=0..j-1} (-1)^(j+i)*(j+1)*(k+1)^i*StirlingS1(j-1, i) ), b(n, 0) = n!, and m = 3, read by rows.

%H G. C. Greubel, <a href="/A156764/b156764.txt">Rows n = 0..30 of the triangle, flattened</a>

%F T(n, k, m) = b(n, m)/(b(k, m)*b(n-k, m)), with T(0, k, m) = 1, b(n, k) = Product_{j=1..n} ( Sum_{i=0..j-1} (-1)^(j+i)*(j+1)*(k+1)^i*StirlingS1(j-1, i) ), b(n, 0) = n!, and m = 3.

%F T(n, k, m) = f(n, m)/(f(k, m)*f(n-k, m)), with T(0, k, m) = 1, f(n, k) = (-1)^n*(n + 1)!*BarnesG(n+k+1)/(Gamma(k+1)^n*BarnesG(k+1)), f(n, 0) = n!, and m = 3. - _G. C. Greubel_, Jun 20 2021

%e Triangle begins as:

%e 1;

%e 1, 1;

%e 1, 6, 1;

%e 1, 40, 40, 1;

%e 1, 300, 2000, 300, 1;

%e 1, 2520, 126000, 126000, 2520, 1;

%e 1, 23520, 9878400, 74088000, 9878400, 23520, 1;

%e 1, 241920, 948326400, 59744563200, 59744563200, 948326400, 241920, 1;

%t (* First program *)

%t b[n_, k_]:= If[k==0, n!, Product[Sum[(-1)^(i+j)*(j+1)*StirlingS1[j-1, i]*(k+1)^i, {i, 0, j-1}], {j, 1, n}]];

%t T[n_, k_, m_] = If[n==0, 1, b[n, m]/(b[k, m]*b[n-k, m])];

%t Table[T[n, k, 3], {n,0,12}, {k,0,n}]//Flatten (* modified by _G. C. Greubel_, Jun 20 2021 *)

%t (* Second program *)

%t f[n_, k_]:= If[k==0, n!, (-1)^n*(n+1)!*BarnesG[n+k+1]/(Gamma[k+1]^n*BarnesG[k+1])];

%t T[n_, k_, m_]:= If[n==0, 1, f[n,m]/(f[k,m]*f[n-k,m])];

%t Table[T[n,k,3], {n,0,12}, {k,0,n}]//Flatten (* _G. C. Greubel_, Jun 20 2021 *)

%o (Sage)

%o def f(n,k): return factorial(n) if (k==0) else (-1)^n*factorial(n+1)*product( rising_factorial(k+1, j) for j in (0..n-1) )

%o def T(n,k,m): return 1 if (n==0) else f(n,m)/(f(k,m)*f(n-k,m))

%o flatten([[T(n,k,3) for k in (0..n)] for n in (0..12)]) # _G. C. Greubel_, Jun 20 2021

%Y Cf. A007318 (m=0), A156584 (m=1), this sequence (m=3).

%K nonn,tabl

%O 0,5

%A _Roger L. Bagula_, Feb 15 2009

%E Edited by _G. C. Greubel_, Jun 20 2021