OFFSET
0,3
FORMULA
a(n) = Sum_{k=0..n} (-3*n + 3*k + 1)^(k-1) * (3*k)^(n-k) * binomial(n,k).
MAPLE
A360990 := proc(n)
add((-3*n+3*k+1)^(k-1)*(3*k)^(n-k)*binomial(n, k), k=0..n) ;
end proc:
seq(A360990(n), n=0..60) ; # R. J. Mathar, Mar 12 2023
PROG
(PARI) a(n) = sum(k=0, n, (-3*n+3*k+1)^(k-1)*(3*k)^(n-k)*binomial(n, k));
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Feb 27 2023
STATUS
approved