login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A073692
a(0)=1; for n > 0, a(n) is the smallest odd number k such that (2 + Product_{j=a(n-1)..k-2, j odd} j) is prime.
2
1, 3, 5, 7, 15, 17, 19, 23, 27, 29, 31, 41, 43, 49, 69, 71, 73, 77, 79, 87, 89, 93, 97, 113, 119, 123, 127, 139, 145, 149, 151, 175, 179, 181, 187, 195, 197, 199, 213, 221, 223, 227, 229, 233, 245, 251, 263, 267, 269, 271, 285, 323, 375, 385, 389, 395, 397, 559
OFFSET
0,2
MATHEMATICA
t = {}; s = 1; c = 0; Do[s = s*i; c += 1; If[PrimeQ[s + 2], AppendTo[t, i - 2*(c - 1)]; s = 1; c = 0], {i, 1, 570, 2}]; t (* Jayanta Basu, Jul 07 2013 *)
PROG
(PARI) print1("1, "); p=1; c=3; for(n=1, 80, while(!isprime(p+2), p=p*c; c=c+2); print1(c", "); p=c; c=c+2)
CROSSREFS
Sequence in context: A051445 A002181 A341845 * A132012 A160690 A085494
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 12 2002
EXTENSIONS
Edited by Ralf Stephan, Mar 26 2003
STATUS
approved