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-5 of 5 results.

A245049 Number A(n,k) of hybrid k-ary trees with n internal nodes; square array A(n,k), n>=0, k>=1, read by antidiagonals.

Original entry on oeis.org

1, 1, 2, 1, 2, 3, 1, 2, 7, 5, 1, 2, 11, 31, 8, 1, 2, 15, 81, 154, 13, 1, 2, 19, 155, 684, 820, 21, 1, 2, 23, 253, 1854, 6257, 4575, 34, 1, 2, 27, 375, 3920, 24124, 60325, 26398, 55, 1, 2, 31, 521, 7138, 66221, 331575, 603641, 156233, 89, 1, 2, 35, 691, 11764, 148348, 1183077, 4736345, 6210059, 943174, 144
Offset: 0

Views

Author

Alois P. Heinz, Jul 10 2014

Keywords

Examples

			Square array A(n,k) begins:
   1,    1,     1,      1,       1,       1,       1, ...
   2,    2,     2,      2,       2,       2,       2, ...
   3,    7,    11,     15,      19,      23,      27, ...
   5,   31,    81,    155,     253,     375,     521, ...
   8,  154,   684,   1854,    3920,    7138,   11764, ...
  13,  820,  6257,  24124,   66221,  148348,  290305, ...
  21, 4575, 60325, 331575, 1183077, 3262975, 7585749, ...
		

Crossrefs

Rows n=0-2 give: A000012, A007395, A004767(k-1).
Main diagonal gives A245054.

Programs

  • Maple
    A:= (n, k)-> add(binomial((k-1)*n+i, i)*
        binomial((k-1)*n+i+1, n-i), i=0..n)/((k-1)*n+1):
    seq(seq(A(n, 1+d-n), n=0..d), d=0..12);
  • Mathematica
    A[n_, k_] := Sum[Binomial[(k-1)*n+i, i]*Binomial[(k-1)*n+i+1, n-i], {i, 0, n}]/((k-1)*n+1); Table[A[n, 1+d-n], {d, 0, 12}, {n, 0, d}] // Flatten (* Jean-François Alcover, Feb 18 2017, translated from Maple *)

Formula

A(n,k) = 1/((k-1)*n+1) * Sum_{i=0..n} C((k-1)*n+i,i)*C((k-1)*n+i+1,n-i).
A(n,k) = [x^n] ((1+x)/(1-x-x^2))^((k-1)*n+1) / ((k-1)*n+1).
G.f. for column k satisfies: A_k(x) = (1+x*A_k(x)^(k-1)) * (1+x*A_k(x)^k).

A364337 G.f. satisfies A(x) = (1 + x) * (1 + x*A(x)^4).

Original entry on oeis.org

1, 2, 9, 68, 580, 5406, 53270, 545844, 5757332, 62094217, 681653493, 7591431752, 85558696024, 974024788280, 11184192097016, 129378232148016, 1506363564912368, 17639001584452320, 207593804132718948, 2454236122156830254, 29132714097692056954, 347086786035103983446
Offset: 0

Views

Author

Seiichi Manyama, Jul 19 2023

Keywords

Crossrefs

