login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A028988 Repdigit + 1 is prime. 16
1, 2, 4, 6, 22, 66, 88, 222, 666666, 22222222, 66666666, 666666666, 22222222222, 66666666666, 88888888888888, 88888888888888888, 66666666666666666666, 66666666666666666666666, 88888888888888888888888888888888888 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Next term is 22...2 (36 digits).
LINKS
Patrick De Geest, Repdigits: WONplate 83
MATHEMATICA
a[n_]:=NestList[FromDigits[Append[{#}, n]]&, n, 34]; Union[Join[{1}, Flatten[Table[Select[a[n], PrimeQ[#+1]&], {n, 2, 8, 2}]]]] (* Jayanta Basu, May 30 2013 *)
Select[Flatten[Table[FromDigits[PadRight[{}, n, k]], {n, 40}, {k, 9}]], PrimeQ[ #+1]&] (* Harvey P. Dale, Apr 22 2018 *)
PROG
(PARI) u=30; for(n=1, u, r=(10^n-1)/9; for(a=1, 9, m=r*a; if(ispseudoprime(m+1), print1(m, ", ")))) \\ Michel Marcus, Jan 26 2023; after A028987
CROSSREFS
Sequence in context: A227626 A152482 A045960 * A172451 A335009 A086172
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Offset corrected by Arkadiusz Wesolowski, Aug 14 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 05:35 EDT 2024. Contains 371697 sequences. (Running on oeis4.)