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.

Previous Showing 21-30 of 59 results. Next

A180874 Lassalle's sequence connected with Catalan numbers and Narayana polynomials.

Original entry on oeis.org

1, 1, 5, 56, 1092, 32670, 1387815, 79389310, 5882844968, 548129834616, 62720089624920, 8646340208462880, 1413380381699497200, 270316008395632253340, 59800308109377016336155, 15151722444639718679892150, 4359147487054262623576455600
Offset: 1

Views

Author

Jonathan Vos Post, Sep 22 2010

Keywords

Comments

Defined by the recurrence formula in Theorem 1, page 2 of Lasalle.
From Tom Copeland, Jan 26 2016: (Start)
Let G(t) = Sum_{n>=0} t^(2n)/(n!(n+1)!) = exp(c.t) be the e.g.f. of the aerated Catalan numbers c_n of A126120.
R = x + H(D) = x + d/dD log[G(D)] = x + D - D^3/3! + 5 D^5/5! - 56 D^7/7! + ... = x + e^(r. D) generates a signed, aerated version of this entry's sequence a(n), (r.)^(2n+1) = r(2n+1) = (-1)^n a(n+1) for n>=0 and r(0) = a(0) = 0, and is, with D = d/dx, the raising operator for the Appell polynomials P(n,x) of A097610, where P(n,x) = (c. + x)^n = Sum{k=0 to n} binomial(n,k) c_k x^(n-k) with c_k = A126120(k), i.e., R P(n,x) = P(n+1,x).
d/dt log[G(t)] = e^(r.t) = e^(q.t) / e^(c.t) = Ev[c. e^(c.t)] / Ev[e^(c.t)] = e^(q.t) e^(d.t) = [Sum_{n>=0} 2n t^(2n-1)/(n!(n+1)!)] / [Sum_{n>=0} t^(2n)/(n!(n+1)!)] with Ev[..] denoting umbral evaluation, so q(n) = c(n+1) = A126120(n+1) and d(2n) = (-1)^n A238390(n) and vanishes otherwise. Then (r. + c.)^n = q(n) = Sum_{k=0..n} binomial(n,k) r(k) c(n-k) and (q. + d.)^n = r(n), relating A180874, A126120 (A000108), and A238390 through binomial convolutions.
The sequence can also be represented in terms of the Faber polynomials of A263916 as a(n) = |(2n-1)! F(2n,0,b(2),0,b(4),0,..)| = |h(2n)| where b(2n) = 1/(n!(n + 1)!) = A126120(2n)/(2n)! = A000108(n)/(2n)!, giving h(0) = 1, h(1) = 0, h(2) = 1, h(3) = 0, h(4) = -1, h(5) = 0, h(6) = 5, h(7) = 0, h(8) = -56, ..., implying, among other relations, that A000108(n/2)= A126120(n) = Bell(n,0,h(2),0,h(4),...), the Bell polynomials of A036040 which reduce to A257490 in this case.
(End)
From Colin Defant, Sep 06 2018: (Start)
a(n) is the number of pairs (rho,r), where rho is a matching on [2n] and r is an acyclic orientation of the crossing graph of rho in which the block containing 1 is the only source (see the Josuat-Verges paper or the Defant-Engen-Miller paper for definitions).
a(n) is the number of permutations of [2n-1] that have exactly 1 preimage under West's stack-sorting map.
a(n) is the number of valid hook configurations of permutations of [2n-1] that have n-1 hooks (see the paper by Defant, Engen, and Miller for definitions).
Say a binary tree is full if every vertex has either 0 or 2 children. If u is a left child in such a tree, then we can start at the sibling of u and travel down left edges until reaching a leaf v. Call v the leftmost nephew of u. A decreasing binary plane tree on [m] is a binary plane tree labeled with the elements of [m] in which every nonroot vertex has a label that is smaller than the label of its parent. a(n) is the number of full decreasing binary plane trees on [2n-1] in which every left child has a label that is larger than the label of its leftmost nephew.
(End)

Crossrefs

Programs

  • Maple
    A000108 := proc(n) binomial(2*n,n)/(1+n) ; end proc:
    A180874 := proc(n) option remember; if n = 1 then 1; else A000108(n)+add((-1)^j*binomial(2*n-1,2*j-1)*procname(j)*A000108(n-j),j=1..n-1) ;   %*(-1)^(n-1) ; end if; end proc: # R. J. Mathar, Apr 16 2011
  • Mathematica
    nmax=20; a = ConstantArray[0,nmax]; a[[1]]=1; Do[a[[n]] = (-1)^(n-1)*(Binomial[2*n,n]/(n+1) + Sum[(-1)^j*Binomial[2n-1,2j-1]*a[[j]]* Binomial[2*(n-j),n-j]/(n-j+1),{j,1,n-1}]),{n,2,nmax}]; a (* Vaclav Kotesovec, Feb 28 2014 *)

Formula

