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!)
A348660 a(n) = Sum_{d|n, d <= sqrt(n)} (-1)^(n/d + 1) * d. 3
1, -1, 1, -3, 1, 1, 1, -3, 4, 1, 1, -6, 1, 1, 4, -7, 1, -2, 1, 1, 4, 1, 1, -10, 6, 1, 4, 1, 1, -7, 1, -7, 4, 1, 6, -8, 1, 1, 4, -12, 1, 4, 1, 1, 9, 1, 1, -16, 8, -4, 4, 1, 1, 4, 6, -14, 4, 1, 1, -13, 1, 1, 11, -15, 6, 4, 1, 1, 4, -11, 1, -8, 1, 1, 9, 1, 8, 4, 1, -20 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
FORMULA
G.f.: Sum_{k>=1} (-1)^(k + 1) * k * x^(k^2) / (1 + x^k).
MATHEMATICA
Table[DivisorSum[n, (-1)^(n/# + 1) # &, # <= Sqrt[n] &], {n, 1, 80}]
nmax = 80; CoefficientList[Series[Sum[(-1)^(k + 1) k x^(k^2)/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) a(n) = sumdiv(n, d, if(sqr(d) <= n, (-1)^(n/d + 1)*d, 0)); \\ Michel Marcus, Oct 28 2021, corrected by Antti Karttunen, Dec 14 2021
CROSSREFS
Sequence in context: A365404 A069290 A365334 * A076476 A243200 A016733
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Oct 28 2021
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 March 28 17:42 EDT 2024. Contains 371254 sequences. (Running on oeis4.)