cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 11 results. Next

A090181 Triangle of Narayana (A001263) with 0 <= k <= n, read by rows.

Original entry on oeis.org

1, 0, 1, 0, 1, 1, 0, 1, 3, 1, 0, 1, 6, 6, 1, 0, 1, 10, 20, 10, 1, 0, 1, 15, 50, 50, 15, 1, 0, 1, 21, 105, 175, 105, 21, 1, 0, 1, 28, 196, 490, 490, 196, 28, 1, 0, 1, 36, 336, 1176, 1764, 1176, 336, 36, 1, 0, 1, 45, 540, 2520, 5292, 5292, 2520, 540, 45, 1, 0, 1, 55, 825, 4950, 13860
Offset: 0

Views

Author

Philippe Deléham, Jan 19 2004

Keywords

Comments

Number of Dyck n-paths with exactly k peaks. - Peter Luschny, May 10 2014

Examples

			Triangle starts:
[0] 1;
[1] 0, 1;
[2] 0, 1,  1;
[3] 0, 1,  3,   1;
[4] 0, 1,  6,   6,    1;
[5] 0, 1, 10,  20,   10,    1;
[6] 0, 1, 15,  50,   50,   15,    1;
[7] 0, 1, 21, 105,  175,  105,   21,   1;
[8] 0, 1, 28, 196,  490,  490,  196,  28,  1;
[9] 0, 1, 36, 336, 1176, 1764, 1176, 336, 36, 1;
		

Crossrefs

Mirror image of triangle A131198. A000108 (row sums, Catalan).
Sum_{k=0..n} T(n,k)*x^k = A000007(n), A000108(n), A006318(n), A047891(n+1), A082298(n), A082301(n), A082302(n), A082305(n), A082366(n), A082367(n) for x=0,1,2,3,4,5,6,7,8,9. - Philippe Deléham, Aug 10 2006
Sum_{k=0..n} x^(n-k)*T(n,k) = A090192(n+1), A000012(n), A000108(n), A001003(n), A007564(n), A059231(n), A078009(n), A078018(n), A081178(n), A082147(n), A082181(n), A082148(n), A082173(n) for x = -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. - Philippe Deléham, Oct 21 2006
Sum_{k=0..n} T(n,k)*x^k*(x-1)^(n-k) = A000012(n), A006318(n), A103210(n), A103211(n), A133305(n), A133306(n), A133307(n), A133308(n), A133309(n) for x = 1, 2, 3, 4, 5, 6, 7, 8, 9, respectively. - Philippe Deléham, Oct 20 2007

