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 28 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

A047656 a(n) = 3^((n^2-n)/2).

Original entry on oeis.org

1, 1, 3, 27, 729, 59049, 14348907, 10460353203, 22876792454961, 150094635296999121, 2954312706550833698643, 174449211009120179071170507, 30903154382632612361920641803529, 16423203268260658146231467800709255289, 26183890704263137277674192438430182020124347
Offset: 0

Views

Author

Keywords

Comments

The number of outcomes of a chess tournament with n players.
For n >= 1, a(n) is the size of the Sylow 3-subgroup of the Chevalley group A_n(3) (sequence A053290). - Ahmed Fares (ahmedfares(AT)my-deja.com), Apr 30 2001
The number of binary relations on an n-element set that are both reflexive and antisymmetric. - Justin Witt (justinmwitt(AT)gmail.com), Jul 12 2005
The sequence a(n+1) = [1,3,27,729,59049,14348907,...] is the Hankel transform (see A001906 for definition) of A047891 = 1, 3, 12, 57, 300, 1586, 9912, ... . - Philippe Deléham, Aug 29 2006
a(n) is the number of binary relations on a set with n elements that are total relations, i.e., for a relation on a set X it holds for all a and b in X that a~b or b~a (or both). E.g., a(2) = 3 because there are three total relations on a set with two elements: {(a,a),(a,b),(b,a),(b,b)}, {(a,a),(a,b),(b,b)}, and {(a,a),(b,a),(b,b)}. - Geoffrey Critzer, May 23 2008
The number of semicomplete digraphs (or weak tournaments) on n labeled nodes. - Rémy-Robert Joseph, Nov 12 2012
The number of n X n binary matrices A that have a(i,j)=0 whenever a(j,i)=1 for i!=j and zeros on the diagonal. We need only consider the (n^2-n)/2 non-diagonal entry pairs . Since each pair is of the form <0,0>, <0,1>, or <1,0>, a(n) = 3^((n^2-n)/2). - Dennis P. Walsh, Apr 03 2014
a(n) is the number of symmetric (-1,0,1)-matrices of dimension (n-1) X (n-1). - Eric W. Weisstein, Jan 03 2021

Examples

			The a(2)=3 binary 2 X 2 matrices are [0 0; 0 0], [0 1; 0 0], and [0 0; 1 0]. - _Dennis P. Walsh_, Apr 03 2014
		

References

  • P. A. MacMahon, Chess tournaments and the like treated by the calculus of symmetric functions, Coll. Papers I, MIT Press, 344-375.

Crossrefs

Cf. A007747.

Programs

Formula

a(n+1) is the determinant of an n X n matrix M_(i, j) = C(3*i,j). - Benoit Cloitre, Aug 27 2003
Sequence is given by the Hankel transform (see A001906 for definition) of A007564 = {1, 1, 4, 19, 100, 562, 3304, ...}; example: det([1, 1, 4, 19; 1, 4, 19, 100; 4, 19, 100, 562; 19, 100, 562, 3304]) = 3^6 = 729. - Philippe Deléham, Aug 20 2005
The sequence a(n+1) = [1,3,27,729,59049,14348907,...] is the Hankel transform (see A001906 for definition) of A047891 = 1, 3, 12, 57, 300, 1586, 9912, ... . - Philippe Deléham, Aug 29 2006
a(n) = 3^binomial(n,2). - Zerinvary Lajos, Jun 16 2007
G.f. A(x) satisfies: A(x) = 1 + x * A(3*x). - Ilya Gutkovskiy, Jun 04 2020
a(n) = a(n-1)*3^(n-1), a(0) = 1. - Mehdi Naima, Mar 09 2022

A007564 Shifts left when INVERT transform applied thrice.

Original entry on oeis.org

1, 1, 4, 19, 100, 562, 3304, 20071, 124996, 793774, 5120632, 33463102, 221060008, 1473830308, 9904186192, 67015401391, 456192667396, 3122028222934, 21467769499864, 148246598341018, 1027656663676600, 7148588698592956, 49884553176689584
Offset: 0

