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!)
A353237 a(n) = Sum_{d|n} (-1)^(d'), where d' is the arithmetic derivative of d (A003415). 3
1, 0, 0, 1, 0, -2, 0, 2, 1, -2, 0, 0, 0, -2, 0, 3, 0, -2, 0, 0, 0, -2, 0, 2, 1, -2, 0, 0, 0, -4, 0, 4, 0, -2, 0, 1, 0, -2, 0, 2, 0, -4, 0, 0, 0, -2, 0, 4, 1, -2, 0, 0, 0, -4, 0, 2, 0, -2, 0, 0, 0, -2, 0, 5, 0, -4, 0, 0, 0, -4, 0, 4, 0, -2, 0, 0, 0, -4, 0, 4, 1, -2, 0, 0, 0, -2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
From Robert Israel, Jul 23 2023: (Start)
a(n) = 0 if n is odd and squarefree.
a(n) = 1 if n is a square and not divisible by 16.
a(n) < 0 if n > 2 and n == 2 (mod 4).
a(n) = -2 if n = 2*p where p is an odd prime or the square of an odd prime.
(End)
LINKS
FORMULA
a(n) = 2*A353236(n) - A000005(n).
a(n) = A000005(n) - 2*A353235(n).
EXAMPLE
a(6) = Sum_{d|6} (-1)^(d') = (-1)^(1') + (-1)^(2') + (-1)^(3') + (-1)^(6') = (-1)^0 + (-1)^1 + (-1)^1 + (-1)^5 = -2.
MAPLE
ader:= proc(n) option remember;
local t;
n*add(t[2]/t[1], t=ifactors(n)[2])
end proc:
f:= proc(n) local d; add ((-1)^ader(d), d = numtheory:-divisors(n)) end proc:
map(f, [$1..100]); # Robert Israel, Jul 23 2023
MATHEMATICA
d[1] = 0; d[n_] := n*Plus @@ ((Last[#]/First[#]) & /@ FactorInteger[n]); a[n_] := DivisorSum[n, (-1)^d[#] &]; Array[a, 100] (* Amiram Eldar, May 02 2022 *)
PROG
(PARI) ad(n) = vecsum([n/f[1]*f[2]|f<-factor(n+!n)~]); \\ A003415
a(n) = sumdiv(n, d, (-1)^ad(d)); \\ Michel Marcus, May 02 2022
CROSSREFS
Cf. A000005 (tau), A003415 (n'), A353235, A353236.
Sequence in context: A166348 A294658 A127543 * A280830 A068907 A219762
KEYWORD
sign
AUTHOR
Wesley Ivan Hurt, May 01 2022
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 12 04:10 EDT 2024. Contains 373321 sequences. (Running on oeis4.)