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!)
A260951 a(1)=1; a(n) is the index of the least primorial (A002110) such that 2*primorial - n-th prime is prime, or -1 if no such primorial exists. 1
1, -1, 2, 2, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 4, 4, 4, 6, 4, 4, 5, 5, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 7, 5, 4, 4, 4, 4, 4, 5, 5, 4, 4, 4, 20, 4, 4, 6, 4, 4, 4, 4, 7, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 7, 6, 6, 6, 5, 6, 8, 5, 5, 5, 6, 5, 5, 6, 6, 5, 5, 8, 5, 5, 22, 5, 5, 5, 8, 6, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
If Goldbach’s conjecture is true, a(n) > 0 would always exist for n > 2.
LINKS
EXAMPLE
a(1)=1, because the first prime is 2, primorial 1# = 2 and 2*2 - 2 = 2 is prime.
a(2) = -1, because the second prime is 3, 2# = 6 and 2*6 - 3 = 9 is not prime.
PROG
(PARI)
a002110(n)=prod(i=1, n, prime(i))
a(n) = my(y=-1); for(k=1, n, if(isprime(2*a002110(k) - prime(n)), y=k; break)); y
CROSSREFS
Cf. A002110.
Sequence in context: A002948 A117113 A239430 * A240600 A227183 A162439
KEYWORD
sign
AUTHOR
Jean-Marc Rebert, Aug 05 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 28 02:07 EDT 2024. Contains 372020 sequences. (Running on oeis4.)