OFFSET
0,7
FORMULA
a(n) = Sum_{k=0..floor(n/3)} binomial(n-2*k-1,n-3*k) * binomial(n-k+1,k) / (n-k+1).
G.f.: A(x) = 2/(1 + x + sqrt(1 + x*(-2 + x - 4*x^2))). - Vaclav Kotesovec, Sep 16 2023
MATHEMATICA
CoefficientList[Series[2/(1 + x + Sqrt[1 + x*(-2 + x - 4*x^2)]), {x, 0, 20}], x] (* Vaclav Kotesovec, Sep 16 2023 *)
PROG
(PARI) a(n) = sum(k=0, n\3, binomial(n-2*k-1, n-3*k)*binomial(n-k+1, k)/(n-k+1));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Sep 16 2023
STATUS
approved