|
|
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
|
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
|
|
|
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:
|
|
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
|
|
CROSSREFS
|
|
|
KEYWORD
|
sign
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|