Programs

  • Magma
    [[(&+[(-1)^(j-k)*Binomial(2*n-j,j)*Binomial(j,k)*Binomial(2*n-2*j,n-j)/(n-j+1): j in [0..n]]): k in [0..n]]: n in [0..10]];
  • Maple
    A090181 := (n,k) -> binomial(n,n-k)*binomial(n-1,n-k)/(n-k+1):
    seq(print( seq(A090181(n,k),k=0..n)),n=0..5); # Peter Luschny, May 10 2014
    egf := 1+int((sqrt(t)*exp((1+t)*x)*BesselI(1,2*sqrt(t)*x))/x,x);
    s := n -> n!*coeff(series(egf,x,n+2),x,n);
    seq(print(seq(coeff(s(n),t,j),j=0..n)),n=0..9); # Peter Luschny, Oct 30 2014
    T := proc(n, k) option remember; if k = n or k = 1 then 1 elif k < 1 then 0 else (2*n/k - 1) * T(n-1, k-1) + T(n-1, k) fi end:
    for n from 0 to 8 do seq(T(n, k), k = 0..n) od;  # Peter Luschny, Dec 31 2024
  • Mathematica
    Flatten[Table[Sum[(-1)^(j-k) * Binomial[2n-j,j] * Binomial[j,k] * CatalanNumber[n-j], {j, 0, n}], {n,0,11},{k,0,n}]] (* Indranil Ghosh, Mar 05 2017 *)
    p[0, ] := 1; p[1, x] := x; p[n_, x_] := ((2 n - 1) (1 + x) p[n - 1, x] - (n - 2) (x - 1)^2 p[n - 2, x]) / (n + 1);
    Table[CoefficientList[p[n, x], x], {n, 0, 9}] // TableForm (* Peter Luschny, Apr 26 2022 *)
  • PARI
    c(n) = binomial(2*n,n)/ (n+1);
    tabl(nn) = {for(n=0, nn, for(k=0, n, print1(sum(j=0, n, (-1)^(j-k) * binomial(2*n-j,j) * binomial(j,k) * c(n-j)),", ");); print(););};
    tabl(11); \\ Indranil Ghosh, Mar 05 2017
    
  • Python
    from functools import cache
    @cache
    def Trow(n):
        if n == 0: return [1]
        if n == 1: return [0, 1]
        if n == 2: return [0, 1, 1]
        A = Trow(n - 2) + [0, 0]
        B = Trow(n - 1) + [1]
        for k in range(n - 1, 1, -1):
            B[k] = (((B[k] + B[k - 1]) * (2 * n - 1)
                   - (A[k] - 2 * A[k - 1] + A[k - 2]) * (n - 2)) // (n + 1))
        return B
    for n in range(10): print(Trow(n)) # Peter Luschny, May 02 2022
    
  • Sage
    def A090181_row(n):
        U = [0]*(n+1)
        for d in DyckWords(n):
            U[d.number_of_peaks()] +=1
        return U
    for n in range(8): A090181_row(n) # Peter Luschny, May 10 2014
    

Formula

Triangle T(n, k), read by rows, given by [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, ...] DELTA [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, ...] where DELTA is the operator defined in A084938. T(0, 0) = 1, T(n, 0) = 0 for n>0, T(n, k) = C(n-1, k-1)*C(n, k-1)/k for k>0.
Sum_{j>=0} T(n,j)*binomial(j,k) = A060693(n,k). - Philippe Deléham, May 04 2007
Sum_{k=0..n} T(n,k)*10^k = A143749(n+1). - Philippe Deléham, Oct 14 2008
From Paul Barry, Nov 10 2008: (Start)
Coefficient array of the polynomials P(n,x) = x^n*2F1(-n,-n+1;2;1/x).
T(n,k) = Sum_{j=0..n} (-1)^(j-k)*C(2n-j,j)*C(j,k)*A000108(n-j). (End)
Sum_{k=0..n} T(n,k)*5^k*3^(n-k) = A152601(n). - Philippe Deléham, Dec 10 2008
Sum_{k=0..n} T(n,k)*(-2)^k = A152681(n); Sum_{k=0..n} T(n,k)*(-1)^k = A105523(n). - Philippe Deléham, Feb 03 2009
Sum_{k=0..n} T(n,k)*2^(n+k) = A156017(n). - Philippe Deléham, Nov 27 2011
T(n, k) = C(n,n-k)*C(n-1,n-k)/(n-k+1). - Peter Luschny, May 10 2014
E.g.f.: 1+Integral((sqrt(t)*exp((1+t)*x)*BesselI(1,2*sqrt(t)*x))/x dx). - Peter Luschny, Oct 30 2014
G.f.: (1+x-x*y-sqrt((1-x*(1+y))^2-4*y*x^2))/(2*x). - Alois P. Heinz, Nov 28 2021, edited by Ron L.J. van den Burg, Dec 19 2021
T(n, k) = [x^k] (((2*n - 1)*(1 + x)*p(n-1, x) - (n - 2)*(x - 1)^2*p(n-2, x))/(n + 1)) with p(0, x) = 1 and p(1, x) = x. - Peter Luschny, Apr 26 2022
Recursion based on rows (see the Python program):
T(n, k) = (((B(k) + B(k-1))*(2*n - 1) - (A(k) - 2*A(k-1) + A(k-2))*(n-2))/(n+1)), where A(k) = T(n-2, k) and B(k) = T(n-1, k), for n >= 3. # Peter Luschny, May 02 2022

A088617 Triangle read by rows: T(n,k) = C(n+k,n)*C(n,k)/(k+1), for n >= 0, k = 0..n.

Original entry on oeis.org

1, 1, 1, 1, 3, 2, 1, 6, 10, 5, 1, 10, 30, 35, 14, 1, 15, 70, 140, 126, 42, 1, 21, 140, 420, 630, 462, 132, 1, 28, 252, 1050, 2310, 2772, 1716, 429, 1, 36, 420, 2310, 6930, 12012, 12012, 6435, 1430, 1, 45, 660, 4620, 18018, 42042, 60060, 51480, 24310, 4862
Offset: 0

Views

Author

N. J. A. Sloane, Nov 23 2003

Keywords

Comments

Row sums: A006318 (Schroeder numbers). Essentially same as triangle A060693 transposed.
T(n,k) is number of Schroeder paths (i.e., consisting of steps U=(1,1), D=(1,-1), H=(2,0) and never going below the x-axis) from (0,0) to (2n,0), having k U's. E.g., T(2,1)=3 because we have UHD, UDH and HUD. - Emeric Deutsch, Dec 06 2003
Little Schroeder numbers A001003 have a(n) = Sum_{k=0..n} A088617(n,k)*(-1)^(n-k)*2^k. - Paul Barry, May 24 2005
Conjecture: The expected number of U's in a Schroeder n-path is asymptotically Sqrt[1/2]*n for large n. - David Callan, Jul 25 2008
T(n, k) is also the number of order-preserving and order-decreasing partial transformations (of an n-chain) of width k (width(alpha) = |Dom(alpha)|). - Abdullahi Umar, Oct 02 2008
The antidiagonals of this lower triangular matrix are the rows of A055151. - Tom Copeland, Jun 17 2015

Examples

			Triangle begins:
  [0] 1;
  [1] 1,  1;
  [2] 1,  3,   2;
  [3] 1,  6,  10,    5;
  [4] 1, 10,  30,   35,    14;
  [5] 1, 15,  70,  140,   126,    42;
  [6] 1, 21, 140,  420,   630,   462,   132;
  [7] 1, 28, 252, 1050,  2310,  2772,  1716,   429;
  [8] 1, 36, 420, 2310,  6930, 12012, 12012,  6435,  1430;
  [9] 1, 45, 660, 4620, 18018, 42042, 60060, 51480, 24310, 4862;
		

References

  • Charles Jordan, Calculus of Finite Differences, Chelsea 1965, p. 449.

Crossrefs

Programs

  • Magma
    [[Binomial(n+k,n)*Binomial(n,k)/(k+1): k in [0..n]]: n in [0.. 15]]; // Vincenzo Librandi, Jun 18 2015
    
  • Maple
    R := n -> simplify(hypergeom([-n, n + 1], [2], -x)):
    Trow := n -> seq(coeff(R(n, x), x, k), k = 0..n):
    seq(print(Trow(n)), n = 0..9); # Peter Luschny, Apr 26 2022
  • Mathematica
    Table[Binomial[n+k, n] Binomial[n, k]/(k+1), {n,0,10}, {k,0,n}]//Flatten (* Michael De Vlieger, Aug 10 2017 *)
  • PARI
    {T(n, k)= if(k+1, binomial(n+k, n)*binomial(n, k)/(k+1))}
    
  • SageMath
    flatten([[binomial(n+k, 2*k)*catalan_number(k) for k in (0..n)] for n in (0..12)]) # G. C. Greubel, May 22 2022

Formula

Triangle T(n, k) read by rows; given by [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, ...] DELTA [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...] where DELTA is Deléham's operator defined in A084938.
T(n, k) = A085478(n, k)*A000108(k); A000108 = Catalan numbers. - Philippe Deléham, Dec 05 2003
Sum_{k=0..n} T(n, k)*x^k*(1-x)^(n-k) = A000108(n), A001003(n), A007564(n), A059231(n), A078009(n), A078018(n), A081178(n), A082147(n), A082181(n), A082148(n), A082173(n) for x = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. - Philippe Deléham, Aug 18 2005
Sum_{k=0..n} T(n,k)*x^k = (-1)^n*A107841(n), A080243(n), A000007(n), A000012(n), A006318(n), A103210(n), A103211(n), A133305(n), A133306(n), A133307(n), A133308(n), A133309(n) for x = -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8 respectively. - Philippe Deléham, Oct 18 2007
O.g.f. (with initial 1 excluded) is the series reversion with respect to x of (1-t*x)*x/(1+x). Cf. A062991 and A089434. - Peter Bala, Jul 31 2012
G.f.: 1 + (1 - x - T(0))/y, where T(k) = 1 - x*(1+y)/( 1 - x*y/T(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Nov 03 2013
From Peter Bala, Jul 20 2015: (Start)
O.g.f. A(x,t) = ( 1 - x - sqrt((1 - x)^2 - 4*x*t) )/(2*x*t) = 1 + (1 + t)*x + (1 + 3*t + 2*t^2)*x^2 + ....
1 + x*(dA(x,t)/dx)/A(x,t) = 1 + (1 + t)*x + (1 + 4*t + 3*t^2)*x^2 + ... is the o.g.f. for A123160.
For n >= 1, the n-th row polynomial equals (1 + t)/(n+1)*Jacobi_P(n-1,1,1,2*t+1). Removing a factor of 1 + t from the row polynomials gives the row polynomials of A033282. (End)
From Tom Copeland, Jan 22 2016: (Start)
The o.g.f. G(x,t) = {1 - (2t+1) x - sqrt[1 - (2t+1) 2x + x^2]}/2x = (t + t^2) x + (t + 3t^2 + 2t^3) x^2 + (t + 6t^2 + 10t^3 + 5t^3) x^3 + ... generating shifted rows of this entry, excluding the first, was given in my 2008 formulas for A033282 with an o.g.f. f1(x,t) = G(x,t)/(1+t) for A033282. Simple transformations presented there of f1(x,t) are related to A060693 and A001263, the Narayana numbers. See also A086810.
The inverse of G(x,t) is essentially given in A033282 by x1, the inverse of f1(x,t): Ginv(x,t) = x [1/(t+x) - 1/(1+t+x)] = [((1+t) - t) / (t(1+t))] x - [((1+t)^2 - t^2) / (t(1+t))^2] x^2 + [((1+t)^3 - t^3) / (t(1+t))^3] x^3 - ... . The coefficients in t of Ginv(xt,t) are the o.g.f.s of the diagonals of the Pascal triangle A007318 with signed rows and an extra initial column of ones. The numerators give the row o.g.f.s of signed A074909.
Rows of A088617 are shifted columns of A107131, whose reversed rows are the Motzkin polynomials of A055151, related to A011973. The diagonals of A055151 give the rows of A088671, and the antidiagonals (top to bottom) of A088617 give the rows of A107131 and reversed rows of A055151. The diagonals of A107131 give the columns of A055151. The antidiagonals of A088617 (bottom to top) give the rows of A055151.
(End)
T(n, k) = [x^k] hypergeom([-n, 1 + n], [2], -x). - Peter Luschny, Apr 26 2022

A109345 a(n) = 5^((n^2 - n)/2).

Original entry on oeis.org

1, 1, 5, 125, 15625, 9765625, 30517578125, 476837158203125, 37252902984619140625, 14551915228366851806640625, 28421709430404007434844970703125
Offset: 0

Views

Author

Philippe Deléham, Aug 21 2005

Keywords

Comments

Sequence given by the Hankel transform (see A001906 for definition) of A078009 = {1, 1, 6, 41, 306, 2426, 20076, 171481, ...}; example: det([1, 1, 6, 41; 1, 6, 41, 306; 6, 41, 306, 2426; 41, 306, 2426, 20076]) = 5^6 = 15625.
a(n) is the number of simple labeled graphs, with bi-directional and non-directed edges allowed and not regarded as equivalent, on n labeled nodes. - Mark Stander, Feb 07 2019

Crossrefs

Cf. A006125 (number of graphs on n labeled nodes), A047656 (number of semi-complete digraphs on n labeled nodes), A053763 (number of simple digraphs on n labeled nodes), A053764.

Programs

Formula

a(n+1) is the determinant of n X n matrix M_(i, j) = binomial(5i, j).
G.f. A(x) satisfies: A(x) = 1 + x * A(5*x). - Ilya Gutkovskiy, Jun 04 2020

A008550 Table T(n,k), n>=0 and k>=0, read by antidiagonals: the k-th column given by the k-th Narayana polynomial.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 5, 3, 1, 1, 1, 14, 11, 4, 1, 1, 1, 42, 45, 19, 5, 1, 1, 1, 132, 197, 100, 29, 6, 1, 1, 1, 429, 903, 562, 185, 41, 7, 1, 1, 1, 1430, 4279, 3304, 1257, 306, 55, 8, 1, 1, 1, 4862, 20793, 20071, 8925, 2426, 469, 71, 9, 1, 1
Offset: 0

Views

Author

Philippe Deléham, Jan 23 2004

Keywords

Comments

Mirror image of A243631. - Philippe Deléham, Sep 26 2014

Examples

			Row n=0:  1, 1,  1,   1,    1,     1,      1, ... see A000012.
Row n=1:  1, 1,  2,   5,   14,    42,    132, ... see A000108.
Row n=2:  1, 1,  3,  11,   45,   197,    903, ... see A001003.
Row n=3:  1, 1,  4,  19,  100,   562,   3304, ... see A007564.
Row n=4:  1, 1,  5,  29,  185,  1257,   8925, ... see A059231.
Row n=5:  1, 1,  6,  41,  306,  2426,  20076, ... see A078009.
Row n=6:  1, 1,  7,  55,  469,  4237,  39907, ... see A078018.
Row n=7:  1, 1,  8,  71,  680,  6882,  72528, ... see A081178.
Row n=8:  1, 1,  9,  89,  945, 10577, 123129, ... see A082147.
Row n=9:  1, 1, 10, 109, 1270, 15562, 198100, ... see A082181.
Row n=10: 1, 1, 11, 131,  161,  1661,  22101, ... see A082148.
Row n=11: 1, 1, 12, 155, 2124, 30482, 453432, ... see A082173.
... - _Philippe Deléham_, Apr 03 2013
The first few rows of the antidiagonal triangle are:
  1;
  1,  1;
  1,  1,  1;
  1,  2,  1,  1;
  1,  5,  3,  1, 1;
  1, 14, 11,  4, 1, 1;
  1, 42, 45, 19, 5, 1, 1; - _G. C. Greubel_, Feb 15 2021
		

Crossrefs

Main diagonal is A242369.
A diagonal is in A099169.
Cf. A204057 (another version), A088617, A243631.
Cf. A132745.

Programs

  • Magma
    [Truncate(HypergeometricSeries(k-n, k-n+1, 2, k)): k in [0..n], n in [0..12]]; // G. C. Greubel, Feb 15 2021
  • Maple
    gf := n -> 2/(sqrt((n-1)^2*x^2-2*(n+1)*x+1)+(n-1)*x+1):
    for n from 0 to 11 do PolynomialTools:-CoefficientList(convert( series(gf(n),x,12),polynom),x) od; # Peter Luschny, Nov 17 2014
  • Mathematica
    (* First program *)
    Unprotect[Power]; Power[0 | 0, 0 | 0] = 1; Protect[Power]; Table[Function[n, Sum[Apply[Binomial[#1 + #2, #1] Binomial[#1, #2]/(#2 + 1) &, {k, j}]*n^j*(1 - n)^(k - j), {j, 0, k}]][m - k + 1] /. k_ /; k <= 0 -> 1, {m, -1, 9}, {k, m + 1, 0, -1}] // Flatten (* Michael De Vlieger, Aug 10 2017 Note: this code renders 0^0 = 1. To restore normal Power functionality: Unprotect[Power]; ClearAll[Power]; Protect[Power] *)
    (* Second program *)
    Table[Hypergeometric2F1[1-n+k, k-n, 2, k], {n, 0, 12}, {k, 0, n}]//Flatten (* G. C. Greubel, Feb 15 2021 *)
  • Sage
    flatten([[hypergeometric([k-n, k-n+1], [2], k).simplify_hypergeometric() for k in (0..n)] for n in (0..12)]) # G. C. Greubel, Feb 15 2021
    

Formula

T(n, k) = Sum_{j>0} A001263(k, j)*n^(j-1); T(n, 0)=1.
T(n, k) = Sum_{j, 0<=j<=k} A088617(k, j)*n^j*(1-n)^(k-j).
The o.g.f. of row n is gf(n) = 2/(sqrt((n-1)^2*x^2-2*(n+1)*x+1)+(n-1)*x+1). - Peter Luschny, Nov 17 2014
G.f. of row n: 1/(1 - x/(1 - n*x/(1 - x/(1 - n*x/(1 - x/(1 - ...)))))), a continued fraction. - Ilya Gutkovskiy, Aug 10 2017
T(n, k) = Hypergeometric2F1([k-n, k-n+1], [2], k), as a number triangle. - G. C. Greubel, Feb 15 2021

A243631 Square array of Narayana polynomials N_n evaluated at the integers, A(n,k) = N_n(k), n>=0, k>=0, read by antidiagonals.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 5, 1, 1, 1, 4, 11, 14, 1, 1, 1, 5, 19, 45, 42, 1, 1, 1, 6, 29, 100, 197, 132, 1, 1, 1, 7, 41, 185, 562, 903, 429, 1, 1, 1, 8, 55, 306, 1257, 3304, 4279, 1430, 1, 1, 1, 9, 71, 469, 2426, 8925, 20071, 20793, 4862, 1
Offset: 0

Views

Author

Peter Luschny, Jun 08 2014

Keywords

Comments

Mirror image of A008550. - Philippe Deléham, Sep 26 2014

Examples

			   [0]  [1]      [2]      [3]      [4]      [5]      [6]     [7]
[0] 1,   1,       1,       1,       1,       1,       1,       1
[1] 1,   1,       1,       1,       1,       1,       1,       1
[2] 1,   2,       3,       4,       5,       6,       7,       8 .. A000027
[3] 1,   5,      11,      19,      29,      41,      55,      71 .. A028387
[4] 1,  14,      45,     100,     185,     306,     469,     680 .. A090197
[5] 1,  42,     197,     562,    1257,    2426,    4237,    6882 .. A090198
[6] 1, 132,     903,    3304,    8925,   20076,   39907,   72528 .. A090199
[7] 1, 429,    4279,   20071,   65445,  171481,  387739,  788019 .. A090200
   A000108, A001003, A007564, A059231, A078009, A078018, A081178
First few rows of the antidiagonal triangle are:
  1;
  1, 1;
  1, 1, 1;
  1, 1, 2,  1;
  1, 1, 3,  5,  1;
  1, 1, 4, 11, 14,  1;
  1, 1, 5, 19, 45, 42, 1; - _G. C. Greubel_, Feb 16 2021
		

Crossrefs

Cf. A001263, A008550 (mirror), A204057 (another version), A242369 (main diagonal), A099169 (diagonal), A307883, A336727.
Cf. A132745.

Programs

  • Magma
    A243631:= func< n,k | n eq 0 select 1 else (&+[ Binomial(n,j)^2*k^j*(n-j)/(n*(j+1)): j in [0..n-1]]) >;
    [A243631(k,n-k): k in [0..n], n in [0..12]]; // G. C. Greubel, Feb 16 2021
  • Maple
    # Computed with Narayana polynomials:
    N := (n,k) -> binomial(n,k)^2*(n-k)/(n*(k+1));
    A := (n,x) -> `if`(n=0, 1, add(N(n,k)*x^k, k=0..n-1));
    seq(print(seq(A(n,k), k=0..7)), n=0..7);
    # Computed by recurrence:
    Prec := proc(n,N,k) option remember; local A,B,C,h;
    if n = 0 then 1 elif n = 1 then 1+N+(1-N)*(1-2*k)
    else h := 2*N-n; A := n*h*(1+N-n); C := n*(h+2)*(N-n);
    B := (1+h-n)*(n*(1-2*k)*(1+h)+2*k*N*(1+N));
    (B*Prec(n-1,N,k) - C*Prec(n-2,N,k))/A fi end:
    T := (n, k) -> Prec(n,n,k)/(n+1);
    seq(print(seq(T(n,k), k=0..7)), n=0..7);
    # Array by o.g.f. of columns:
    gf := n -> 2/(sqrt((n-1)^2*x^2-2*(n+1)*x+1)+(n-1)*x+1):
    for n from 0 to 11 do PolynomialTools:-CoefficientList(convert( series(gf(n), x, 12), polynom), x) od; # Peter Luschny, Nov 17 2014
    # Row n by linear recurrence:
    rec := n -> a(x) = add((-1)^(k+1)*binomial(n,k)*a(x-k), k=1..n):
    ini := n -> seq(a(k) = A(n,k), k=0..n): # for A see above
    row := n -> gfun:-rectoproc({rec(n),ini(n)},a(x),list):
    for n from 1 to 7 do row(n)(8) od; # Peter Luschny, Nov 19 2014
  • Mathematica
    MatrixForm[Table[JacobiP[n,1,-2*n-1,1-2*x]/(n+1), {n,0,7},{x,0,7}]]
    Table[Hypergeometric2F1[1-k, -k, 2, n-k], {n,0,12}, {k,0,n}]//Flatten (* G. C. Greubel, Feb 16 2021 *)
  • Sage
    def NarayanaPolynomial():
        R = PolynomialRing(ZZ, 'x')
        D = [1]
        h = 0
        b = True
        while True:
            if b :
                for k in range(h, 0, -1):
                    D[k] += x*D[k-1]
                h += 1
                yield R(expand(D[0]))
                D.append(0)
            else :
                for k in range(0, h, 1):
                    D[k] += D[k+1]
            b = not b
    NP = NarayanaPolynomial()
    for _ in range(8):
        p = next(NP)
        [p(k) for k in range(8)]
    
  • Sage
    def A243631(n,k): return 1 if n==0 else sum( binomial(n,j)^2*k^j*(n-j)/(n*(j+1)) for j in [0..n-1])
    flatten([[A243631(k,n-k) for k in [0..n]] for n in [0..12]]) # G. C. Greubel, Feb 16 2021
    

Formula

T(n, k) = 2F1([1-n, -n], [2], k), 2F1 the hypergeometric function.
T(n, k) = P(n,1,-2*n-1,1-2*k)/(n+1), P the Jacobi polynomials.
T(n, k) = sum(j=0..n-1, binomial(n,j)^2*(n-j)/(n*(j+1))*k^j), for n>0.
For a recurrence see the second Maple program.
The o.g.f. of column n is gf(n) = 2/(sqrt((n-1)^2*x^2-2*(n+1)*x+1)+(n-1)*x+1). - Peter Luschny, Nov 17 2014
T(n, k) ~ (sqrt(k)+1)^(2*n+1)/(2*sqrt(Pi)*k^(3/4)*n^(3/2)). - Peter Luschny, Nov 17 2014
The n-th row can for n>=1 be computed by a linear recurrence, a(x) = sum(k=1..n, (-1)^(k+1)*binomial(n,k)*a(x-k)) with initial values a(k) = p(n,k) for k=0..n and p(n,x) = sum(j=0..n-1, binomial(n-1,j)*binomial(n,j)*x^j/(j+1)) (implemented in the fourth Maple script). - Peter Luschny, Nov 19 2014
(n+1) * T(n,k) = (k+1) * (2*n-1) * T(n-1,k) - (k-1)^2 * (n-2) * T(n-2,k) for n>1. - Seiichi Manyama, Aug 08 2020
Sum_{k=0..n} T(k, n-k) = Sum_{k=0..n} 2F1([-k, 1-k], [2], n-k) = A132745(n). - G. C. Greubel, Feb 16 2021

A131198 Triangle T(n,k), 0 <= k <= n, read by rows, given by [1,0,1,0,1,0,1,0,...] DELTA [0,1,0,1,0,1,0,1,...] where DELTA is the operator defined in A084938.

Original entry on oeis.org

1, 1, 0, 1, 1, 0, 1, 3, 1, 0, 1, 6, 6, 1, 0, 1, 10, 20, 10, 1, 0, 1, 15, 50, 50, 15, 1, 0, 1, 21, 105, 175, 105, 21, 1, 0, 1, 28, 196, 490, 490, 196, 28, 1, 0, 1, 36, 336, 1176, 1764, 1176, 336, 36, 1, 0, 1, 45, 540, 2520, 5292, 5292, 2520, 540, 45, 1, 0
Offset: 0

Views

Author

Philippe Deléham, Oct 20 2007

Keywords

Comments

Mirror image of triangle A090181, another version of triangle of Narayana (A001263).
Equals A133336*A130595 as infinite lower triangular matrices. - Philippe Deléham, Oct 23 2007

Examples

			Triangle begins:
  1;
  1,  0;
  1,  1,   0;
  1,  3,   1,   0;
  1,  6,   6,   1,   0;
  1, 10,  20,  10,   1,   0;
  1, 15,  50,  50,  15,   1,  0;
  1, 21, 105, 175, 105,  21,  1, 0;
  1, 28, 196, 490, 490, 196, 28, 1, 0; ...
		

Crossrefs

Programs

  • Magma
    [[n le 0 select 1 else (n-k)*Binomial(n,k)^2/(n*(k+1)): k in [0..n]]: n in [0..10]]; // G. C. Greubel, Feb 06 2018
  • Maple
    T := (n,k) -> `if`(n=0, 0^n, binomial(n,k)^2*(n-k)/(n*(k+1)));
    seq(print(seq(T(n,k), k=0..n)), n=0..5); # Peter Luschny, Jun 08 2014
    R := n -> simplify(hypergeom([1 - n, -n], [2], x)):
    Trow := n -> seq(coeff(R(n, x), x, k), k = 0..n):
    seq(print(Trow(n)), n = 0..9); # Peter Luschny, Apr 26 2022
  • Mathematica
    Table[If[n == 0, 1, (n-k)*Binomial[n,k]^2/(n*(k+1))], {n,0,10}, {k,0,n}] //Flatten (* G. C. Greubel, Feb 06 2018 *)
  • PARI
    for(n=0,10, for(k=0,n, print1(if(n==0,1, (n-k)*binomial(n,k)^2/(n* (k+1))), ", "))) \\ G. C. Greubel, Feb 06 2018
    

Formula

Sum_{k=0..n} T(n,k)*x^k = A000012(n), A000108(n), A001003(n), A007564(n), A059231(n), A078009(n), A078018(n), A081178(n), A082147(n), A082181(n), A082148(n), A082173(n) for x = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 respectively.
Sum_{k=0..n} T(n,k)*x^(n-k) = A000007(n), A000108(n), A006318(n), A047891(n+1), A082298(n), A082301(n), A082302(n), A082305(n), A082366(n), A082367(n), for x = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 respectively. - Philippe Deléham, Oct 23 2007
Sum_{k=0..floor(n/2)} T(n-k,k) = A004148(n). - Philippe Deléham, Nov 06 2007
T(2*n,n) = A125558(n). - Philippe Deléham, Nov 16 2011
T(n, k) = [x^k] hypergeom([1 - n, -n], [2], x). - Peter Luschny, Apr 26 2022

A082301 G.f.: (1 - 4*x - sqrt(16*x^2 - 12*x + 1))/(2*x).

Original entry on oeis.org

1, 5, 30, 205, 1530, 12130, 100380, 857405, 7503330, 66931030, 606337380, 5563370130, 51594699780, 482860844580, 4554484964280, 43252833007005, 413224841606130, 3968768817574030, 38297678538914580, 371128975862945030
Offset: 0

Views

Author

Benoit Cloitre, May 10 2003

Keywords

Comments

More generally, coefficients of (1 - m*x - sqrt(m^2*x^2 - (2*m + 4)*x + 1))/(2*x) are given by a(0)=1 and, for n > 0, a(n) = (1/n)*Sum_{k=0..n} (m+1)^k*C(n,k)*C(n,k-1).
Hankel transform is 5^C(n+1,2). - Philippe Deléham, Feb 11 2009
Series reversion of x(1-x)/(1+4x). - Paul Barry, Oct 22 2009
a(n) is the number of Schroder paths of semilength n in which the (2,0)-steps come in 4 colors. Example: a(2)=30 because, denoting U=(1,1), H=(2,0), D=(1,-1), we have 4^2=16 paths of shape HH, 4 paths of shape HUD, 4 paths of shape UDH, 4 paths of shape UHD, and 1 path of each of the shapes UDUD, UUDD. - Emeric Deutsch, May 02 2011

Crossrefs

Programs

  • GAP
    Concatenation([1],List([1..20],n->(1/n)*Sum([0..n],k->5^k*Binomial(n,k)*Binomial(n,k-1)))); # Muniru A Asiru, Apr 05 2018
  • Magma
    Q:=Rationals(); R:=PowerSeriesRing(Q, 40); Coefficients(R!((1 -4*x-Sqrt(16*x^2-12*x+1))/(2*x))) // G. C. Greubel, Feb 10 2018
    
  • Maple
    A082301_list := proc(n) local j, a, w; a := array(0..n); a[0] := 1;
    for w from 1 to n do a[w] := 5*a[w-1]+add(a[j]*a[w-j-1], j=1..w-1) od;convert(a,list)end: A082301_list(19); # Peter Luschny, May 19 2011
    a := n -> `if`(n=0, 1, 5*hypergeom([1 - n, -n], [2], 5)):
    seq(simplify(a(n)), n=0..19); # Peter Luschny, May 22 2017
  • Mathematica
    Table[SeriesCoefficient[(1-4*x-Sqrt[16*x^2-12*x+1])/(2*x),{x,0,n}],{n,0,20}] (* Vaclav Kotesovec, Oct 14 2012 *)
  • PARI
    a(n)=if(n<1,1,sum(k=0,n,5^k*binomial(n,k)*binomial(n,k-1))/n)
    
  • PARI
    x='x+O('x^99); Vec((1-4*x-(16*x^2-12*x+1)^(1/2))/(2*x)) \\ Altug Alkan, Apr 04 2018
    

Formula

a(0)=1; for n > 0, a(n) = (1/n)*Sum_{k=0..n} 5^k*C(n, k)*C(n, k-1).
From Paul Barry, Oct 22 2009: (Start)
D-finite with recurrence: a(n) = if(n=0, 1, if(n=1, 5, 6*((2n-1)/(n+1))*a(n-1)-16*((n-2)/(n+1))*a(n-2))).
a(n) = A078009(n)*(5 - 4*0^n). (End)
a(n) ~ sqrt(10 + 6*sqrt(5))*(6 + 2*sqrt(5))^n/(2*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 14 2012. Equivalently, a(n) ~ 5^(1/4) * 2^(2*n) * phi^(2*n + 1) / (sqrt(Pi) * n^(3/2)), where phi = A001622 is the golden ratio. - Vaclav Kotesovec, Dec 08 2021
a(n) = 5*hypergeom([1 - n, -n], [2], 5) for n > 0. - Peter Luschny, May 22 2017
G.f.: 1/(1 - 4*x - x/(1 - 4*x - x/(1 - 4*x - x/(1 - 4*x - x/(1 - ...))))), a continued fraction. - Ilya Gutkovskiy, Apr 04 2018

A133336 Triangle T(n,k), 0 <= k <= n, read by rows, given by [1,1,1,1,1,1,1,...] DELTA [0,1,0,1,0,1,0,1,0,...] where DELTA is the operator defined in A084938.

Original entry on oeis.org

1, 1, 0, 2, 1, 0, 5, 5, 1, 0, 14, 21, 9, 1, 0, 42, 84, 56, 14, 1, 0, 132, 330, 300, 120, 20, 1, 0, 429, 1287, 1485, 825, 225, 27, 1, 0, 1430, 5005, 7007, 5005, 1925, 385, 35, 1, 0, 4862, 19448, 32032, 28028, 14014, 4004, 616, 44, 1, 0, 16796, 75582, 143208, 148512, 91728, 34398, 7644, 936, 54, 1, 0
Offset: 0

Views

Author

Philippe Deléham, Oct 19 2007

Keywords

Comments

Mirror image of triangle A086810; another version of A126216.
Equals A131198*A007318 as infinite lower triangular matrices. - Philippe Deléham, Oct 23 2007
Diagonal sums: A119370. - Philippe Deléham, Nov 09 2009

Examples

			Triangle begins:
    1;
    1,    0;
    2,    1,    0;
    5,    5,    1,   0;
   14,   21,    9,   1,   0;
   42,   84,   56,  14,   1,  0;
  132,  330,  300, 120,  20,  1, 0;
  429, 1287, 1485, 825, 225, 27, 1, 0;
		

Crossrefs

Programs

  • Magma
    [[Binomial(n-1,k)*Binomial(2*n-k,n)/(n+1): k in [0..n]]: n in [0..10]]; // G. C. Greubel, Feb 05 2018
  • Mathematica
    Table[Binomial[n-1,k]*Binomial[2*n-k,n]/(n+1), {n,0,10}, {k,0,n}] // Flatten (* G. C. Greubel, Feb 05 2018 *)
  • PARI
    for(n=0,10, for(k=0,n, print1(binomial(n-1,k)*binomial(2*n-k,n)/(n+1), ", "))) \\ G. C. Greubel, Feb 05 2018
    

Formula

Sum_{k=0..n} T(n,k)*x^k = A000108(n), A001003(n), A007564(n), A059231(n), A078009(n), A078018(n), A081178(n), A082147(n), A082181(n), A082148(n), A082173(n) for x = 0,1,2,3,4,5,6,7,8,9,10 respectively.
Sum_{k=0..n} T(n,k)*x^(n-k) = A000007(n), A001003(n), A107841(n), A131763(n), A131765(n), A131846(n), A131926(n), A131869(n), A131927(n) for x = 0, 1, 2, 3, 4, 5, 6, 7, 8 respectively. - Philippe Deléham, Nov 05 2007
Sum_{k=0..n} T(n,k)*(-2)^k*5^(n-k) = A152601(n). - Philippe Deléham, Dec 10 2008
T(n,k) = binomial(n-1,k)*binomial(2n-k,n)/(n+1), k <= n. - Philippe Deléham, Nov 02 2009

A204057 Triangle derived from an array of f(x), Narayana polynomials.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 3, 5, 1, 1, 4, 11, 14, 1, 1, 5, 19, 45, 42, 1, 1, 6, 29, 100, 197, 132, 1, 1, 7, 41, 185, 562, 903, 429, 1, 1, 8, 55, 306, 1257, 3304, 4279, 1430, 1, 1, 9, 71, 469, 2426, 8925, 20071, 20793, 4862, 1, 1, 10, 89, 680, 4237, 20076, 65445, 124996, 103049, 16796, 1
Offset: 1

Views

Author

Gary W. Adamson, Jan 09 2012

Keywords

Comments

Row sums = (1, 2, 4, 10, 31, 113, 466, 2129, 10641, 138628, 335379, 2702364,...)
Another version of triangle in A008550. - Philippe Deléham, Jan 13 2012
Another version of A243631. - Philippe Deléham, Sep 26 2014

Examples

			First few rows of the array =
  1,....1,....1,.....1,.....1,...; = A000012
  1.....2,....5,....14,....42,...; = A000108
  1,....3,...11,....45,...197,...; = A001003
  1,....4,...19,...100,...562,...; = A007564
  1,....5,...29,...185,..1257,...; = A059231
  1,....6,...41,...306,..2426,...; = A078009
  ...
First few rows of the triangle =
  1;
  1, 1;
  1, 2,  1;
  1, 3,  5,   1;
  1, 4, 11,  14,    1;
  1, 5, 19,  45,   42,    1;
  1, 6, 29, 100,  197,  132,     1;
  1, 7, 41, 185,  562,  903,   429,     1;
  1, 8, 55, 306, 1257, 3304,  4279,  1430,    1;
  1, 9, 71, 469, 2426, 8952, 20071, 20793, 4862, 1;
  ...
Examples: column 4 of the array = A090197: (1, 14, 45, 100,...) = N(4,n) where N(4,x) is the 4th Narayana polynomial.
Term (5,3) = 29 is the upper left term of M^3, where M = the infinite square production matrix:
  1, 4, 0, 0, 0,...
  1, 1, 4, 0, 0,...
  1, 1, 1, 4, 0,...
  1, 1, 1, 1, 4,...
... generating row 5, A059231: (1, 5, 29, 185,...).
		

Crossrefs

Programs

  • Magma
    A204057:= func< n, k | n eq 0 select 1 else (&+[ Binomial(n, j)^2*k^j*(n-j)/(n*(j+1)): j in [0..n-1]]) >;
    [A204057(k, n-k): k in [1..n], n in [1..12]]; // G. C. Greubel, Feb 16 2021
  • Mathematica
    Table[Hypergeometric2F1[1-k, -k, 2, n-k], {n,12}, {k,n}]//Flatten (* G. C. Greubel, Feb 16 2021 *)
  • Sage
    def A204057(n, k): return 1 if n==0 else sum( binomial(n, j)^2*k^j*(n-j)/(n*(j+1)) for j in [0..n-1])
    flatten([[A204057(k, n-k) for k in [1..n]] for n in [1..12]]) # G. C. Greubel, Feb 16 2021
    

Formula

The triangle is the set of antidiagonals of an array in which columns are f(x) of the Narayana polynomials; with column 1 = (1, 1, 1,...) column 2 = (1, 2, 3,..), column 3 = A028387, column 4 = A090197, then A090198, A090199,...
The array by rows is generated from production matrices of the form:
1, (N-1)
1, 1, (N-1)
1, 1, 1, (N-1)
1, 1, 1, 1, (N-1)
...(infinite square matrices with the rest zeros); such that if the matrix is M, n-th term in row N is the upper left term of M^n.
From G. C. Greubel, Feb 16 2021: (Start)
T(n, k) = Hypergeometric2F1([1-k, -k], [2], n-k).
Sum_{k=1..n} T(n, k) = A132745(n) - 1. (End)

Extensions

Corrected by Philippe Deléham, Jan 13 2012

A127848 Series reversion of x/(1+6x+5x^2).

Original entry on oeis.org

0, 1, 6, 41, 306, 2426, 20076, 171481, 1500666, 13386206, 121267476, 1112674026, 10318939956, 96572168916, 910896992856, 8650566601401, 82644968321226, 793753763514806, 7659535707782916, 74225795172589006, 722042370787826076
Offset: 0

Views

Author

Paul Barry, Feb 02 2007

Keywords

Comments

Hankel transform is -A127849(n)=-5^C(n,2)*(5^n-1)/4; a(n+1) counts (6,5)-Motzkin paths of length n, where there are 6 colors available for the H(1,0) steps and 5 for the U(1,1) steps. See A078009 for more information.

Crossrefs

Cf. A078009.

Programs

  • Mathematica
    CoefficientList[ InverseSeries[ Series[ x/(1+6x+5x^2), {x, 0, 20}], x], x] (* Jean-François Alcover, May 24 2012 *)

Formula

G.f.: (1-6x-sqrt(1-12x+16x^2))/(10x); a(n)=sum{k=0..n-1, (1/n)*C(n,k)C(n,k+1)5^k}; a(n+1)=sum{k=0..floor(n/2), C(n, 2k)C(k)6^(n-2k)*5^k};
Recurrence: (n+1)*a(n) = 6*(2*n-1)*a(n-1) - 16*(n-2)*a(n-2). - Vaclav Kotesovec, Oct 20 2012
a(n) ~ sqrt(10+6*sqrt(5))*(6+2*sqrt(5))^n/(10*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 20 2012. Equivalently, a(n) ~ 2^(2*n) * phi^(2*n + 1) / (5^(3/4) * sqrt(Pi) * n^(3/2)), where phi = A001622 is the golden ratio. - Vaclav Kotesovec, Dec 07 2021
a(n) = A078009(n) for n>0. - Philippe Deléham, Apr 03 2013
Showing 1-10 of 11 results. Next