OFFSET
1,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..1000
EXAMPLE
a(3) = -5 = (1 - 2 - 4).
MAPLE
a:= proc(n) option remember;
numtheory[mobius](n)*2^(n-1) +`if`(n=1, 0, a(n-1))
end:
seq(a(n), n=1..30); # Alois P. Heinz, Apr 04 2012
MATHEMATICA
Table[2^(n-1) MoebiusMu[n], {n, 1, 30}] // Accumulate (* Jean-François Alcover, May 21 2020 *)
CROSSREFS
KEYWORD
sign
AUTHOR
Gary W. Adamson, Jan 17 2007
EXTENSIONS
More terms from R. J. Mathar, Apr 04 2012
STATUS
approved