OFFSET
1,3
FORMULA
a(n) = 2^(n-1) - Sum_{d|n, gcd(d, n/d) = 1, d < n} a(d).
MATHEMATICA
a[n_] := Sum[If[GCD[d, n/d] == 1, (-1)^PrimeNu[n/d] 2^(d - 1), 0], {d, Divisors[n]}]; Table[a[n], {n, 35}]
PROG
(PARI) a(n) = sumdiv(n, d, if (gcd(d, n/d)==1, (-1)^omega(n/d) * 2^(d-1))); \\ Michel Marcus, Apr 15 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 15 2021
STATUS
approved