OFFSET
1,3
LINKS
C. A. Nicol, On restricted partitions and a generalization of the Euler phi number and the Moebius function, PNAS September 1, 1953 vol. 39 no. 9 963-968.
FORMULA
For n > 1, a(n) = Sum_{k=1..n-1} PHI(k,n)^2 where PHI(k,n) = phi(n)*mu(n/GCD(k,n))/phi(n/GCD(k,n)), and has been considered by C. Nicol under the name G(n). - Michel Marcus, Nov 11 2012
From Amiram Eldar, Dec 21 2023: (Start)
EXAMPLE
a(8) = phi(8)*(8 - phi(8)) = 4*4 = 16.
MATHEMATICA
a[n_] := Module[{phi = EulerPhi[n]}, phi*(n - phi)]; Array[a, 100] (* Amiram Eldar, Dec 21 2023 *)
PROG
(PARI) a(n) = eulerphi(n)*(n-eulerphi(n));
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 23 2006
EXTENSIONS
Offset corrected by Georg Fischer, Mar 17 2023
STATUS
approved