login
A074942
a(n) = phi(n) mod 3.
7
1, 1, 2, 2, 1, 2, 0, 1, 0, 1, 1, 1, 0, 0, 2, 2, 1, 0, 0, 2, 0, 1, 1, 2, 2, 0, 0, 0, 1, 2, 0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 2, 0, 1, 1, 1, 0, 2, 2, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 2, 0, 2, 0, 2, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 1, 1, 0, 1, 0, 2, 1, 1, 0, 0, 2, 0, 1, 0, 2, 0, 0, 0, 1, 1, 2, 0, 0, 0
OFFSET
1,3
LINKS
FORMULA
a(n) = A000010(n) mod 3.
a(n) = A010872(A000010(n)). - Michel Marcus, Sep 05 2015
MATHEMATICA
Table[Mod[EulerPhi[n], 3], {n, 100}] (* Vincenzo Librandi, Sep 04 2015 *)
PROG
(PARI) a(n)=eulerphi(n)%3
(Magma) [EulerPhi(n) mod 3: n in [1..110]]; // Vincenzo Librandi, Sep 04 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Oct 04 2002
STATUS
approved