OFFSET
1,3
COMMENTS
FORMULA
a(n) = Sum_{d|n} -n!/(d*(-(n/d)!)^d).
E.g.f.: Sum_{k>=1} log(1 + x^k/k!). - Ilya Gutkovskiy, May 21 2019
EXAMPLE
a(6) = 1 - 10 + 30 - 120 = -99.
MAPLE
MATHEMATICA
a[n_] := Sum[ -n!/(d*(-(n/d)!)^d), {d, Divisors[n]}]; Table[a[n], {n, 1, 22}] // Flatten (* Jean-François Alcover, Jul 29 2013 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Peter Luschny, Apr 16 2011
STATUS
approved