OFFSET
0,4
LINKS
Naiomi Cameron and J. E. McLeod, Returns and Hills on Generalized Dyck Paths, Journal of Integer Sequences, Vol. 19, 2016, #16.6.1.
FORMULA
a(n) = Sum_{k=0..n-1} (-1)^k * (k+1)*(k+2)/(2*n-k) * binomial(3*n-2-2*k,n-1-k).
G.f.: x * (g/(1 + x*g))^2, where g = 1 + x*g^3.
PROG
(PARI) a(n) = sum(k=0, n-1, (-1)^k*(k+1)*(k+2)/(2*n-k)*binomial(3*n-2-2*k, n-1-k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 21 2024
STATUS
approved