Views

Author

Keywords

Comments

More generally, coefficients of (1+m*x-sqrt(m^2*x^2-(2*m+2)*x+1))/(2*m*x) are given by a(n) = Sum_{k=0..n} (m+1)^k*N(n,k) where N(n,k) = (1/n)*binomial(n,k)*binomial(n,k+1) are the Narayana numbers (A001263). - Benoit Cloitre, May 24 2003
If y = x*A(x) then 3*y^2 - (1+2*x)*y + x = 0 and x = y*(1-3*y)/(1-2*y). - Michael Somos, Sep 28 2003
The sequence 0,1,4,19,... with g.f. (1-4*x-sqrt(1-8*x+4*x^2))/(6*x) and has a(n) = Sum_{k=0..floor((n-1)/2)} binomial(n-1,2k)*C(k)*4^(n-1-2*k)*3^k. a(n+1) = Sum_{k=0..floor(n/2)} binomial(n,2*k)*C(k)*4^(n-2*k)*3^k counts Motzkin paths of length n in which the level steps have 4 colors and the up steps have 3. It is the binomial transform of A107264 and corresponds to the series reversion of x/(1+4*x+3*x^2). - Paul Barry, May 18 2005
The Hankel transform of this sequence is 3^binomial(n+1,2). - Philippe Deléham, Oct 29 2007
a(n) is the number of Schroder paths of semilength n in which there are no (2,0)-steps at level 0 and at a higher level they come in 2 colors. Example: a(2)=4 because we have UDUD, UUDD, UBD, and URD, where U=(1,1), D=(1,-1), while B (R) is a blue (red) (2,0)-step. - Emeric Deutsch, May 02 2011
a(n) is the number of Schroder paths of semilength n-1 in which the (2,0)-steps at level 0 come in 3 colors and those at a higher level come in 2 colors. Example: a(3)=19 because, denoting U=(1,1), H=(1,0), and D=(1,-1), we have 3^2 = 9 paths of shape HH, 3 paths of shape HUD, 3 paths of shape UDH, 2 paths of shape UHD, and 1 path of each of the shapes UDUD and UUDD. - Emeric Deutsch, May 02 2011
From David Callan, Jun 21 2013: (Start)
a(n) = number of (left) planted binary trees with n edges in which each vertex has a designated favorite neighbor. Planted binary trees are counted by the Catalan numbers A000108.
Example: for n=2, there are 2 planted binary trees: edges LL and LR from the root (L=left, R=right). Each has just one vertex with 2 neighbors, and so a(2)=4.
Proof outline: each vertex has 1,2 or 3 neighbors. Let X (resp. Y) denote the number of vertices with 2 (resp. 3) neighbors. Then X + 2Y = n - 1 (split the non-root edges into pairs with a common parent vertex and singletons). Thus the number of choices for designating favorite neighbors is 2^X * 3^Y = 2^(n-1)(3/4)^Y. The distribution for Y is known because, under the rotation correspondence, a.k.a. the deBruijn-Morselt bijection, vertices with 2 children in an n-edge planted binary tree correspond to DDUs in a Dyck path, and DDUs have the Touchard distribution (A091894) with gf F(x,y) = (1-2x+2xy - sqrt(1-4x+4x^2-4x^2 y))/(2xy). The desired g.f., Sum_{n>=1} a(n)*x^n, is therefore 1/2*(F(2x,3/4)-1). (End)

