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.

A096505 Primes of the form 1 + repdigit. Primes whose totient is a repdigit.

Original entry on oeis.org

3, 5, 7, 23, 67, 89, 223, 666667, 22222223, 66666667, 666666667, 22222222223, 66666666667, 88888888888889, 88888888888888889, 66666666666666666667, 66666666666666666666667, 88888888888888888888888888888888889, 222222222222222222222222222222222223
Offset: 1

Views

Author

Labos Elemer, Jul 12 2004

Keywords

Examples

			89 is a term since it is a prime, and its totient, 88, is a decimal repdigit.
		

Crossrefs

Programs

  • Mathematica
    s = {3, 5, 7}; Do[r = (10^k - 1)/9; Do[p = m * r + 1; If[PrimeQ[p], AppendTo[s, p]], {m, {2, 6, 8}}], {k, 2, 50}]; s (* Amiram Eldar, Jun 06 2024 *)

Extensions

a(19) from Amiram Eldar, Jun 06 2024