OFFSET
0,5
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-2} (-1)^k * (k+1)*(k+2)*(k+3)/(2*(2*n-1-k)) * binomial(3*n-4-2*k,n-2-k).
G.f.: x^2 * (g/(1 + x*g))^3, where g = 1 + x*g^3.
PROG
(PARI) a(n) = sum(k=0, n-2, (-1)^k*(k+1)*(k+2)*(k+3)/(2*(2*n-1-k))*binomial(3*n-4-2*k, n-2-k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 21 2024
STATUS
approved