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!)
A097402 Numbers k such that 6*10^k + 2*R_k + 5 is prime, where R_k = 11...1 is the repunit (A002275) of length k. 1
0, 1, 13, 73, 127 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Also numbers k such that (56*10^k + 43)/9 is prime.
a(6) > 10^5. - Robert Price, Sep 12 2015
LINKS
FORMULA
a(n) = A101523(n-1) + 1 for n>1.
EXAMPLE
1, 13 are members since 67 and 62222222222227 are primes.
MATHEMATICA
Do[ If[ PrimeQ[(56*10^n + 43)/9], Print[n]], {n, 0, 10000}]
Select[Range[0, 130], PrimeQ[10*FromDigits[PadRight[{6}, #, 2]]+7]&] (* Harvey P. Dale, Feb 17 2018 *)
PROG
(PARI) is(n)=isprime(6*10^n + 2*(10^n-1)/9 + 5) \\ Anders Hellström, Sep 12 2015
CROSSREFS
Sequence in context: A097460 A336796 A138353 * A255416 A201788 A139873
KEYWORD
more,nonn
AUTHOR
Julien Peter Benney (jpbenney(AT)ftml.net), Nov 11 2004
EXTENSIONS
Inserted a(1)=0 by Robert Price, Sep 12 2015
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 23 11:26 EDT 2024. Contains 371913 sequences. (Running on oeis4.)