a(n) = (-1)^(n-1) * (C(n)+Sum_{j=1..n-1} (-1)^j *binomial(2n-1,2j-1) * a(j) *C(n-j)), where C() = A000108(). - R. J. Mathar, Apr 17 2011, corrected by Vaclav Kotesovec, Feb 28 2014
E.g.f.: Sum_{k>=0} a(k)*x^(2*k+2)/(2*k+2)! = log(x/BesselJ(1,2*x)). - Sergei N. Gladkovskii, Dec 28 2011
a(n) ~ (n!)^2 / (sqrt(Pi) * n^(3/2) * r^n), where r = BesselJZero[1, 1]^2/16 = 0.917623165132743328576236110539381686855099186384686... - Vaclav Kotesovec, added Feb 28 2014, updated Mar 01 2014
Define E(m,n) by E(1,1) = 1, E(n,n) = 0 for n > 1, and E(m,n) = Sum_{j=1..m} Sum_{i=1..n-m-1} binomial(n-m-1,i-1) * F_j(i+j-1) * F_{m-j}(n-j-i) for 0 <= m < n, where F_m(n) = Sum_{j=m..n} E_j(n). Then a(n) = F_0(2n-1). - Colin Defant, Sep 06 2018

A210736 Expansion of (1 + sqrt( (1 + 2*x) / (1 - 2*x))) / 2 in powers of x.

Original entry on oeis.org

1, 1, 1, 2, 3, 6, 10, 20, 35, 70, 126, 252, 462, 924, 1716, 3432, 6435, 12870, 24310, 48620, 92378, 184756, 352716, 705432, 1352078, 2704156, 5200300, 10400600, 20058300, 40116600, 77558760, 155117520, 300540195, 601080390, 1166803110, 2333606220, 4537567650
Offset: 0

Views

Author

Michael Somos, May 10 2012

Keywords

Comments

Hankel transform is period 4 sequence [ 1, 0, -1, 0, ...] A056594 and the Hankel transform of sequence omitting a(0) is the all 1s sequence A000012. This is the unique sequence with that property.
Series reversion of x*A(x) apparently yields x*A036765(-x). - R. J. Mathar, Sep 24 2012
a(n) is the number of length n words on {-1,1} such that the sum of any of its prefixes is always positive. Cf. A001405 where the sum of all prefixes is nonnegative. - Geoffrey Critzer, Jul 08 2013

Examples

			G.f. = 1 + x + x^2 + 2*x^3 + 3*x^4 + 6*x^5 + 10*x^6 + 20*x^7 + 35*x^8 + 70*x^9 + ...
		

Crossrefs

Essentially the same as A001405.

Programs

  • Mathematica
    nn=36; d=(1-(1-4x^2)^(1/2))/(2x^2);CoefficientList[Series[1/(1-x d),{x,0,nn}],x] (* Geoffrey Critzer, Jul 08 2013 *)
    CoefficientList[Series[2 x / (-1 + 2 x + Sqrt[1 - 4 x^2]), {x, 0, 40}], x] (* Vincenzo Librandi, Nov 10 2014 *)
  • PARI
    {a(n) = if( n<1, n==0, binomial( n - 1, (n - 1)\2))};
    
  • PARI
    {a(n) = polcoeff( (1 + sqrt( (1 + 2*x) / (1 - 2*x) + x * O(x^n))) / 2, n)};

Formula

G.f.: 2 * x / (-1 + 2*x + sqrt(1 - 4*x^2)).
G.f. A(x) satisfies A(x) = A(x)^2 - x / (1 - 2*x).
G.f. A(x) satisfies A( x / (1 + x^2) ) = 1 / (1 - x).
G.f. A(x) satisfies A(1/3) = (1 + sqrt(5))/2.
G.f. A(x) = 1 + x / (1 - 2*x + x / A(x)).
G.f. A(x) = 1 + x / (1 - x / (1 - x / (1 + x / A(x)))).
G.f. A(x) = 1 + x * A001405(x). a(n+1) = A001405(n).
Convolution inverse is A210628. Partial sums is A072100.
Binomial transform with offset 1 is A211278 with offset 1. a(n+2) * a(n) - a(n+1)^2 = A138350(n-1).
a(n) = (-1)^floor(n/2)*hypergeom2F1([1-n, -n],[1],-1). - Peter Luschny, Sep 01 2012
D-finite with recurrence: n*a(n) -2*a(n-1) +4*(2-n)*a(n-2)=0. - R. J. Mathar, Sep 14 2012
G.f. A(x) = 1 / (1 - x / (1 - x^2 / (1 - x^2 / (1 - x^2 / ...)))). - Michael Somos, Jan 02 2013
G.f.: 1/(1 - x*C(x)) where C(x) is the o.g.f. for A126120. - Geoffrey Critzer, Jul 08 2013
a(n) ~ 2^(n-1/2) / sqrt(Pi*n). - Vaclav Kotesovec, Feb 01 2014
G.f.: A(x) = 1 - x/(- 1 + x/A(-x)). - Arkadiusz Wesolowski, Feb 28 2014
From Tom Copeland, Nov 07 2014: (Start)
Setting a(0)=0 here, we have a signed version in A126930 and
O.g.f. G(x)=[-1+sqrt(1+4*x/(1-2x))]/2 = x + x^2 + 2 x^3 + ... = -C[-P(P(x,-1),-1)]= -C[-P(x,-2)] where C(x)= [1-sqrt(1-4*x)]/2= x + x^2 + 2 x^3 + ... = A000108(x) with inverse Cinv(x)=x*(1-x), and P(x,t)= x/(1 + t*x) with inverse P(x,-t).
These types of arrays are from linear fractional transformations of C(x). See A091867.
Ginv(x) = P[-Cinv(-x),2] = x*(1+x)/(1+2*x*(1-x))= (x+x^2)/(1+2(x+x^2)) (see A146559). (End)

