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!)
A333781 G.f.: Sum_{k>=1} (-1)^(k + 1) * x^(k^2) / (1 - x^k). 3
1, 1, 1, 0, 1, 0, 1, 0, 2, 0, 1, 1, 1, 0, 2, -1, 1, 1, 1, -1, 2, 0, 1, 0, 2, 0, 2, -1, 1, 2, 1, -1, 2, 0, 2, -1, 1, 0, 2, 0, 1, 0, 1, -1, 3, 0, 1, -1, 2, 1, 2, -1, 1, 0, 2, 0, 2, 0, 1, 0, 1, 0, 3, -2, 2, 0, 1, -1, 2, 2, 1, -2, 1, 0, 3, -1, 2, 0, 1, -1, 3, 0, 1, 0, 2, 0, 2, -2, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
COMMENTS
Number of odd divisors of n that are <= sqrt(n) minus number of even divisors of n that are <= sqrt(n).
LINKS
MATHEMATICA
nmax = 90; CoefficientList[Series[Sum[(-1)^(k + 1) x^(k^2)/(1 - x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) a(n) = sumdiv(n, d, if (d^2<=n, if (d%2, 1, -1))); \\ Michel Marcus, Apr 05 2020
CROSSREFS
Sequence in context: A347440 A088434 A205745 * A243223 A034178 A317531
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, Apr 05 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 May 10 01:53 EDT 2024. Contains 372354 sequences. (Running on oeis4.)