OFFSET
0,3
FORMULA
a(n) = Sum_{k=0..n} (-1)^(n-k) * k^(2*n-k).
MATHEMATICA
a[n_] := Sum[If[k == 2*n - k == 0, 1, (-1)^(n - k) * k^(2*n - k)], {k, 0, n}]; Array[a, 20, 0] (* Amiram Eldar, Dec 04 2021 *)
PROG
(PARI) a(n, t=2) = sum(k=0, n, (-k^t)^(n-k)*k^k);
(PARI) my(N=20, x='x+O('x^N)); Vec(sum(k=0, N, (k*x)^k/(1+k^2*x)))
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Dec 03 2021
STATUS
approved