OFFSET
0,2
FORMULA
a(0) = 1; a(n) = Sum_{k=0..n-1} a(k) * ((-1)^k + a(n-k-1)).
MATHEMATICA
nmax = 26; A[_] = 0; Do[A[x_] = 1 + x A[-x]/(1 - x) + x A[x]^2 + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
a[0] = 1; a[n_] := a[n] = Sum[a[k] ((-1)^k + a[n - k - 1]), {k, 0, n - 1}]; Table[a[n], {n, 0, 26}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Nov 05 2021
STATUS
approved