A006082 Number of labeled projective plane trees (or "flat" trees) with n nodes.

Original entry on oeis.org

1, 1, 1, 2, 3, 6, 12, 27, 65, 175, 490, 1473, 4588, 14782, 48678, 163414, 555885, 1913334, 6646728, 23278989, 82100014, 291361744, 1039758962, 3729276257, 13437206032, 48620868106, 176611864312, 643834562075, 2354902813742, 8640039835974, 31791594259244
Offset: 1

Views

Author

Keywords

Comments

Also, the number of noncrossing partitions up to rotation and reflection composed of n-1 blocks of size 2. - Andrew Howroyd, May 03 2018

References

  • R. W. Robinson, personal communication.
  • R. W. Robinson, Efficiency of power series operations for graph counting, AGRC Grant, Math. Dept., Univ. Newcastle, Australia, 1982.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Column k=2 of A302828 and A303929.
Cf. A002995 (noncrossing partitions into pairs up to rotations only), A126120, A001405, A185100.

Programs

  • Mathematica
    u[n_, k_, r_] := (r*Binomial[k*n + r, n]/(k*n + r));
    e[n_, k_] := Sum[ u[j, k, 1 + (n - 2*j)*k/2], {j, 0, n/2}]
    c[n_, k_] := If[n == 0, 1, (DivisorSum[n, EulerPhi[n/#]*Binomial[k*#, #]&] + DivisorSum[GCD[n-1, k], EulerPhi[#]*Binomial[n*k/#, (n-1)/#]&])/(k*n) - Binomial[k*n, n]/(n*(k - 1) + 1)];
    T[n_, k_] := (1/2)*(c[n, k] + If[n == 0, 1, If[OddQ[k], If[OddQ[n], 2*u[ Quotient[n, 2], k, (k + 1)/2], u[n/2, k, 1] + u[n/2 - 1, k, k]], e[n, k] + If[OddQ[n], u[Quotient[n, 2], k, k/2]]]/2]) /. Null -> 0;
    a[n_] := T[n, 2];
    Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Jun 14 2018, after Andrew Howroyd and A303929 *)
  • PARI
    \\ from David Broadhurst, Apr 06 2022, added by N. J. A. Sloane, Apr 06 2022
    {A006082(n)=my(c(n)=binomial(2*n,n));
    if(n<2,1,n--;(c(n)+if(n%2,2*n*(n+2),(n+1)^2)*c(n\2)
    +(n+1)*sumdiv(n,d,if(d>2,eulerphi(d)*c(n/d))))/(4*n*(n+1)));}

Formula

a(n) = A006080(n) - A006081(n) + A126120(n-2). [Stockmeyer] [Corrected by Andrey Zabolotskiy, Apr 06 2021]
a(n) = (2 * A002995(n) + A126120(n-2) + A001405(n-1)) / 4 for n > 1. - Andrey Zabolotskiy, May 24 2018
There is a compact formula from David Broadhurst - see the Pari code - N. J. A. Sloane, Apr 06 2022.
a(n) ~ 2^(2*n-4) / (sqrt(Pi) * n^(5/2)). - Vaclav Kotesovec, Jun 01 2022

Extensions

a(25) and a(26) from Robert W. Robinson, Oct 17 2006
a(27) and beyond from Andrew Howroyd, May 03 2018

A102403 Number of Dyck paths of semilength n having no ascents of length 2.

Original entry on oeis.org

1, 1, 1, 2, 6, 17, 46, 128, 372, 1109, 3349, 10221, 31527, 98178, 308179, 973911, 3096044, 9894393, 31770247, 102444145, 331594081, 1077022622, 3509197080, 11466710630, 37567784437, 123380796192, 406120349756, 1339571374103
Offset: 0

Views

Author

Emeric Deutsch, Jan 06 2005

Keywords

Comments

Number of Łukasiewicz paths of length n having no (1,1) steps. A Łukasiewicz path of length n is a path in the first quadrant from (0,0) to (n,0) using rise steps (1,k) for any positive integer k, level steps (1,0) and fall steps (1,-1) (see R. P. Stanley, Enumerative Combinatorics, Vol. 2, Cambridge Univ. Press, Cambridge, 1999, p. 223, Exercise 6.19w; the integers are the slopes of the steps). Example: a(4)=6 because we have HHHH, HU(2)DD, U(2)DDH, U(2)DHD, U(2)HDD and U(3)DDD where H=(1,0), U(2)=(1,2), U(3)=(1,3) and D=(1,-1).
Also the number of series-reduced Mathematica expressions with one atom and n + 1 positions. Also the number of rooted plane trees with n + 1 nodes in which there are no binary branchings (nodes of out-degree 2). - Gus Wiseman, Aug 14 2018

Examples

			a(3)=2 because we have UDUDUD and UUUDDD, where U=(1,1) and D=(1,-1); the other three Dyck paths of semilength 3, namely UD(UU)DD, (UU)DDUD and (UU)DUDD, have ascents of length 2 (shown between parentheses).
From _Gus Wiseman_, Aug 14 2018: (Start)
The a(5) = 17 series-reduced Mathematica expressions:
  o[o[][],o]
  o[o,o[][]]
  o[o[],o[]]
  o[o[],o,o]
  o[o,o[],o]
  o[o,o,o[]]
  o[o,o,o,o]
  o[][o[],o]
  o[][o,o[]]
  o[][o,o,o]
  o[][][o,o]
  o[o[],o][]
  o[o,o[]][]
  o[o,o,o][]
  o[][o,o][]
  o[o,o][][]
  o[][][][][]
The a(5) = 17 rooted plane trees with no binary branchings:
  (((((o)))))
  (((ooo)))
  (((o)oo))
  ((o(o)o))
  ((oo(o)))
  ((oooo))
  (((o))oo)
  (o((o))o)
  (oo((o)))
  ((o)(o)o)
  ((o)o(o))
  (o(o)(o))
  ((o)ooo)
  (o(o)oo)
  (oo(o)o)
  (ooo(o))
  (ooooo)
(End)
		

Crossrefs

Programs

  • Maple
    Order:=35: S:=solve(series(V*(1-V)/(1-V^2+V^3),V)=z,V): seq(coeff(S,z^n),n=1..33); # V=zG
    P:= gfun:-rectoproc({(69*n^2+207*n+138)*a(n)+(97*n^2+609*n+830)*a(n+1)+(-38*n^2-342*n-694)*a(n+2)+(37*n^2+333*n+734)*a(n+3)+(2*n^2+18*n+34)*a(n+4)+(-7*n^2-87*n-266)*a(n+5)+(n^2+15*n+56)*a(n+6), a(0)=1,a(1)=1,a(2)=1,a(3)=2,a(4)=6,a(5)=17},a(n),remember):
    seq(P(n),n=0..50); # Robert Israel, Aug 24 2015
  • Mathematica
    a[n_] := 1/(n+1) Sum[Binomial[n+1, j] Binomial[3j-n-3, j-1] (-1)^(n+1-j), {j, n+1, (n+3)/3, -1}];
    Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Jul 21 2018, after Vladimir Kruchinin *)
  • Maxima
    a102403(n):=1/n*sum(binomial(n,j)*binomial(3*j-n-2,j-1)*(-1)^(n-j),j,ceiling((n+2)/3),n); /* Vladimir Kruchinin, Mar 07 2011 */
    
  • PARI
    Vec( serreverse( O(x^33) + x/(1+x/(1-x)-x^2) ) /x )  \\ Joerg Arndt, Apr 28 2016

Formula

G.f.: G=G(z) satisfies z^3*G^3 + z(1-z)G^2 - G + 1 = 0.
a(n) = (1/n)*Sum_{j=ceiling((n+2)/3)..n} binomial(n,j)*binomial(3*j-n-2,j-1)*(-1)^(n-j), n > 0. - Vladimir Kruchinin, Mar 07 2011
From Gary W. Adamson, Jan 30 2012: (Start)
a(n) is the upper left term in M^n, M = an infinite square production matrix as follows:
1, 1, 0, 0, 0, 0, ...
0, 1, 1, 0, 0, 0, ...
1, 0, 1, 1, 0, 0, ...
1, 1, 0, 1, 1, 0, ...
1, 1, 1, 0, 1, 1, ... (End)
(69*n^2+207*n+138)*a(n) + (97*n^2+609*n+830)*a(n+1) + (-38*n^2-342*n-694)*a(n+2) + (37*n^2+333*n+734)*a(n+3) + (2*n^2+18*n+34)*a(n+4) + (-7*n^2-87*n-266)*a(n+5) + (n^2+15*n+56)*a(n+6) = 0. - Robert Israel, Aug 24 2015
Recurrence (of order 4): (n+1)*(n+2)*(28*n^2 - 32*n - 39)*a(n) = 4*(n+1)*(14*n^3 - 9*n^2 - 62*n + 39)*a(n-1) + (140*n^4 - 160*n^3 - 401*n^2 + 469*n - 78)*a(n-2) - 12*(n-2)*(14*n^3 - 9*n^2 - 28*n - 8)*a(n-3) + 23*(n-3)*(n-2)*(28*n^2 + 24*n - 43)*a(n-4). - Vaclav Kotesovec, Mar 06 2016
a(n) ~ s * sqrt((1 - 2*r + 3*r^2*s)/(1 - r + 3*r^2*s)) /(2*sqrt(Pi)*n^(3/2)*r^n), where r = 0.2869905464691794898... and s = 1.850270202250705342... are roots of the system of equations 3*r^3*s^2 = 1 + 2*(-1 + r)*r*s, 1 + r^3*s^3 = s + (-1 + r)*r*s^2. - Vaclav Kotesovec, Mar 06 2016

A182401 Number of paths from (0,0) to (n,0), never going below the x-axis, using steps U=(1,1), H=(1,0) and D=(1,-1), where the H steps come in five colors.

Original entry on oeis.org

1, 5, 26, 140, 777, 4425, 25755, 152675, 919139, 5606255, 34578292, 215322310, 1351978807, 8550394455, 54419811354, 348309105300, 2240486766555, 14476490777175, 93914850905862, 611489638708140, 3994697746533171, 26175407271617955, 171991872078871311
Offset: 0

Views

Author

Emanuele Munarini, Apr 27 2012

Keywords

Comments

Number of 3-colored Schroeder paths from (0,0) to (2n+2,0) with no level steps H=(2,0) at even level. H-steps at odd levels are colored with one of the three colors. Example: a(2)=5 because we have UUDD, UHD (3 choices) and UDUD. - José Luis Ramírez Ramírez, Apr 27 2015

Examples

			seq(3^n * simplify(hypergeom([3/2, -n], [3], -4/3)), n = 0..20); # _Peter Bala_, Feb 04 2024
		

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1-5*x-Sqrt[1-10*x+21*x^2])/(2*x^2), {x, 0, 20}], x] (* Vaclav Kotesovec, Oct 20 2012 *)
    a[n_] := 5^n*Hypergeometric2F1[(1-n)/2, -n/2, 2, 4/25]; Table[a[n], {n, 0, 22}] (* Jean-François Alcover, Feb 22 2013, after 2nd formula *)
  • Maxima
    a(n):=coeff(expand((1+5*x+x^2)^(n+1)),x^n)/(n+1);
    makelist(a(n),n,0,30);
    
  • PARI
    x='x+O('x^66); Vec((1-5*x-sqrt(1-10*x+21*x^2))/(2*x^2)) \\ Joerg Arndt, Jun 02 2013

