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.

A008330 phi(p-1), as p runs through the primes.

Original entry on oeis.org

1, 1, 2, 2, 4, 4, 8, 6, 10, 12, 8, 12, 16, 12, 22, 24, 28, 16, 20, 24, 24, 24, 40, 40, 32, 40, 32, 52, 36, 48, 36, 48, 64, 44, 72, 40, 48, 54, 82, 84, 88, 48, 72, 64, 84, 60, 48, 72, 112, 72, 112, 96, 64, 100, 128, 130, 132, 72, 88, 96, 92, 144, 96, 120, 96, 156, 80, 96, 172, 112
Offset: 1

Views

Author

Keywords

Comments

Number of primitive roots in the field with p elements.
Kátai proves that phi(p-1)/(p-1) has a continuous distribution function. - Charles R Greathouse IV, Jul 15 2013
For odd primes p, phi(p-1)<=(p-1)/2 since p has phi(p-1) primitive roots and (p-1)/2 quadratic residues and no primitive root is a quadratic residue. - Geoffrey Critzer, Apr 18 2015

References

  • D. H. Lehmer and Emma Lehmer, "Heuristics Anyone?", in: G. Szegö et al. (eds.), Studies in Mathematical Analysis and Related Topics: Essays in Honor of George Pólya, Stanford University Press, 1962, pp. 202-210.

Crossrefs

Cf. A000010, A005596, A241194, A241195 (fraction phi(p-1)/(p-1)), A338364 (partial products).

Programs

Formula

a(n) = phi(phi(prime(n))). - Robert G. Wilson v, Dec 26 2015
a(n) = phi(A006093(n)). - Michel Marcus, Dec 27 2015
Sum_{k; prime(k) <= x} a(k)/(prime(k)-1) = A * li(x) + O(x/log(x)^D), where A is Artin's constant (A005596), li(x) is the logarithmic integral, and D > 1 (Pillai, 1941; Lehmer and Lehmer 1962; Stephens, 1969). - Amiram Eldar, Jul 23 2025