login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 56th year. In the past year we added 10000 new sequences and reached almost 9000 citations (which often say "discovered thanks to the OEIS").
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068762 Alternating sum sigma(1)-sigma(2)+sigma(3)-sigma(4)+...+((-1)^(n+1))*sigma(n). 5
1, -2, 2, -5, 1, -11, -3, -18, -5, -23, -11, -39, -25, -49, -25, -56, -38, -77, -57, -99, -67, -103, -79, -139, -108, -150, -110, -166, -136, -208, -176, -239, -191, -245, -197, -288, -250, -310, -254, -344, -302, -398, -354, -438, -360, -432, -384, -508, -451, -544, -472, -570, -516, -636, -564, -684, -604 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

FORMULA

a(n) = sum((-1)^(k+1)*sigma(k), k=1..n)

EXAMPLE

a(3) = sigma(1) - sigma(2) + sigma(3) = 1 - 3 + 4 = 2.

MATHEMATICA

Accumulate[Times@@@Partition[Riffle[DivisorSigma[1, Range[60]], {1, -1}, {2, -1, 2}], 2]] (* Harvey P. Dale, Dec 12 2014 *)

PROG

(PARI) a068762(m)=local(s, n); s=0; for(n=1, m, if(n%2==0, s=s-sigma(n), s=s+sigma(n)); print1(s, ", "))

CROSSREFS

Cf. A000203, A067931.

Sequence in context: A307834 A326616 A249033 * A326914 A155679 A319771

Adjacent sequences:  A068759 A068760 A068761 * A068763 A068764 A068765

KEYWORD

easy,sign

AUTHOR

Klaus Brockhaus, Feb 28 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 28 07:44 EST 2020. Contains 338702 sequences. (Running on oeis4.)