Examples

			G.f. = 1 + x + 4*x^2 + 19*x^3 + 100*x^4 + 562*x^5 + 3304*x^6 + 20071*x^7 + 124996*x^8 + ...
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • Maple
    A007564_list := proc(n) local j, a, w; a := array(0..n); a[0] := 1;
    for w from 1 to n do a[w] := a[w-1]+3*add(a[j]*a[w-j-1],j=1..w-1) od;
    convert(a, list) end: A007564_list(21); # Peter Luschny, May 19 2011
  • Mathematica
    a[0]=1; a[1]=1; a[n_]/;n>=2 := a[n] = a[n-1] + 3 Sum[a[k-1]a[n-k],{k,n-1}] ; Table[a[n],{n,0,10}] (* David Callan, Aug 25 2009 *)
    Table[Hypergeometric2F1[-n, 1 - n, 2, 3], {n, 0, 22}] (* Arkadiusz Wesolowski, Aug 13 2012 *)
    Table[(2^n (LegendreP[n+1, 2] - LegendreP[n-1, 2]) + 2 KroneckerDelta[n])/(6n+3), {n, 0, 20}] (* Vladimir Reshetnikov, Nov 01 2015 *)
    CoefficientList[Series[(1+2x-Sqrt[1-8x+4x^2])/(6x),{x,0,30}],x] (* Harvey P. Dale, Feb 07 2016 *)
  • PARI
    {a(n) = if( n<1, n==0, sum( k=0, n, 3^k * binomial( n, k) * binomial( n, k+1)) / n)} /* Michael Somos, Sep 28 2003 */
    
  • PARI
    {a(n) = if( n<0, 0, n++; polcoeff( serreverse( x * (1 - 3*x) / (1 - 2*x) + x * O(x^n)), n))} /* Michael Somos, Sep 28 2003 */
    
  • PARI
    a(n) = (2^n*(pollegendre(n+1,2)-pollegendre(n-1,2)) + 2*(n==0))/(6*n+3); \\ Michel Marcus, Nov 02 2015
    
  • PARI
    x='x+O('x^100); Vec((1+2*x-sqrt(1-8*x+4*x^2))/(6*x)) \\ Altug Alkan, Nov 02 2015

Formula

