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.

A353768 a(n) = phi(n) mod 4; Euler totient function reduced modulo 4.

Original entry on oeis.org

1, 1, 2, 2, 0, 2, 2, 0, 2, 0, 2, 0, 0, 2, 0, 0, 0, 2, 2, 0, 0, 2, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2
Offset: 1

Views

Author

Antti Karttunen, May 15 2022

Keywords

Crossrefs

Cf. A000010, A010873, A066499 (positions of 2's), A172019 (of 0's).
Cf. also A074942, A261872, A084300, and also A105824.

Programs

  • PARI
    A353768(n) = (eulerphi(n)%4);

Formula

a(n) = A010873(A000010(n)).