OFFSET
1,3
COMMENTS
Also numbers n such that 8*10^n + 9*R_n - 6 is prime, where R_n = 11...1 is the repunit (A002275) of length n.
a(30) > 3*10^5. Robert Price, Oct 19 2023
LINKS
FORMULA
a(n) = A101079(n-1) + 1 for n>1.
EXAMPLE
For n=0, 9*10^n-7=2 which is prime, so 0 is in the sequence.
MATHEMATICA
Do[ If[ PrimeQ[9*10^n - 7], Print[n]], {n, 0, 10000}]
PROG
(Magma) [n: n in [0..300] | IsPrime(9*10^n-7)]; // Vincenzo Librandi, Sep 05 2015
(PARI) is(n)=ispseudoprime(9*10^n-7) \\ Charles R Greathouse IV, Jun 12 2017
CROSSREFS
KEYWORD
more,nonn
AUTHOR
Robert G. Wilson v, Jan 19 2005
EXTENSIONS
One more term from Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 01 2008
a(23)-a(26) from Kamada data by Robert Price, Dec 14 2010
Inserted a(1)=0 by Robert Price, Sep 04 2015
a(28)-a(29) from Robert Price, Sep 04 2015
STATUS
approved