G.f.: (1+2*x-sqrt(1-8*x+4*x^2))/(6*x). - Emeric Deutsch, Nov 03 2001
a(0)=1; for n>=1, a(n) = Sum_{k=0..n} 3^k*N(n,k) where N(n,k) = (1/n)*binomial(n, k)*binomial(n, k+1) are the Narayana numbers (A001263). - Benoit Cloitre, May 24 2003
a(n) = Sum_{k=0..n} A088617(n, k)*3^k*(-2)^(n-k). - Philippe Deléham, Jan 21 2004
With offset 1: a(1) = 1, a(n) = -2*a(n-1) + 3*Sum_{i=1..n-1} a(i)*a(n-i). - Benoit Cloitre, Mar 16 2004
D-finite with recurrence a(n) = (4*(2n-1)*a(n-1) - 4*(n-2)*a(n-2)) / (n+1) for n>=2, a(0) = a(1) = 1. - Philippe Deléham, Aug 19 2005
From Paul Barry, Dec 15 2008: (Start)
G.f.: 1/(1-x/(1-3x/(1-x/(1-3x/(1-x/(1-3x/(1-x/(1-3x........ (continued fraction).
The g.f. of a(n+1) is 1/(1-4x-3x^2/(1-4x-3x^2/(1-4x-3x^2/(1-4x-3x^2.... (continued fraction). (End)
a(0) = 1, for n>=1, 3a(n) = A047891(n). - Aoife Hennessy (aoife.hennessy(AT)gmail.com), Dec 02 2009
a(n) = upper left term in M^n, M = the production matrix:
1, 1
3, 3, 3
1, 1, 1, 1
3, 3, 3, 3, 3
1, 1, 1, 1, 1, 1
...
- Gary W. Adamson, Jul 08 2011
G.f.: A(x)= (1+2*x-sqrt(1-8*x+4*x^2))/(6*x)= 1/G(0); G(k)= 1 + 2*x - 3*x/G(k+1); (continued fraction, 1-step ). - Sergei N. Gladkovskii, Jan 05 2012
a(n) ~ sqrt(6+4*sqrt(3))*(4+2*sqrt(3))^n/(6*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 07 2012
a(n) = 2^n/sqrt(3)*LegendreP(n,-1,2) for n >= 1, where LegendreP is the associated Legendre function of the first kind, in Maple's notation. - Robert Israel, Mar 24 2015

A060693 Triangle (0 <= k <= n) read by rows: T(n, k) is the number of Schröder paths from (0,0) to (2n,0) having k peaks.

Original entry on oeis.org

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

Views

Author

F. Chapoton, Apr 20 2001

Keywords

Comments

The rows sum to A006318 (Schroeder numbers), the left column is A000108 (Catalan numbers); the next-to-left column is A001700, the alternating sum in each row but the first is 0.
T(n,k) is the 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 peaks. Example: T(2,1)=3 because we have UU*DD, U*DH and HU*D, the peaks being shown by *. E.g., T(n,k) = binomial(n,k)*binomial(2n-k,n-1)/n for n>0. - Emeric Deutsch, Dec 06 2003
A090181*A007318 as infinite lower triangular matrices. - Philippe Deléham, Oct 14 2008
T(n,k) is also the number of rooted plane trees with maximal degree 3 and k vertices of degree 2 (a node may have at most 2 children, and there are exactly k nodes with 1 child). Equivalently, T(n,k) is the number of syntactically different expressions that can be formed that use a unary operation k times, a binary operation n-k times, and nothing else (sequence of operands is fixed). - Lars Hellstrom (Lars.Hellstrom(AT)residenset.net), Dec 08 2009

Examples

			Triangle begins:
00: [    1]
01: [    1,     1]
02: [    2,     3,      1]
03: [    5,    10,      6,      1]
04: [   14,    35,     30,     10,      1]
05: [   42,   126,    140,     70,     15,      1]
06: [  132,   462,    630,    420,    140,     21,     1]
07: [  429,  1716,   2772,   2310,   1050,    252,    28,    1]
08: [ 1430,  6435,  12012,  12012,   6930,   2310,   420,   36,   1]
09: [ 4862, 24310,  51480,  60060,  42042,  18018,  4620,  660,  45,  1]
10: [16796, 92378, 218790, 291720, 240240, 126126, 42042, 8580, 990, 55, 1]
...
		

Crossrefs

Triangle in A088617 transposed.
T(2n,n) gives A007004.

Programs

  • Maple
    A060693 := (n,k) -> binomial(n,k)*binomial(2*n-k,n)/(n-k+1); # Peter Luschny, May 17 2011
  • Mathematica
    t[n_, k_] := Binomial[n, k]*Binomial[2 n - k, n]/(n - k + 1); Flatten[Table[t[n, k], {n, 0, 9}, {k, 0, n}]] (* Robert G. Wilson v, May 30 2011 *)
  • PARI
    T(n, k) = binomial(n, k)*binomial(2*n - k, n)/(n - k + 1);
    for(n=0, 10, for(k=0, n, print1(T(n, k),", ")); print); \\ Indranil Ghosh, Jul 28 2017
    
  • Python
    from sympy import binomial
    def T(n, k): return binomial(n, k) * binomial(2 * n - k, n) / (n - k + 1)
    for n in range(11): print([T(n, k) for k in range(n + 1)])  # Indranil Ghosh, Jul 28 2017

Formula

Triangle T(n, k) (0 <= k <= n) read by rows; given by [1, 1, 1, 1, 1, ...] DELTA [1, 0, 1, 0, 1, 0, ...] where DELTA is the operator defined in A084938. - Philippe Deléham, Aug 12 2003
If C_n(x) is the g.f. of row n of the Narayana numbers (A001263), C_n(x) = Sum_{k=1..n} binomial(n,k-1)*(binomial(n-1,k-1)/k) * x^k and T_n(x) is the g.f. of row n of T(n,k), then T_n(x) = C_n(x+1), or T(n,k) = [x^n]Sum_{k=1..n}(A001263(n,k)*(x+1)^k). - Mitch Harris, Jan 16 2007, Jan 31 2007
G.f.: (1 - t*y - sqrt((1-y*t)^2 - 4*y)) / 2.
T(n, k) = binomial(2n-k, n)*binomial(n, k)/(n-k+1). - Philippe Deléham, Dec 07 2003
A060693(n, k) = binomial(2*n-k, k)*A000108(n-k); A000108: Catalan numbers. - Philippe Deléham, Dec 30 2003
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 = -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, respectively. - Philippe Deléham, Apr 01 2007
T(n,k) = Sum_{j>=0} A090181(n,j)*binomial(j,k). - Philippe Deléham, May 04 2007
Sum_{k=0..n} T(n,k)*x^(n-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
From Paul Barry, Jan 29 2009: (Start)
G.f.: 1/(1-xy-x/(1-xy-x/(1-xy-x/(1-xy-x/(1-xy-x/(1-.... (continued fraction);
G.f.: 1/(1-(x+xy)/(1-x/(1-(x+xy)/(1-x/(1-(x+xy)/(1-.... (continued fraction). (End)
T(n,k) = [k<=n]*(Sum_{j=0..n} binomial(n,j)^2*binomial(j,k))/(n-k+1). - Paul Barry, May 28 2009
T(n,k) = A104684(n,k)/(n-k+1). - Peter Luschny, May 17 2011
From Tom Copeland, Sep 21 2011: (Start)
With F(x,t) = (1-(2+t)*x-sqrt(1-2*(2+t)*x+(t*x)^2))/(2*x) an o.g.f. (nulling the n=0 term) in x for the A060693 polynomials in t,
G(x,t) = x/(1+t+(2+t)*x+x^2) is the compositional inverse in x.
Consequently, with H(x,t) = 1/(dG(x,t)/dx) = (1+t+(2+t)*x+x^2)^2 / (1+t-x^2), the n-th A060693 polynomial in t is given by (1/n!)*((H(x,t)*d/dx)^n) x evaluated at x=0, i.e., F(x,t) = exp(x*H(u,t)*d/d) u, evaluated at u = 0.
Also, dF(x,t)/dx = H(F(x,t),t). (End)
See my 2008 formulas in A033282 to relate this entry to A088617, A001263, A086810, and other matrices. - Tom Copeland, Jan 22 2016
Rows of this entry are non-vanishing antidiagonals of A097610. See p. 14 of Agapito et al. for a bivariate generating function and its inverse. - Tom Copeland, Feb 03 2016
From Werner Schulte, Jan 09 2017: (Start)
T(n,k) = A126216(n,k-1) + A126216(n,k) for 0 < k < n;
Sum_{k=0..n} (-1)^k*(1+x*(n-k))*T(n,k) = x + (1-x)*A000007(n).
(End)
Conjecture: Sum_{k=0..n} (-1)^k*T(n,k)*(n+1-k)^2 = 1+n+n^2. - Werner Schulte, Jan 11 2017

Extensions

More terms from Vladeta Jovovic, Apr 21 2001
New description from Philippe Deléham, Aug 12 2003
New name using a comment by Emeric Deutsch from Peter Luschny, Jul 26 2017

A082298 Expansion of (1-3*x-sqrt(9*x^2-10*x+1))/(2*x).

Original entry on oeis.org

1, 4, 20, 116, 740, 5028, 35700, 261780, 1967300, 15072836, 117297620, 924612532, 7367204260, 59240277988, 480118631220, 3917880562644, 32163325863300, 265446382860420, 2201136740855700, 18329850024033012, 153225552507991140
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*binomial(n,k)*binomial(n,k-1).
a(n) = number of lattice paths from (0,0) to (n+1,n+1) that consist of steps (i,0) and (0,j) with i,j>=1 and that stay strictly below the diagonal line y=x except at the endpoints. (See Coker reference.) Equivalently, a(n) = number of marked Dyck (n+1)-paths where the vertices in the middle of each UU and each DD are available to be marked (or not): consider the original path as a Dyck path with a mark at each vertex where two horizontal (or two vertical) steps abut. If only the UU vertices are available for marking, then the counting sequence is the little Schroeder number A001003. - David Callan, Jun 07 2006
Hankel transform is 4^C(n+1,2). - Philippe Deléham, Feb 11 2009
a(n) is the number of Schroder paths of semilength n in which the (2,0)-steps come in 3 colors. Example: a(2)=20 because, denoting U=(1,1), H=(2,0), D=(1,-1), we have 3^2=9 paths of shape HH, 3 paths of shape HUD, 3 paths of shape UDH, 3 paths of shape UHD, and 1 path of each of the shapes UDUD, UUDD. - Emeric Deutsch, May 02 2011
(1 + 4x + 20x^2 + 116x^3 + ...) = (1 + 5x + 29x^2 + 185x^3 + ...) * 1/(1 + x + 5x^2 + 29x^3 +185x^4 + ...); where A059231 = (1, 5, 29, 185, 1257, ...) - Gary W. Adamson, Nov 17 2011
The first differences between the row sums of the triangle A226392. - J. M. Bergot, Jun 21 2013

Crossrefs

Programs

  • Magma
    Q:=Rationals(); R:=PowerSeriesRing(Q, 40); Coefficients(R!((1-3*x-Sqrt(9*x^2-10*x+1))/(2*x))); // G. C. Greubel, Feb 10 2018
  • Maple
    A082298_list := proc(n) local j, a, w; a := array(0..n); a[0] := 1;
    for w from 1 to n do a[w] := 4*a[w-1]+add(a[j]*a[w-j-1], j=1..w-1) od;convert(a,list)end: A082298_list(20); # Peter Luschny, May 19 2011
    a := n -> `if`(n=0, 1, 4*hypergeom([1 - n, -n], [2], 4)):
    seq(simplify(a(n)), n=0..20); # Peter Luschny, May 22 2017
  • Mathematica
    gf[x_] = (1 - 3*x - Sqrt[(9*x^2 - 10*x + 1)])/(2*x); CoefficientList[Series[gf[x], {x, 0, 20}], x] (* Jean-François Alcover, Jun 01 2011 *)
  • PARI
    a(n)=if(n<1,1,sum(k=0,n,4^k*binomial(n,k)*binomial(n,k-1))/n)
    

Formula

a(0)=1, n>0 a(n) = (1/n)*Sum_{k=0..n} 4^k*binomial(n, k)*binomial(n, k-1).
a(1)=1, a(n) = 3*a(n-1) + Sum_{i=1..n-1} a(i)*a(n-i). - Benoit Cloitre, Mar 16 2004
a(n) = Sum_{k=0..n} 1/(n+1) Binomial(n+1,k)Binomial(2n-k,n-k)3^k. - David Callan, Jun 07 2006
From Paul Barry, Feb 01 2009: (Start)
G.f.: 1/(1-3x-x/(1-3x-x/(1-3x-x/(1-... (continued fraction);
a(n) = Sum_{k=0..n} binomial(n+k,2k)*3^(n-k)*A000108(k). (End)
a(n) = Sum_{k=0..n} A060693(n,k)*3^k. - Philippe Deléham, Feb 11 2009
D-finite with recurrence: (n+1)*a(n) = 5*(2n-1)*a(n-1)-9*(n-2)*a(n-2). - Paul Barry, Oct 22 2009
G.f.: 1/(1- 4x/(1-x/(1-4x/(1-x/(1-4x/(1-... (continued fraction). - Aoife Hennessy (aoife.hennessy(AT)gmail.com), Dec 02 2009
G.f.: (1-3*x-sqrt(9*x^2-10*x+1))/(2*x) = (1-G(0))/x; G(k) = 1+x*3-x*4/G(k+1); (continued fraction, 1-step). - Sergei N. Gladkovskii, Jan 05 2012
a(n) ~ 3^(2*n+1)/(sqrt(2*Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 14 2012
a(n) = 4*hypergeom([1 - n, -n], [2], 4) for n>0. - Peter Luschny, May 22 2017
G.f. A(x) satisfies: A(x) = (1 + x*A(x)^2) / (1 - 3*x). - Ilya Gutkovskiy, Jun 30 2020
G.f.: (1+2*x*F(x))^2, where F(x) is the g.f. for A099250. - Alexander Burstein, May 11 2021

A336575 Square array T(n,k), n>=0, k>=0, read by antidiagonals, where T(0,k) = 1 and T(n,k) = (1/n) * Sum_{j=1..n} 3^j * binomial(n,j) * binomial(k*n,j-1) for n > 0.

Original entry on oeis.org

1, 1, 3, 1, 3, 3, 1, 3, 12, 3, 1, 3, 21, 57, 3, 1, 3, 30, 192, 300, 3, 1, 3, 39, 408, 2001, 1686, 3, 1, 3, 48, 705, 6402, 22539, 9912, 3, 1, 3, 57, 1083, 14799, 109137, 267276, 60213, 3, 1, 3, 66, 1542, 28488, 338430, 1964010, 3287496, 374988, 3, 1, 3, 75, 2082, 48765, 817743, 8181597, 36718680, 41556585, 2381322, 3
Offset: 0

Views

Author

Seiichi Manyama, Jul 26 2020

Keywords

Examples

			Square array begins:
  1,    1,     1,      1,      1,      1, ...
  3,    3,     3,      3,      3,      3, ...
  3,   12,    21,     30,     39,     48, ...
  3,   57,   192,    408,    705,   1083, ...
  3,  300,  2001,   6402,  14799,  28488, ...
  3, 1686, 22539, 109137, 338430, 817743, ...
		

Crossrefs

Columns k=0-4 give: A122553, A047891, A219535, A336538, A336540.
Main diagonal gives A336578.

Programs

  • Mathematica
    T[0, k_] := 1; T[n_, k_] := Sum[3^j * Binomial[n, j] * Binomial[k*n, j - 1], {j, 1, n}]/n; Table[T[k, n - k], {n, 0, 10}, {k, 0, n}] // Flatten (* Amiram Eldar, Jul 27 2020 *)
  • PARI
    T(n, k) = if(n==0, 1, sum(j=1, n, 3^j*binomial(n, j)*binomial(k*n, j-1))/n);
    
  • PARI
    T(n, k) = my(A=1+x*O(x^n)); for(i=0, n, A=1+x*A^k*(2+A)); polcoeff(A, n);
    
  • PARI
    T(n, k) = sum(j=0, n, 2^(n-j)*binomial(n, j)*binomial(k*n+j+1, n)/(k*n+j+1));
    
  • PARI
    T(n, k) = sum(j=0, n, 2^j*binomial(k*n+1, j)*binomial((k+1)*n-j, n-j))/(k*n+1);

Formula

G.f. A_k(x) of column k satisfies A_k(x) = 1 + x * A_k(x)^k * (2 + A_k(x)).
T(n,k) = Sum_{j=0..n} 2^(n-j) * binomial(n,j) * binomial(k*n+j+1,n)/(k*n+j+1).
T(n,k) = (1/(k*n+1)) * Sum_{j=0..n} 2^j * binomial(k*n+1,j) * binomial((k+1)*n-j,n-j).
T(n,k) = (1/n) * Sum_{j=0..n-1} (-2)^j * 3^(n-j) * binomial(n,j) * binomial((k+1)*n-j,n-1-j) for n > 0. - Seiichi Manyama, Aug 10 2023
T(n,k) = 3*hypergeom([1-n, -k*n], [2], 3) for n > 0. - Stefano Spezia, Aug 09 2025

A082305 G.f.: (1 - 6*x - sqrt(36*x^2 - 16*x + 1))/(2*x).

Original entry on oeis.org

1, 7, 56, 497, 4760, 48174, 507696, 5516133, 61363736, 695540258, 8004487568, 93283238986, 1098653880688, 13056472392796, 156371970692448, 1885491757551213, 22870028390806296, 278862330338622618
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 a(n) = (1/n)*Sum_{k=0..n} (m+1)^k * C(n,k) *C(n,k-1) for n > 0.
Hankel transform is 7^C(n+1,2). - Philippe Deléham, Feb 11 2009

Crossrefs

Programs

  • Magma
    m:=30; R:=PowerSeriesRing(Rationals(), m); Coefficients(R!((1-6*x-Sqrt(36*x^2-16*x+1))/(2*x))); // G. C. Greubel, Sep 16 2018
  • Mathematica
    Table[SeriesCoefficient[(1-6*x-Sqrt[36*x^2-16*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,7^k*binomial(n,k)*binomial(n,k-1))/n)
    
  • PARI
    x='x+O('x^99); Vec((1-6*x-(36*x^2-16*x+1)^(1/2))/(2*x)) \\ Altug Alkan, Apr 04 2018
    

Formula

a(n) = (1/n)*Sum_{k=0..n} 7^k*C(n, k)*C(n, k-1), a(0)=1.
D-finite with recurrence: (n+1)*a(n) + 8*(1-2*n)*a(n-1) + 36*(n-2)*a(n-2) = 0. - R. J. Mathar, Nov 14 2011
a(n) ~ sqrt(14+8*sqrt(7))*(8+2*sqrt(7))^n*(2*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 14 2012
G.f.: 1/(1 - 6*x - x/(1 - 6*x - x/(1 - 6*x - x/(1 - 6*x - x/(1 - ...))))), a continued fraction. - Ilya Gutkovskiy, Apr 04 2018

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

A025231 a(n) = a(1)*a(n-1) + a(2)*a(n-2) + ...+ a(n-1)*a(1) for n >= 3, with initial terms 2,3.

Original entry on oeis.org

2, 3, 12, 57, 300, 1686, 9912, 60213, 374988, 2381322, 15361896, 100389306, 663180024, 4421490924, 29712558576, 201046204173, 1368578002188, 9366084668802, 64403308499592, 444739795023054, 3082969991029800
Offset: 1

Views

Author

Keywords

Examples

			G.f. = 2*x + 3*x^2 + 12*x^3 + 57*x^4 + 300*x^5 + 1686*x^6 + 9912*x^7 + ...
		

Crossrefs

Essentially the same as A047891.

Programs

  • Mathematica
    Table[SeriesCoefficient[(1 - Sqrt[1 - 8*x + 4*x^2])/2,{x, 0, n}], {n, 1, 20}] (* Vaclav Kotesovec, Oct 07 2012 *)
  • Maxima
    a(n):=sum(binomial(k+1,n-k)*2^(2*k+1-n)*(-1)^(n-k)*binomial(2*k,k)/(k+1),k,0,n); /* _Vladimir Kruchinin, Apr 21 2023 */
  • PARI
    a(n)=polcoeff((1-sqrt(1-8*x+4*x^2+x*O(x^n)))/2,n)
    

Formula

G.f.: (1 - sqrt(1 - 8*x + 4*x^2))/2. - Michael Somos, Jun 08 2000
n*a(n) = (8*n - 12)*a(n - 1) - (4*n - 12)*a(n - 2). [Richard Choulet, Dec 16 2009]
G.f.: 1 + x - G(0); G(k) = 1 + 2*x - 3*x/G(k + 1); (continued fraction, 1-step). - Sergei N. Gladkovskii, Jan 05 2012
a(n) ~ sqrt(4*sqrt(3) - 6)*(4 + 2*sqrt(3))^n/(4*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 07 2012
G.f.: x + x/W(0), where W(k)= 1 - 2*x - x/W(k+1); (continued fraction). - Sergei N. Gladkovskii, Aug 16 2013 [Edited by Michael Somos, Apr 10 2014]
0 = a(n)*(+16*a(n+1) - 80*a(n+2) + 16*a(n+3)) + a(n+1)*(+16*a(n+1) + 56*a(n+2) - 20*a(n+3)) + a(n+2)*(+4*a(n+2) + a(n+3)) if n>0. - Michael Somos, Apr 10 2014
a(n) = Sum_{k=0..n} C(k+1,n-k)*2^(2*k+1-n)*(-1)^(n-k)*C(2*k,k)/(k+1). - Vladimir Kruchinin, Apr 21 2023

Extensions

Name clarified by Robert C. Lyons, Feb 06 2025
Showing 1-10 of 28 results. Next