OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..600
MATHEMATICA
Sum[i^(n - i) + (-1)^(n - i)*(n - i)^i, {i, 1, n}]
PROG
(PARI) a(n) = sum(i=1, n, i^(n-i) + (-1)^(n-i)*(n-i)^i); \\ Michel Marcus, Mar 24 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Jun 23 2001
STATUS
approved