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”).

A062812
a(n) = Sum_{i=1..n} i^(n - i) + (-1)^(n - i)*(n - i)^i.
3
1, 1, 5, 9, 25, 65, 205, 713, 2753, 11425, 50389, 234825, 1155817, 6009153, 32958173, 190115849, 1148816017, 7244099617, 47521750501, 323632894729, 2284774880441, 16702573959489, 126299702576365, 986688266888777
OFFSET
1,3
LINKS
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
Sequence in context: A147512 A301960 A050359 * A032499 A112084 A038251
KEYWORD
nonn,easy
AUTHOR
Olivier Gérard, Jun 23 2001
STATUS
approved