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

A248100 Number of ordered trees with n edges such that non-leaf vertices at even levels have outdegree 1 and those at odd levels have outdegree 2.

Original entry on oeis.org

1, 1, 0, 1, 2, 1, 2, 6, 6, 7, 20, 30, 34, 75, 140, 182, 322, 644, 972, 1554, 3024, 5091, 8052, 14784, 26378, 43032, 75504, 136994, 232232, 399399, 720356, 1257256, 2161874, 3852576, 6831552, 11858418, 20949304, 37350768, 65554788, 115476376, 205872448
Offset: 0

Views

Author

Emeric Deutsch, Jan 14 2015

Keywords

Comments

a(n) (n>=1) is the number of ordered trees with n-1 edges such that non-leaf vertices at even levels have outdegree 2 and those at odd levels have outdegree 1. Indeed, these trees can be obtained by deleting the root-edge from the trees described in the definition.
Essentially the same as A025277: a(n) = A025277(n+3).
a(n) is also the number of excursions of length n with Motzkin-steps avoiding the consecutive steps without UU, UD and HH. The Motzkin step set is U=(1,1), H=(1,0) and D=(1,-1). An excursion is a path starting at (0,0), ending at (n,0) and never crossing the x-axis, i.e., staying at nonnegative altitude.

Crossrefs

Cf. A025277.
Cf. A329694 (Motzkin paths with different forbidden consecutive steps but a similar G.f.).

Formula

G.f.: g(x) satisfies g = 1 + x + x^3*g^2. Sketch of proof (the symbolic method): the set S of ordered trees such that non-leaf vertices at even levels have outdegree 1 and those at odd levels have outdegree 2 consists of the one-point tree, the tree | , and the trees obtained from the tree Y (root at bottom) by attaching at each of the two leaves a tree from the set S (not necessarily the same). For the g.f. g(x) of S, x marking edges, this "decomposition picture" of S translates at once into the given equation.
G.f.: (1-sqrt(1-4*x^3-4*x^4))/(2*x^3).
a(n) = a(0)*a(n-3)+a(1)*a(n-4)+...+a(n-3)*a(0) for n>=3.
D-finite with recurrence 5*(n+3)*a(n) +4*(-n-2)*a(n-1) +4*(-n-1)*a(n-2) +10*(-2*n+3)*a(n-3) +4*(-n+5)*a(n-4) +8*(4*n-15)*a(n-5) +16*(n-5)*a(n-6)=0. - R. J. Mathar, Oct 07 2016

A247169 G.f. (4*x+3)/(2*(x+1))*(1+1/sqrt(-4*x^4-4*x^3+1)).

Original entry on oeis.org

3, 1, -1, 4, 3, 1, 8, 22, 11, 31, 99, 111, 144, 456, 734, 904, 2155, 4285, 5921, 11173, 23603, 37489, 63161, 129031, 227072, 375376, 719432, 1335478, 2264118, 4126266, 7759608, 13613744, 24219051, 45127317, 81256395, 144053547, 264457881
Offset: 0

Views

Author

Vladimir Kruchinin, Nov 21 2014

Keywords

Crossrefs

Programs

  • Maple
    A247169 := proc(n)
        if n = 0 then
            3;
        else
            add( binomial(n-2*m,m)*binomial(2*m-1,n-2*m-1)/(n-2*m),m=0..floor((n-1)/2)) ;
            n*% ;
        end if;
    end proc:
    seq(A247169(n),n=0..50) ;
  • Maxima
    a(n):=if n=0 then 3 else (n*sum((binomial(n-2*m,m)*binomial(2*m-1,n-2*m-1))/(n-2*m),m,0,(n-1)/2));

Formula

a(n) = n*sum_{m=0..(n-1)/2} binomial(n-2*m,m)*binomial(2*m-1,n-2*m-1)/(n-2*m), n>0, a(0)=3.
G.f.: A(x)=x*B'(x)/B(x), where B(x) is g.f. of A025277.
D-finite with recurrence: 3*n*a(n) +(7*n-8)*a(n-1) +4*(n-2)*a(n-2) +6*(-2*n+3)*a(n-3) +2*(-20*n+49)*a(n-4) +4*(-11*n+36)*a(n-5) +16*(-n+4)*a(n-6)=0. - R. J. Mathar, Nov 25 2014, corrected Feb 16 2020
Showing 1-2 of 2 results.