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.

A378383 Number of subwords of the form UDDD in nondecreasing Dyck paths of length 2*n.

Original entry on oeis.org

0, 0, 0, 1, 5, 19, 64, 202, 612, 1803, 5206, 14809, 41650, 116114, 321478, 885169, 2426462, 6627499, 18048088, 49026874, 132901176, 359625015, 971639014, 2621683741, 7065545950, 19022080034, 51163908874, 137499581917, 369235213742, 990822728623, 2657069356996
Offset: 0

Views

Author

Rigoberto Florez, Nov 24 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 < 3, 0, (1/5)((n-3)LucasL[2n-5]+LucasL[2n-3]+Fibonacci[2n+2]-5(n+5) 2^(n-4))], {n,0,26}]

Formula

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