login
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
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
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