OFFSET
0,8
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..500
FORMULA
G.f.: 1+ sum(k>=0, x^(k+1)/(1+x^(k+1)) ) = 1/Q(0), where Q(k) = 1 - x + x^2*(k+1)/(1 + (k+1)*x/Q(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Jan 10 2014
EXAMPLE
0^0 = 1,
1^0 - 0^1 = 1,
2^0 - 1^1 + 0^2 = 0,
3^0 - 2^1 + 1^2 - 0^3 = 0,
...
MATHEMATICA
Prepend[ Table[ Sum[ (k-n)^k, {k, 0, n} ], {n, 30} ], 1 ]
PROG
(PARI) my(N=40, x='x+O('x^N)); Vec(sum(k=0, N, x^k/(1+k*x))) \\ Seiichi Manyama, Dec 02 2021
(PARI) a(n) = sum(k=0, n, (k-n)^k); \\ Michel Marcus, Dec 03 2021
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Jim Ferry (jferry(AT)alum.mit.edu)
STATUS
approved