login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097402 Numbers n such that 6*10^n + 2*R_n + 5 is prime, where R_n = 11...1 is the repunit (A002275) of length n. 1
0, 1, 13, 73, 127 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

Also numbers n such that (56*10^n+43)/9 is prime.

a(6) > 10^5. - Robert Price, Sep 12 2015

LINKS

Table of n, a(n) for n=1..5.

Makoto Kamada, Prime numbers of the form 622...227.

Index entries for primes involving repunits.

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

Cf. A002275, A101523.

Sequence in context: A139911 A097460 A138353 * A255416 A201788 A139873

Adjacent sequences:  A097399 A097400 A097401 * A097403 A097404 A097405

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 11 18:01 EDT 2020. Contains 335652 sequences. (Running on oeis4.)