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!)
A115990 Riordan array (1/sqrt(1-2*x-3*x^2), (1-2*x-3*x^2)/(2*(1-3*x)) - sqrt(1-2*x-3*x^2)/2). 4

%I #20 Dec 29 2023 12:56:52

%S 1,1,1,3,2,1,7,5,3,1,19,13,8,4,1,51,35,22,12,5,1,141,96,61,35,17,6,1,

%T 393,267,171,101,53,23,7,1,1107,750,483,291,160,77,30,8,1,3139,2123,

%U 1373,839,476,244,108,38,9,1,8953,6046,3923,2423,1406,752,360,147,47,10

%N Riordan array (1/sqrt(1-2*x-3*x^2), (1-2*x-3*x^2)/(2*(1-3*x)) - sqrt(1-2*x-3*x^2)/2).

%C First column is central trinomial coefficients A002426. Second column is number of directed animals of size n+1, A005773(n+1). Row sums are A005717 (number of horizontal steps in all Motzkin paths of length n). First column has e.g.f. exp(x) I_0(2x). Row sums have e.g.f. dif(exp(x) I_1(2x),x).

%C Riordan array (1/sqrt(1-2*x-3*x^2), (1+x-sqrt(1-2*x-3*x^2))/2).

%H G. C. Greubel, <a href="/A115990/b115990.txt">Table of n, a(n) for the first 100 rows, flattened</a>

%F Number triangle T(n,k) = Sum_{j=0..n} C(n-k,j-k)*C(j,n-j).

%e Triangle begins

%e 1;

%e 1, 1;

%e 3, 2, 1;

%e 7, 5, 3, 1;

%e 19, 13, 8, 4, 1;

%e 51, 35, 22, 12, 5, 1;

%e 141, 96, 61, 35, 17, 6, 1;

%p A115990 := proc(n,k)

%p add(binomial(n-k,j-k)*binomial(j,n-j),j=0..n) ;

%p end proc:

%p seq(seq(A115990(n,k),k=0..n),n=0..12) ; # _R. J. Mathar_, Jun 25 2023

%t Table[Sum[ Binomial[n-k, j-k]*Binomial[j, n-j], {j, 0, n}], {n, 0, 10}, {k, 0, n} ] // Flatten (* _G. C. Greubel_, Mar 07 2017 *)

%o (PARI) {T(n, k) = sum(j=0, n, binomial(n-k, j-k)*binomial(j, n-j))}; \\ _G. C. Greubel_, May 09 2019

%o (Magma) [[(&+[Binomial(n-k, j-k)*Binomial(j, n-j): j in [0..n]]): k in [0..n]]: n in [0..10]]; // _G. C. Greubel_, May 09 2019

%o (Sage) [[sum(binomial(n-k, j-k)*binomial(j, n-j) for j in (0..n)) for k in (0..n)] for n in (0..10)] # _G. C. Greubel_, May 09 2019

%o (GAP) Flat(List([0..10], n-> List([0..n], k-> Sum([0..n], j-> Binomial(n-k, j-k)*Binomial(j, n-j)) ))); # _G. C. Greubel_, May 09 2019

%Y Cf. A115991, A005773 (k=1), A025566 (k=2), A035045 (k=3), A152948 (diag. n=k+2), .

%K easy,nonn,tabl

%O 0,4

%A _Paul Barry_, Feb 10 2006

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.)