login
A127513
Partial sums of A127511.
4
1, -1, -5, -5, -21, 11, -53, -53, -53, 459, -565, -565, -4661, 3531, 19915, 19915, -45621, -45621, -307765, -307765, 740811, 2837963, -1356341, -1356341, -1356341, 32198091, 32198091, 32198091, -236237365, -773108277
OFFSET
1,3
LINKS
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
Sequence in context: A255452 A255446 A255450 * A091260 A352315 A283212
KEYWORD
sign
AUTHOR
Gary W. Adamson, Jan 17 2007
EXTENSIONS
More terms from R. J. Mathar, Apr 04 2012
STATUS
approved