OFFSET
1,2
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(1) = 1; a(n) = -Sum_{d|n, d<n} A029935(n/d) * a(d).
a(n) = Sum_{d|n} A101035(d).
Multiplicative with a(p) = 2*(1-p), and a(p^e) = (p-1)*(e*p-p-e-1) for e > 1. - Amiram Eldar, Dec 03 2022
MATHEMATICA
a[1] = 1; a[n_] := -Sum[DirichletConvolve[EulerPhi[j], EulerPhi[j], j, n/d] a[d], {d, Most @ Divisors[n]}]; Table[a[n], {n, 1, 65}]
f[p_, e_] := If[e == 1, 2*(1 - p), (p - 1)*(e*p - p - e - 1)]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Dec 03 2022 *)
PROG
(PARI) seq(n)={dirdiv(vector(n, n, n==1), vector(n, n, sumdiv(n, d, eulerphi(d) * eulerphi(n/d))))} \\ Andrew Howroyd, Oct 25 2019
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Ilya Gutkovskiy, Oct 23 2019
STATUS
approved