OFFSET
1,5
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
a(1) = 1, a(n) = A000010(n)/2 for odd n > 1, a(n) = 0 for even n.
a(n) = phi(n) - (1/2)*phi(2n), for n>1. - Ridouane Oudra, Jul 13 2023
Sum_{k=1..n} a(k) ~ (1/Pi^2)*n^2. - Amiram Eldar, Jul 15 2023
MAPLE
with(numtheory): a:=proc(n) if n=1 then 1; elif n mod 2 = 0 then 0; else phi(n)/2; fi: end proc: seq(a(n), n=1..60); # Ridouane Oudra, Jul 13 2023
MATHEMATICA
k[n_] := (n/2^IntegerExponent[n, 2] + 1)/2; a[n_] := DivisorSum[n, MoebiusMu[#] * k[n/#] &]; Array[a, 100] (* Amiram Eldar, Nov 13 2021 *)
PROG
CROSSREFS
Agrees with A055034 on odd arguments.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 13 2021
STATUS
approved