login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A368525
a(n) = Sum_{k=1..n} k^3 * n^(n-k).
3
0, 1, 10, 60, 364, 2745, 27246, 346864, 5422264, 100449225, 2149062490, 52097910876, 1410401518692, 42153624499441, 1378058477508454, 48900582823143360, 1871456346915007216, 76821658841556480753, 3366451935514051046802, 156839738363103277783900
OFFSET
0,3
FORMULA
a(n) = [x^n] x * (1+4*x+x^2)/((1-n*x) * (1-x)^4).
a(n) = n * (n^n * (n^2 + 4*n + 1) - n^5 - 3*n^2 - n - 1)/(n-1)^4 for n > 1.
PROG
(PARI) a(n) = sum(k=1, n, k^3*n^(n-k));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Dec 28 2023
STATUS
approved