Formula

a(n) = [x^n] (1+5*x+x^2)^(n+1)/(n+1).
a(n) = Sum_{k=0..floor(n/2)} (binomial(n,2*k)*binomial(2*k,k)/(k+1))*5^(n-2*k).
G.f.: (1-5*x-sqrt(1-10*x+21*x^2))/(2*x^2).
Conjecture: (n+2)*a(n) +5*(-2*n-1)*a(n-1) +21*(n-1)*a(n-2)=0. - R. J. Mathar, Jul 24 2012
a(n) ~ 7^(n+3/2)/(2*sqrt(Pi)*n^(3/2)). - Vaclav Kotesovec, Oct 20 2012
a(n) = A125906(n,0). - Philippe Deléham, Mar 04 2013
G.f.: 1/(1 - 5*x - x^2/(1 - 5*x - x^2/(1 - 5*x - x^2/(1 - 5*x - x^2/(1 - ...))))), a continued fraction. - Ilya Gutkovskiy, Sep 21 2017
From Seiichi Manyama, Jan 15 2024: (Start)
G.f.: (1/x) * Series_Reversion( x / (1+5*x+x^2) ).
a(n) = (1/(n+1)) * Sum_{k=0..n} 3^(n-k) * binomial(n+1,n-k) * binomial(2*k+2,k). (End)
From Peter Bala, Feb 03 2024: (Start)
G.f: 1/(1 - 3*x)*c(x/(1 - 3*x))^2 = 1/(1 - 7*x)*c(-x/(1 - 7*x))^2, where c(x) = (1 - sqrt(1 - 4*x))/(2*x) is the g.f. of the Catalan numbers A000108.
a(n) = Sum_{k = 0..n} 3^(n-k)*binomial(n, k)*Catalan(k+1).
a(n) = 3^n * hypergeom([3/2, -n], [3], -4/3).
a(n) = 7^n * Sum_{k = 0..n} (-7)^(-k)*binomial(n, k)*Catalan(k+1).
a(n) = 7^n * hypergeom([3/2, -n], [3], 4/7). (End)

