[go: up one dir, main page]

login
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