login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257617 Triangle read by rows: T(n,k) = t(n-k, k); t(n,m) = f(m)*t(n-1,m) + f(n)*t(n,m-1), where f(x) = 7*x + 2. 10

%I #20 Mar 24 2022 03:31:02

%S 1,2,2,4,36,4,8,388,388,8,16,3676,12416,3676,16,32,33564,283204,

%T 283204,33564,32,64,303260,5538184,13027384,5538184,303260,64,128,

%U 2732156,99831564,465775352,465775352,99831564,2732156,128

%N Triangle read by rows: T(n,k) = t(n-k, k); t(n,m) = f(m)*t(n-1,m) + f(n)*t(n,m-1), where f(x) = 7*x + 2.

%H G. C. Greubel, <a href="/A257617/b257617.txt">Rows n = 0..50 of the triangle, flattened</a>

%F T(n,k) = t(n-k, k); t(0,0) = 1, t(n,m) = 0 if n < 0 or m < 0, else t(n,m) = f(m)*t(n-1,m) + f(n)*t(n,m-1), where f(x) = 7*x + 2.

%F Sum_{k=0..n} T(n, k) = A144827(n).

%F From _G. C. Greubel_, Mar 24 2022: (Start)

%F T(n, k) = (a*k + b)*T(n-1, k) + (a*(n-k) + b)*T(n-1, k-1), with T(n, 0) = 1, a = 7, and b = 2.

%F T(n, n-k) = T(n, k).

%F T(n, 0) = A000079(n).

%F T(n, 1) = (4*9^n - 2^n*(7*n + 4))/7.

%F T(n, 2) = (2^(n-1)*(49*n^2 +7*n -12) + 11*2^(4*n+1) - 4*(7*n+4)*9^n)/49. (End)

%e 1;

%e 2, 2;

%e 4, 36, 4;

%e 8, 388, 388, 8;

%e 16, 3676, 12416, 3676, 16;

%e 32, 33564, 283204, 283204, 33564, 32;

%e 64, 303260, 5538184, 13027384, 5538184, 303260, 64;

%e 128, 2732156, 99831564, 465775352, 465775352, 99831564, 2732156, 128;

%t T[n_, k_, a_, b_]:= T[n, k, a, b]= If[k<0 || k>n, 0, If[n==0, 1, (a*(n-k)+b)*T[n-1, k-1, a, b] + (a*k+b)*T[n-1, k, a, b]]];

%t Table[T[n,k,7,2], {n,0,12}, {k,0,n}]//Flatten (* _G. C. Greubel_, Mar 24 2022 *)

%o (Sage)

%o def T(n,k,a,b): # A257617

%o if (k<0 or k>n): return 0

%o elif (n==0): return 1

%o else: return (a*k+b)*T(n-1,k,a,b) + (a*(n-k)+b)*T(n-1,k-1,a,b)

%o flatten([[T(n,k,7,2) for k in (0..n)] for n in (0..12)]) # _G. C. Greubel_, Mar 24 2022

%Y Cf. A000079, A142462, A144827 (row sums), A257627.

%Y Cf. A038208, A256890, A257609, A257610, A257612, A257614, A257616, A257618, A257619

%Y Similar sequences listed in A256890.

%K nonn,tabl

%O 0,2

%A _Dale Gerdemann_, May 09 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 07:33 EDT 2024. Contains 371235 sequences. (Running on oeis4.)