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!)
A173008 Triangle T(n,k) read by rows: coefficient [x^k] of the polynomial Product_{i=1..n} (x + q^i) in row n, column 0<=k<=n, and q = 4. 4

%I #25 Feb 20 2021 23:12:23

%S 1,4,1,64,20,1,4096,1344,84,1,1048576,348160,22848,340,1,1073741824,

%T 357564416,23744512,371008,1364,1,4398046511104,1465657589760,

%U 97615085568,1543393280,5957952,5460,1,72057594037927936,24017731997138944,1600791219535872,25384570585088,99158478848,95414592,21844,1

%N Triangle T(n,k) read by rows: coefficient [x^k] of the polynomial Product_{i=1..n} (x + q^i) in row n, column 0<=k<=n, and q = 4.

%C Row sums are 1, 5, 85, 5525, 1419925, 1455423125, 5962868543125, 97701601079103125, 6403069829921181503125, ... (partial products of A092896).

%C Triangle T(n,k), read by rows, given by [4,12,64,240,1024,4032,16384,...] DELTA [1,0,4,0,16,0,64,0,256,0,1024,0,...] where DELTA is the operator defined in A084938. - _Philippe Deléham_, Oct 01 2011

%H Robert Israel, <a href="/A173008/b173008.txt">Table of n, a(n) for n = 0..1430</a>

%F T(n,k) = 4^n*T(n-1,k) + T(n-1,k-1) with T(0,0)=1. - _Philippe Deléham_, Oct 01 2011

%F Sum_{k=0..n} T(n, k, 4) = A309327(n+1). - _G. C. Greubel_, Feb 20 2021

%e Triangle begins as:

%e 1;

%e 4, 1;

%e 64, 20, 1;

%e 4096, 1344, 84, 1;

%e 1048576, 348160, 22848, 340, 1;

%e 1073741824, 357564416, 23744512, 371008, 1364, 1;

%e 4398046511104, 1465657589760, 97615085568, 1543393280, 5957952, 5460, 1;

%p P:= 1: A:= 1:

%p for n from 1 to 12 do

%p P:= expand(P*(x+4^n));

%p A:= A, seq(coeff(P,x,j),j=0..n)

%p od:

%p A; # _Robert Israel_, Aug 12 2015

%t (* First program *)

%t p[x_, n_, q_]= If[n==0, 1, Product[x + q^i, {i,n}]];

%t Table[CoefficientList[p[x, n, 4], x], {n, 0, 10}]//Flatten (* modified by _G. C. Greubel_, Feb 20 2021 *)

%t (* Second program *)

%t T[n_, k_, q_]:= If[k<0 || k>n, 0, If[k==n, 1, q^n*T[n-1,k,q] +T[n-1,k-1,q] ]];

%t Table[T[n,k,4], {n,0,10}, {k,0,n}]//Flatten (* _G. C. Greubel_, Feb 20 2021 *)

%o (Sage)

%o def T(n, k, q):

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

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

%o else: return q^n*T(n-1,k,q) + T(n-1,k-1,q)

%o flatten([[T(n,k,4) for k in (0..n)] for n in (0..10)]) # _G. C. Greubel_, Feb 20 2021

%o (Magma)

%o function T(n,k,q)

%o if k lt 0 or k gt n then return 0;

%o elif k eq n then return 1;

%o else return q^n*T(n-1,k,q) + T(n-1,k-1,q);

%o end if; return T; end function;

%o [T(n,k,4): k in [0..n], n in [0..10]]; // _G. C. Greubel_, Feb 20 2021

%Y Cf. A023531 (q=0), A007318 (q=1), A108084 (q=2), A173007 (q=3), this sequence (q=4).

%Y Cf. A092896, A108084, A309327.

%K nonn,tabl,easy

%O 0,2

%A _Roger L. Bagula_, Feb 07 2010

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 April 20 00:26 EDT 2024. Contains 371798 sequences. (Running on oeis4.)