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.

A375995 Number of subwords of the form UUUU in nondecreasing Dyck paths of length 2n.

Original entry on oeis.org

0, 0, 0, 0, 1, 7, 30, 109, 365, 1164, 3593, 10835, 32106, 93845, 271321, 777432, 2211025, 6248479, 17562870, 49132669, 136884293, 379975140, 1051356761, 2900587115, 7981564866, 21911096357, 60021530545, 164095925424, 447823729825, 1220105286199, 3319124711118
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,(2(n-3)LucasL[2n-5]-3Fibonacci[2n-6])/5], {n,0,30}]

Formula

a(n) = (2(n-3)*L(2 n-5)-3F(2n-6))/5 for n>=3 and a(n) = 0 for n<=2, F(.) is a Fibonacci number, L(.) is a Lucas number.
G.f.: x^4*(-x^2+x+1)/(x^2-3x+1)^2.