The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A348951 a(n) = Sum_{d|n, d < sqrt(n)} (-1)^(n/d). 5
0, 1, -1, 1, -1, 0, -1, 2, -1, 0, -1, 3, -1, 0, -2, 2, -1, 1, -1, 1, -2, 0, -1, 4, -1, 0, -2, 1, -1, 2, -1, 3, -2, 0, -2, 2, -1, 0, -2, 4, -1, 0, -1, 1, -3, 0, -1, 5, -1, 1, -2, 1, -1, 0, -2, 4, -2, 0, -1, 4, -1, 0, -3, 3, -2, 0, -1, 1, -2, 2, -1, 4, -1, 0, -3, 1, -2, 0, -1, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
LINKS
FORMULA
G.f.: Sum_{k>=1} (-1)^(k + 1) * x^(k*(k + 1)) / (1 + x^k).
MATHEMATICA
Table[DivisorSum[n, (-1)^(n/#) &, # < Sqrt[n] &], {n, 1, 80}]
nmax = 80; CoefficientList[Series[Sum[(-1)^(k + 1) x^(k (k + 1))/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) A348951(n) = sumdiv(n, d, if((d*d)<n, (-1)^(n/d), 0)); \\ Antti Karttunen, Nov 05 2021
CROSSREFS
Sequence in context: A030528 A077227 A089263 * A369815 A156135 A047265
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Nov 04 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 May 16 12:10 EDT 2024. Contains 372552 sequences. (Running on oeis4.)