A187430 Number of nonnegative walks of n steps with step sizes 1 and 2, starting and ending at 0.

Original entry on oeis.org

1, 0, 2, 2, 11, 24, 93, 272, 971, 3194, 11293, 39148, 139687, 497756, 1798002, 6517194, 23807731, 87336870, 322082967, 1192381270, 4431889344, 16527495396, 61831374003, 231973133544, 872598922407, 3290312724374, 12434632908623, 47089829065940, 178672856753641
Offset: 0

Views

Author

Keywords

Comments

Equivalently, the number of paths from (0,0) to (n,0) using steps of the form (1,2),(1,1),(1,-1) or (1,-2) and staying on or above the x-axis.
Self-convolution of A055113. - Paul D. Hanna, May 31 2015
Logarithmic derivative yields A092765 (with offset 1). - Paul D. Hanna, May 31 2015

Examples

			The 11 length-4 walks are 0,2,4,2,0; 0,2,3,2,0; 0,2,3,1,0; 0,2,1,2,0; 0,2,0,2,0; 0,2,0,1,0; 0,1,3,2,0; 0,1,3,1,0; 0,1,2,1,0; 0,1,0,2,0; and 0,1,0,1,0.
		

Crossrefs

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<3, (n-1)*(3*n-2)/2,
         ((n+1)*(115*n^3-137*n^2-10*n+8) *a(n-1)
          +4*(2*n-1)*(5*n^3+36*n^2-26*n-12) *a(n-2)
          -36*(n-2)*(2*n-1)*(2*n-3)*(5*n+1) *a(n-3))
          / (2*(5*n-4)*(2*n+1)*(n+2)*(n+1)))
        end:
    seq(a(n), n=0..30); # Alois P. Heinz, May 16 2013
  • Mathematica
    a[n_] := (Sum[Binomial[n+1, l]*Sum[Binomial[n-2*i-1, 2*l-1]*Binomial[n-l+1, i], {i, 0, (n-1)/2}], {l, 0, n+1}] + (((-1)^n+1)*Binomial[n+1, n/2])/2)/(n+1); Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Oct 24 2016, after Vladimir Kruchinin *)
  • Maxima
    a(n):=((sum(binomial(n+1,l)*sum(binomial(n-2*i-1,2*l-1)*binomial(n-l+1,i),i,0,(n-1)/2),l,0,n+1))+(((-1)^n+1)*binomial(n+1,n/2))/2)/(n+1); /* Vladimir Kruchinin, Jun 26 2015 */
  • PARI
    al(n)={local(r,p);
    r=vector(n);r[1]=p=1;
    for(k=2,n,p*=1+x+x^3+x^4;p=(p-polcoeff(p,0)-polcoeff(p,1)*x)/x^2;r[k]=polcoeff(p,0));
    r}
    

