The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A318943 Number of Dyck paths with n nodes and altitude 3. 2
0, 0, 0, 1, 6, 21, 68, 208, 612, 1752, 4916, 13588, 37128, 100548, 270404, 723208, 1925844, 5110644, 13524872, 35713828, 94140900, 247806600, 651572660, 1711695508, 4493475336, 11789439876, 30917835908, 81053196808, 212426303892, 556607396532 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
E. Czabarka et al, Enumerations of peaks and valleys on non-decreasing Dyck paths, Disc. Math. 341 (2018) 2789-2807.
FORMULA
a(n) = 8*A001906(n+1)-20*A001906(n)-2^(n-5)*(16+3*n), n>=4. - R. J. Mathar, Apr 09 2019
a(n) = 7*a(n-1) - 17*a(n-2) + 16*a(n-3) - 4*a(n-4) for n>7. - Colin Barker, Apr 11 2019
MAPLE
(1-x)^2*x^3*(1+x-3*x^2)/(1-2*x)^2/(1-3*x+x^2) ;
taylor(%, x=0, 30) ;
gfun[seriestolist](%) ; # R. J. Mathar, Nov 25 2018
MATHEMATICA
LinearRecurrence[{7, -17, 16, -4}, {0, 0, 0, 1, 6, 21, 68, 208}, 50] (* Paolo Xausa, May 24 2024 *)
PROG
(PARI) concat([0, 0, 0], Vec(x^3*(1 - x)^2*(1 + x - 3*x^2) / ((1 - 2*x)^2*(1 - 3*x + x^2)) + O(x^40))) \\ Colin Barker, Apr 11 2019
CROSSREFS
A column of A318942.
Sequence in context: A107653 A123653 A364636 * A200761 A169687 A302448
KEYWORD
nonn,easy,changed
AUTHOR
N. J. A. Sloane, Sep 18 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 3 00:27 EDT 2024. Contains 373054 sequences. (Running on oeis4.)