login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121837 Least positive j such that Product_{k=1..n} D(k) + j is prime, where D() are the doublets, A020338. 1
2, 9, 7, 7, 17, 7, 29, 17, 19, 23, 23, 13, 29, 79, 19, 89, 97, 53, 43, 347, 127, 127, 149, 29, 167, 331, 379, 61, 59, 167, 199, 557, 107, 113, 43, 191, 439, 41, 263, 227, 109, 71, 227, 137, 149, 409, 271, 53, 157, 79, 503, 103, 461, 137, 587, 233, 491, 73, 367, 233, 449 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Is every term for n > 2 always prime?
a(159) = 1. - Michel Marcus, Jan 07 2021
a(n) = 1 for n = 245 and 702 (using ispseudoprime() in PARI). - Michel Marcus, Jan 08 2021
LINKS
FORMULA
a(n) = A013632(A121826(n)). - Michel Marcus, Jan 07 2021
PROG
(PARI) D(n) = eval(Str(n, n)); \\ A020338
f(n) = prod(k=1, n, D(k)); \\ A121826
a(n) = my(q=f(n)); nextprime(q+1) - q; \\ Michel Marcus, Jan 07 2021
CROSSREFS
Sequence in context: A021340 A241753 A157350 * A160439 A245287 A254595
KEYWORD
nonn,base
AUTHOR
Jason Earls, Aug 28 2006
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 December 6 01:37 EST 2023. Contains 367594 sequences. (Running on oeis4.)