Formula

G.f.: 1/(2*x)-(1+(1-4*x)^(1/2))*((2+2*(1-4*x)^(1/2)+12*x)^(1/2)-2)/(8*x^2). - Mark van Hoeij, May 16 2013
a(n) ~ (3/sqrt(5)-1) * 2^(2*n+1) / (sqrt(Pi) * n^(3/2)). - Vaclav Kotesovec, Sep 09 2014
G.f.: exp( Sum_{n>=1} A092765(n)*x^n/n ), where A092765(n) = Sum_{k=0..n} binomial(n,k)*binomial(n,2*n-3*k). - Paul D. Hanna, May 31 2015
a(n) = ((Sum_{l=0..n+1} (C(n+1,l)*Sum_{i=0..(n-1)/2}(C(n-2*i-1,2*l-1)*C(n-l+1,i))))+(((-1)^n+1)/2*C(n+1,n/2)))/(n+1). - Vladimir Kruchinin, Jun 26 2015
Sum_{n>=0} a(n)*x^(n+1) is the compositional inverse of x*(1-x^2)^2/(1+x^3)^2. - Ira M. Gessel, Sep 19 2017
Conjecture: 1 + Sum_{n>=0} a(n)*(-1)^n x^(n+1)/(1-x)^(2*n+2) = C(x), the g.f. for the Catalan numbers A000108. - Benedict W. J. Irwin, Jan 13 2017
D-finite with recurrence 2*(2*n+1)*(n+2)*(n+1)*a(n) +(n+1)*(n^2-27*n+2)*a(n-1) +2*(-73*n^3+204*n^2-167*n+6)*a(n-2) +12*(n-3)*(2*n-3)*(4*n-7)*a(n-3) +216*(2*n-5)*(n-3)*(2*n-3)*a(n-4)=0. - R. J. Mathar, Sep 29 2020
From Seiichi Manyama, Jan 17 2024: (Start)
G.f.: (1/x) * Series_Reversion( x * (1-x)^2 / (1-x+x^2)^2 ).
a(n) = (1/(n+1)) * Sum_{k=0..floor(n/2)} binomial(2*n+2,k) * binomial(n-k-1,n-2*k). (End)

A189912 Extended Motzkin numbers, Sum_{k>=0} C(n,k)*C(k), where C(k) is the extended Catalan number A057977(k).

Original entry on oeis.org

1, 2, 4, 10, 25, 66, 177, 484, 1339, 3742, 10538, 29866, 85087, 243478, 699324, 2015082, 5822619, 16865718, 48958404, 142390542, 414837699, 1210439958, 3536809521, 10347314544, 30306977757, 88861597426, 260798283502, 766092871654, 2252240916665
Offset: 0

Views

Author

Peter Luschny, May 01 2011

Keywords

Comments

a(n) = Sum_{k=0..n} binomial(n,k)*A057977(k). For comparison:
A001006(n) = Sum_{k=0..n} binomial(n,k)*A057977(k)*[k is even],
A005717(n) = Sum_{k=0..n} binomial(n,k)*A057977(k)*[k is odd].
Thus one might simply say: The extended Motzkin numbers are the binomial sum of the extended Catalan numbers. Moreover: The Catalan numbers aerated with 0's at odd positions (A126120) are the inverse binomial transform of the Motzkin numbers (A001006). The complementary Catalan numbers (A001700) aerated with 0's at even positions (A138364) are the inverse binomial transform of the complementary Motzkin numbers (A005717). The extended Catalan numbers (A057977 = A126120 + A138364) are the inverse binomial transform of the extended Motzkin numbers (A189912).
David Scambler observed that [1, a(n-1)] for n >= 1 count the Dyck paths of semilength n which satisfy the condition "number of peaks <= number of returns + number of hills". - Peter Luschny, Oct 22 2012

Crossrefs