Programs

  • Mathematica
    terms = 22; A[] = 0; Do[A[x] = (1+x)(1+x*A[x]^4) + O[x]^terms // Normal, terms]; CoefficientList[A[x], x] (* Stefano Spezia, Mar 24 2025 *)
  • PARI
    a(n) = sum(k=0, n, binomial(4*k+1, k)*binomial(4*k+1, n-k)/(4*k+1));

Formula

a(n) = Sum_{k=0..n} binomial(4*k+1,k) * binomial(4*k+1,n-k) / (4*k+1).

A239108 Number of hybrid 5-ary trees with n internal nodes.

Original entry on oeis.org

1, 2, 19, 253, 3920, 66221, 1183077, 21981764, 420449439, 8223704755, 163727846678, 3307039145618, 67600147666909, 1395822347989531, 29070233296701815, 609950649080323320, 12881240945694949696, 273590092192962485985, 5840400740191969187922
Offset: 0

Views

Author

N. J. A. Sloane, Mar 26 2014

Keywords

Crossrefs

Programs

  • Mathematica
    (1/x InverseSeries[x(1 - x - x^2)^4/(1 + x)^4 + O[x]^20])^(1/4) // CoefficientList[#, x]& (* Jean-François Alcover, Oct 02 2019 *)
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=(1 + x*A^4)*(1 + x*A^5)); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=polcoeff( ((1/x)*serreverse( x*(1-x-x^2)^4/(1+x +x*O(x^n))^4))^(1/4), n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=exp(sum(m=1, n, sum(j=0, m, binomial(m, j)^2*A^j)*x^m*A^(3*m)/m))); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=exp(sum(m=1, n, sum(j=0, m, binomial(m, j)^2/A^j)*x^m*A^(4*m)/m))); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=polcoeff(((1+x)/(1-x-x^2 +x*O(x^n)))^(4*n+1)/(4*n+1), n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014

Formula

From Paul D. Hanna, Mar 30 2014: (Start)
G.f. A(x) satisfies:
(1) A(x) = (1 + x*A(x)^4) * (1 + x*A(x)^5).
(2) A(x) = ( (1/x)*Series_Reversion( x*(1-x-x^2)^4/(1+x)^4 ) )^(1/4).
(3) A(x) = exp( Sum_{n>=1} x^n*A(x)^(3*n)/n * Sum_{k=0..n} C(n,k)^2 * A(x)^k ).
(4) A(x) = exp( Sum_{n>=1} x^n*A(x)^(4*n)/n * Sum_{k=0..n} C(n,k)^2 / A(x)^k ).
(5) A(x) = Sum_{n>=0} Fibonacci(n+2) * x^n * A(x)^(4*n).
(6) A(x) = G(x*A(x)^3) where G(x) = A(x/G(x)^3) is the g.f. of A007863 (number of hybrid binary trees with n internal nodes).
The formal inverse of g.f. A(x) is (sqrt(1-2*x+5*x^2) - (1+x))/(2*x^5).
a(n) = [x^n] ( (1+x)/(1-x-x^2) )^(4*n+1) / (4*n+1).
(End)

A239109 Number of hybrid 6-ary trees with n internal nodes.

Original entry on oeis.org

1, 2, 23, 375, 7138, 148348, 3262975, 74673216, 1759690865, 42412172598, 1040644972314, 25907046248766, 652763779424538, 16614703783094140, 426563932954831827, 11033640140115676862, 287265076610919864178, 7522060666571155198520, 197969862318742854908470
Offset: 0

Views

Author

N. J. A. Sloane, Mar 26 2014

Keywords

Crossrefs

Programs

  • Mathematica
    (1/x InverseSeries[x*(1 - x - x^2)^5/(1 + x)^5 + O[x]^20])^(1/5) // CoefficientList[#, x]& (* Jean-François Alcover, Oct 02 2019 *)
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=(1 + x*A^5)*(1 + x*A^6)); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=polcoeff( ((1/x)*serreverse( x*(1-x-x^2)^5/(1+x +x*O(x^n))^5))^(1/5), n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=exp(sum(m=1, n, sum(j=0, m, binomial(m, j)^2*A^j)*x^m*A^(4*m)/m))); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=local(A=1+x+x*O(x^n)); for(i=1, n, A=exp(sum(m=1, n, sum(j=0, m, binomial(m, j)^2/A^j)*x^m*A^(5*m)/m))); polcoeff(A, n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014
    
  • PARI
    a(n)=polcoeff(((1+x)/(1-x-x^2 +x*O(x^n)))^(5*n+1)/(5*n+1), n)
    for(n=0, 20, print1(a(n), ", ")) \\ Paul D. Hanna, Mar 30 2014

Formula

From Paul D. Hanna, Mar 30 2014: (Start)
G.f. A(x) satisfies:
(1) A(x) = (1 + x*A(x)^5) * (1 + x*A(x)^6).
(2) A(x) = ( (1/x)*Series_Reversion( x*(1-x-x^2)^5/(1+x)^5 ) )^(1/5).
(3) A(x) = exp( Sum_{n>=1} x^n*A(x)^(4*n)/n * Sum_{k=0..n} C(n,k)^2 * A(x)^k ).
(4) A(x) = exp( Sum_{n>=1} x^n*A(x)^(5*n)/n * Sum_{k=0..n} C(n,k)^2 / A(x)^k ).
(5) A(x) = Sum_{n>=0} Fibonacci(n+2) * x^n * A(x)^(5*n).
(6) A(x) = G(x*A(x)^4) where G(x) = A(x/G(x)^4) is the g.f. of A007863 (number of hybrid binary trees with n internal nodes).
The formal inverse of g.f. A(x) is (sqrt(1-2*x+5*x^2) - (1+x))/(2*x^6).
a(n) = [x^n] ( (1+x)/(1-x-x^2) )^(5*n+1) / (5*n+1).
(End)

A379023 Expansion of (1/x) * Series_Reversion( x * ((1 - x - x^2)/(1 + x))^3 ).

Original entry on oeis.org

1, 6, 57, 653, 8277, 111780, 1576671, 22955298, 342377304, 5204438258, 80334470136, 1255798641861, 19840021268937, 316286673287724, 5081503084814883, 82193597974971157, 1337397202150986387, 21875767255039745856, 359499909751084059372, 5932767953991599086905
Offset: 0

Views

Author

Seiichi Manyama, Dec 14 2024

Keywords

Crossrefs

Programs

  • PARI
    a(n) = 3*sum(k=0, n, binomial(3*n+k+3, k)*binomial(3*n+k+3, n-k)/(3*n+k+3));

Formula

G.f. A(x) satisfies:
(1) A(x) = exp( Sum_{k>=1} A379025(k) * x^k/k ).
(2) A(x) = ( (1 + x*A(x)) * (1 + x*A(x)^(4/3)) )^3.
(3) A(x) = B(x)^3 where B(x) is the g.f. of A239107.
a(n) = (1/(n+1)) * [x^n] ( (1 + x)/(1 - x - x^2) )^(3*(n+1)).
a(n) = 3 * Sum_{k=0..n} binomial(3*n+k+3,k) * binomial(3*n+k+3,n-k)/(3*n+k+3) = (1/(n+1)) * Sum_{k=0..n} binomial(3*n+k+2,k) * binomial(3*n+k+3,n-k).
Showing 1-5 of 5 results.