login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A335022 a(n) = Sum_{d|n, 1 < d < n} (-1)^(d + 1) * d. 1
0, 0, 0, -2, 0, 1, 0, -6, 3, 3, 0, -9, 0, 5, 8, -14, 0, 4, 0, -11, 10, 9, 0, -29, 5, 11, 12, -13, 0, 5, 0, -30, 14, 15, 12, -30, 0, 17, 16, -39, 0, 9, 0, -17, 32, 21, 0, -69, 7, 18, 20, -19, 0, 13, 16, -49, 22, 27, 0, -61, 0, 29, 40, -62, 18, 17, 0, -23, 26, 21, 0, -98, 0, 35, 48, -25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
Difference between the sum of the odd nontrivial divisors of n and the sum of the even nontrivial divisors of n.
LINKS
FORMULA
G.f.: Sum_{k>=2} (-1)^(k + 1) * k * x^(2*k) / (1 - x^k).
MATHEMATICA
Table[DivisorSum[n, (-1)^(# + 1) # &, 1 < # < n &], {n, 1, 76}]
nmax = 76; CoefficientList[Series[Sum[(-1)^(k + 1) k x^(2 k)/(1 - x^k), {k, 2, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) a(n) = sumdiv(n, d, if ((d>1) && (d<n), (-1)^(d + 1)*d)); \\ Michel Marcus, May 20 2020
CROSSREFS
Sequence in context: A136579 A249731 A335125 * A249732 A076694 A095403
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 19 2020
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 15:20 EDT 2024. Contains 371916 sequences. (Running on oeis4.)