Programs

  • Maple
    A189912 := proc(n) local k;
    add(n!/(((n-k)!*iquo(k,2)!^2)*(iquo(k,2)+1)),k=0..n) end:
    M := proc(n) option remember; `if`(n<2, 1, (3*(n-1)*M(n-2)+(2*n+1)*M(n-1))/(n+2)) end:
    A189912 := n -> n*M(n-1)+M(n);
    seq(A189912(i), i=0..28); # Peter Luschny, Sep 12 2011
  • Mathematica
    A057977[n_] := n!/(Quotient[n, 2]!^2*(Quotient[n, 2] + 1)); a[n_] := Sum[Binomial[n, k]*A057977[k], {k, 0, n}]; Table[a[n], {n, 0, 28}] (* Jean-François Alcover, May 21 2013, after Peter Luschny *)
    Table[Sum[n!/(((n-k)!*Floor[k/2]!^2)*(Floor[k/2]+1)), {k,0,n}], {n,0,30}] (* G. C. Greubel, Jan 24 2017 *)
    A057977[n_] :=  Sum[n! (n + 1 - 2 k)/((k + 1)! (k!) (n - 2 k)!), {k, 0, n}] (* Per W. Alexandersson, May 28 2020 *)
  • PARI
    a(n) = sum(k=0, n, binomial(n,k)*k!/( (k\2)!^2 * (k\2+1)) );
    vector(30, n, a(n-1)) \\ G. C. Greubel, Jan 24 2017; Mar 28 2020
  • Sage
    @CachedFunction
    def M(n): return (3*(n-1)*M(n-2)+(2*n+1)*M(n-1))/(n+2) if n>1 else 1
    A189912 = lambda n: n*M(n-1) + M(n)
    [A189912(i) for i in (0..28)] # Peter Luschny, Oct 22 2012
    

Formula

a(n) = Sum_{k=0..n} n!/(((n-k)!*floor(k/2)!^2)*(floor(k/2)+1)).
Recurrence: (n+2)*(n^2 + 2*n - 5)*a(n) = (2*n^3 + 7*n^2 - 14*n - 7)*a(n-1) + 3*(n-1)*(n^2 + 4*n - 2)*a(n-2). - Vaclav Kotesovec, Mar 20 2014
a(n) ~ 3^(n+1/2) / (2*sqrt(Pi*n)). - Vaclav Kotesovec, Mar 20 2014
Conjecture: a(n) = Sum_{k=0..floor(n/2)} (n+1-2*k)*A055151(n,k). - Werner Schulte, Oct 23 2016
a(n) = Sum_{k=0..floor(n/2)} (n+1-2*k)*n!/(k!*(k+1)!*(n-2*k)!). - Per W. Alexandersson, May 28 2020

A358376 Numbers k such that the k-th standard ordered rooted tree is lone-child-avoiding (counted by A005043).

Original entry on oeis.org

1, 4, 8, 16, 18, 25, 32, 36, 50, 57, 64, 72, 100, 114, 121, 128, 137, 144, 200, 228, 242, 249, 256, 258, 274, 281, 288, 385, 393, 400, 456, 484, 498, 505, 512, 516, 548, 562, 569, 576, 770, 786, 793, 800, 897, 905, 912, 968, 996, 1010, 1017, 1024, 1032, 1096
Offset: 1

Views

Author

Gus Wiseman, Nov 14 2022

Keywords

Comments

We define the n-th standard ordered rooted tree to be obtained by taking the (n-1)-th composition in standard order (graded reverse-lexicographic, A066099) as root and replacing each part with its own standard ordered rooted tree. This ranking is an ordered variation of Matula-Goebel numbers, giving a bijective correspondence between positive integers and unlabeled ordered rooted trees.

Examples

			The initial terms and their corresponding trees:
    1: o
    4: (oo)
    8: (ooo)
   16: (oooo)
   18: ((oo)o)
   25: (o(oo))
   32: (ooooo)
   36: ((oo)oo)
   50: (o(oo)o)
   57: (oo(oo))
   64: (oooooo)
   72: ((oo)ooo)
  100: (o(oo)oo)
  114: (oo(oo)o)
  121: (ooo(oo))
  128: (ooooooo)
  137: ((oo)(oo))
  144: ((oo)oooo)
  200: (o(oo)ooo)
		

Crossrefs

These trees are counted by A005043.
The series-reduced case appears to be counted by A284778.
The unordered version is A291636, counted by A001678.
A000081 counts unlabeled rooted trees, ranked by A358378.
A358371 and A358372 count leaves and nodes in standard ordered rooted trees.
A358374 ranks ordered identity trees, counted by A032027.
A358375 ranks ordered binary trees, counted by A126120.

