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.

A377679 Number of subwords of the form DDD in nondecreasing Dyck paths of length 2n.

Original entry on oeis.org

0, 0, 0, 1, 6, 26, 97, 333, 1085, 3411, 10448, 31376, 92773, 270907, 783003, 2243815, 6383550, 18048494, 50755897, 142067625, 396014681, 1099863867, 3044737100, 8404071596, 23135752141, 63538808311, 174120317367, 476207551183
Offset: 0

Views

Author

Rigoberto Florez, Nov 03 2024

Keywords

Comments

A Dyck path is nondecreasing if the y-coordinates of its valleys form a nondecreasing sequence.

Crossrefs

Programs

  • Mathematica
    Table[If[n<2,0,n Fibonacci[2 n-3]-LucasL[2 n-2]+2^(n-2)],{n,0,30}]

Formula

a(n) = n*F(2*n-3) - L(2*n-2) + 2^(n-2) for n>=2, where F(n) = A000045(n) and L(n) = A000032(n).
G.f.: x^3*(1 - 2*x + x^2 - x^3)/((1 - 2*x)*(1 - 3*x + x^2)^2).