The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A096846 Numbers n for which 8*R_n - 1 is prime, where R_n = 11...1 is the repunit (A002275) of length n. 8
1, 3, 4, 6, 9, 12, 72, 118, 124, 190, 244, 304, 357, 1422, 2691, 5538, 7581, 21906, 32176, 44358, 120552, 137073, 152260 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Also numbers n such that (8*10^n-17)/9 is prime.
The numbers corresponding to a(1)-a(15) are certified prime, the numbers corresponding to a(16)-a(20) are probable primes. a(21) > 10^5. - Robert Price, May 20 2014
LINKS
FORMULA
a(n) = A056695(n) + 1. - Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 01 2008
EXAMPLE
n=6: a(4)=888887 which is prime.
MATHEMATICA
Do[ If[ PrimeQ[ 8(10^n - 1)/9 - 1], Print[n]], {n, 0, 5000}] (* Robert G. Wilson v, Oct 15 2004; corrected by Derek Orr, Sep 06 2014 *)
PROG
(PARI)
for(n=1, 10^4, if(ispseudoprime(8*(10^n-1)/9-1), print1(n, ", "))) \\ Derek Orr, Sep 06 2014
CROSSREFS
Sequence in context: A241655 A288346 A078743 * A140570 A285303 A135072
KEYWORD
more,nonn
AUTHOR
Labos Elemer, Jul 15 2004
EXTENSIONS
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 01 2008
a(18)-a(20) discovered and reported to Makoto Kamada by Erik Branger; added to OEIS by Robert Price, May 20 2014
a(21)-a(23) from Kamada data by Tyler Busby, Apr 23 2024
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 June 8 17:52 EDT 2024. Contains 373227 sequences. (Running on oeis4.)