OFFSET
0,4
FORMULA
a(n) = n * a(n-1) - n * (n-1) * a(n-2) / 2 + n * (n-1) * (n-2) * a(n-3) / 3 - n * (n-1) * (n-2) * (n-3) * a(n-4) / 4.
MATHEMATICA
nmax = 22; CoefficientList[Series[1/(1 - x + x^2/2 - x^3/3 + x^4/4), {x, 0, nmax}], x] Range[0, nmax]!
a[0] = a[1] = a[2] = 1; a[3] = 2; a[n_] := a[n] = n a[n - 1] - n (n - 1) a[n - 2]/2 + n (n - 1) (n - 2) a[n - 3]/3 - n (n - 1) (n - 2) (n - 3) a[n - 4]/4; Table[a[n], {n, 0, 22}]
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Apr 01 2024
STATUS
approved