Programs

  • Mathematica
    stc[n_]:=Differences[Prepend[Join @@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
    srt[n_]:=If[n==1,{},srt/@stc[n-1]];
    Select[Range[100],FreeQ[srt[#],[_]?(Length[#]==1&)]&]

A238390 E.g.f.: x / BesselJ(1, 2*x) (even powers only).

Original entry on oeis.org

1, 1, 4, 35, 546, 13482, 485892, 24108513, 1576676530, 131451399794, 13609184032808, 1712978776719938, 257612765775847132, 45620136452519144700, 9396239458048330569840, 2227147531572856811691105, 601916577165056911293330930, 183994483721828524163677628370
Offset: 0

Views

Author

Vaclav Kotesovec, Mar 01 2014

Keywords

Comments

Aerated, the e.g.f. is e^(a.t) = 1/AC(i*t) = 1/[I_1(2i*t)/(it)] = 1/Sum_{n>=0} (-1)^n t^(2n) / [n!(n+1)!] = a_0 + a_2 t^2/2! + a_4 t^4/4! + ... = 1 + t^2/2! + 4 t^4/4! + 35 t^6/6! + ..., where AC(t) is the e.g.f. for the aerated Catalan numbers c_n of A126120 and I_n(t) are the modified Bessel functions of the first kind (i = sqrt(-1)). The signed, aerated sequence b_n = (i)^n a_n has the e.g.f. e^(b.t) = 1/AC(t) and, therefore, (i*a. + c.)^n = Sum_{k=0..n} binomial(n,k) i^k a_k c_(n-k) vanishes except for n=0 for which it's unity. - Tom Copeland, Jan 23 2016
With q(n) = A126120(n+1) and q(0) = 0, d(2n) = (-1)^n A238390(n) and zero for odd arguments, and r(2n+1) = (-1)^n A180874(n+1) and zero for even arguments, then r(n) = (q. + d.)^n = Sum_{k=0..n} binomial(n,k) q(k) d(n-k), relating these sequences (and A000108) through binomial convolutions. Then also, (r. + c. + d.)^n = r(n). See A180874 for proofs and for relations to A097610. For quick reference, q = (0, 1, 0, 2, 0, 5, 0, 14, ..), d = (1, 0, -1, 0, 4, 0, -35, 0, ..), and r = (0, 1, 0, -1, 0, 5, 0, -56, ..). - Tom Copeland, Jan 28 2016
Aerated and signed, this sequence contains the moments m(n) of the Appell polynomial sequence UMT(n,h1,h2) that is the umbral compositional inverse of the Appell sequence of Motzkin polynomials MT(n,h1,h2) of A097610 with exp[x UMT(.,h1,h2)] = e^(x*h1) / AC(x*y) where y = sqrt(h2) and AC is defined above. UMT(n,h1,h2) = (m.y + h1)^n with (m.)^(2n) = m(2n) = (-1)^n A238390(n) and zero otherwise. Consequently, the associated lower triangular matrices A007318(n,k)*m(n-k) and A007318(n,k)*A126120(n-k) form an inverse pair (cf. also A133314), and MT(n,UMT(.,h1,h2),h2) = h1^n = UMT(n,MT(.,h1,h2),h2). - Tom Copeland, Jan 30 2016

Crossrefs

Programs

  • Maple
    S:= series(x/BesselJ(1,2*x),x,102):
    seq((2*j)!*coeff(S,x,2*j),j=0..50); # Robert Israel, Jan 31 2016
  • Mathematica
    Table[(CoefficientList[Series[x/BesselJ[1, 2*x], {x, 0, 40}], x] * Range[0, 40]!)[[n]], {n, 1, 41, 2}]

Formula

a(n) ~ c * (n!)^2 / (sqrt(n) * r^n), where r = BesselJZero[1, 1]^2/16 = 0.91762316513274332857623611, and c = 1/(Sqrt[Pi]*BesselJ[2, BesselJZero[1, 1]]) = 1.4008104828035425937394082168... - Vaclav Kotesovec, Mar 01 2014, updated Apr 01 2018

A358374 Numbers k such that the k-th standard ordered rooted tree is an identity tree (counted by A032027).

Original entry on oeis.org

1, 2, 3, 5, 6, 7, 10, 13, 17, 19, 21, 33, 34, 38, 39, 42, 45, 49, 51, 53, 65, 66, 67, 81, 97, 130, 131, 133, 134, 135, 145, 161, 162, 177, 193, 195, 209, 259, 261, 262, 263, 266, 269, 289, 290, 305, 321, 322, 353, 387, 389, 401, 417, 513, 517, 518, 519, 522
Offset: 1

Views

Author

Gus Wiseman, Nov 14 2022

Keywords

Comments

We define the n-th standard ordered rooted tree to be obtained by taking the (n-1)-th composition in standard order (graded reverse-lexicographic, A066099) as root and replacing each part with its own standard ordered rooted tree. This ranking is an ordered variation of Matula-Goebel numbers, giving a bijective correspondence between positive integers and unlabeled ordered rooted trees.
A rooted identity tree is an unlabeled rooted tree with no repeated branches directly under the same root.

Examples

			The terms together with their corresponding ordered rooted trees begin:
   1: o
   2: (o)
   3: ((o))
   5: (((o)))
   6: ((o)o)
   7: (o(o))
  10: (((o))o)
  13: (o((o)))
  17: ((((o))))
  19: (((o))(o))
  21: ((o)((o)))
  33: (((o)o))
  34: ((((o)))o)
  38: (((o))(o)o)
  39: (((o))o(o))
  42: ((o)((o))o)
  45: ((o)o((o)))
		

Crossrefs

These trees are counted by A032027.
The unordered version is A276625, counted by A004111.
A000081 counts unlabeled rooted trees, ranked by A358378.
A358371 and A358372 count leaves and nodes in standard ordered rooted trees.
A358375 ranks ordered binary trees, counted by A126120.

Programs

  • Mathematica
    stc[n_]:=Differences[Prepend[Join@@Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
    srt[n_]:=If[n==1,{},srt/@stc[n-1]];
    Select[Range[100],FreeQ[srt[#],[_]?(!UnsameQ@@#&)]&]
Previous Showing 21-30 of 59 results. Next