OFFSET
1,2
EXAMPLE
a(4) = phi(1)*lambda(4) + phi(2)*lambda(2) + phi(4)*lambda(1) = 5, where lambda is Carmichael's reduced totient function.
MATHEMATICA
a[n_]:=Sum[EulerPhi[d]CarmichaelLambda[n/d], {d, Divisors[n]}]; Array[a, 56] (* Stefano Spezia, Jan 27 2024 *)
PROG
(PARI) a(n) = sumdiv(n, d, eulerphi(d)*lcm(znstar(n/d)[2]))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Miles Englezou, Jan 26 2024
STATUS
approved