cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A074942 a(n) = phi(n) mod 3.

Original entry on oeis.org

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

Views

Author

Benoit Cloitre, Oct 04 2002

Keywords

Crossrefs

Programs

  • Magma
    [EulerPhi(n) mod 3: n in [1..110]]; // Vincenzo Librandi, Sep 04 2015
  • Mathematica
    Table[Mod[EulerPhi[n], 3], {n, 100}] (* Vincenzo Librandi, Sep 04 2015 *)
  • PARI
    a(n)=eulerphi(n)%3
    

Formula

a(n) = A000010(n) mod 3.
a(n) = A010872(A000010(n)). - Michel Marcus, Sep 05 2015
Showing 1-1 of 1 results.