A096505 Primes of the form 1 + repdigit. Primes whose totient is a repdigit.
3, 5, 7, 23, 67, 89, 223, 666667, 22222223, 66666667, 666666667, 22222222223, 66666666667, 88888888888889, 88888888888888889, 66666666666666666667, 66666666666666666666667, 88888888888888888888888888888888889, 222222222222222222222222222222222223
Offset: 1
Examples
89 is a term since it is a prime, and its totient, 88, is a decimal repdigit.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..38
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