OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..385
FORMULA
a(n) = Sum_{k=0..floor(n/3)} n^(n-3*k) * binomial(n,3*k) * binomial(3*k,k).
a(n) ~ c * n^n, where c = Sum_{k>=0} 1/(k!*(2*k)!) = HypergeometricPFQ[{}, {1/2, 1}, 1/4] = 1.52106585051363080966025715155941607334728986626976774617... - Vaclav Kotesovec, May 05 2019
MAPLE
f:= n -> coeff((1+n*x+x^3)^n, x, n):
map(f, [$0..30]); # Robert Israel, Mar 27 2023
MATHEMATICA
Flatten[{1, Table[n^n * HypergeometricPFQ[{1/3 - n/3, 2/3 - n/3, -n/3}, {1/2, 1}, -27/(4*n^3)], {n, 1, 20}]}] (* Vaclav Kotesovec, May 05 2019 *)
PROG
(PARI) {a(n) = polcoef((1+n*x+x^3)^n, n)}
(PARI) {a(n) = sum(k=0, n\3, n^(n-3*k)*binomial(n, 3*k)*binomial(3*k, k))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 05 2019
STATUS
approved