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!)
A372626 a(1) = 1; a(n) = Sum_{d|n, d <= sqrt(n)} (-1)^(n/d + 1) * a(d). 0
1, -1, 1, 0, 1, -2, 1, 0, 2, -2, 1, -1, 1, -2, 2, 0, 1, -3, 1, 0, 2, -2, 1, -1, 2, -2, 2, 0, 1, -4, 1, 0, 2, -2, 2, 1, 1, -2, 2, -1, 1, -5, 1, 0, 3, -2, 1, 1, 2, -3, 2, 0, 1, -5, 2, -1, 2, -2, 1, 0, 1, -2, 3, 0, 2, -5, 1, 0, 2, -4, 1, 1, 1, -2, 3, 0, 2, -5, 1, -1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
G.f.: Sum_{k>=1} (-1)^(k + 1) * a(k) * x^(k^2) / (1 + x^k).
MATHEMATICA
a[1] = 1; a[n_] := a[n] = DivisorSum[n, (-1)^(n/# + 1) a[#] &, # <= Sqrt[n] &]; Table[a[n], {n, 80}]
PROG
(PARI) a(n) = if (n==1, 1, sumdiv(n, d, if (d^2 <= n, (-1)^(n/d+1)*a(d)))); \\ Michel Marcus, May 09 2024
CROSSREFS
Sequence in context: A035393 A068913 A128306 * A305152 A170983 A113423
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 07 2024
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 June 26 03:22 EDT 2024. Contains 373715 sequences. (Running on oeis4.)