OFFSET
0,5
FORMULA
a(n) = Sum_{k=0..floor(n/3)} k^(n-3*k) * binomial(n-2*k,k).
PROG
(PARI) my(N=30, x='x+O('x^N)); Vec(sum(k=0, N, x^(3*k)/(1-k*x)^(k+1)))
(PARI) a(n) = sum(k=0, n\3, k^(n-3*k)*binomial(n-2*k, k));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Feb 21 2023
STATUS
approved