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”).

A073674
Rearrangement of odd numbers such that every partial product + 2 is a prime.
2
1, 3, 5, 7, 9, 15, 19, 25, 27, 53, 43, 11, 33, 49, 17, 29, 95, 37, 13, 31, 23, 41, 47, 63, 81, 35, 51, 69, 113, 45, 57, 21, 67, 75, 55, 107, 73, 137, 131, 231, 61, 103, 39, 115, 59, 145, 91, 101, 205, 125, 77, 227, 93, 129, 127, 161, 201, 167, 97, 165, 141, 155, 169
OFFSET
1,2
EXAMPLE
For 1, 3, 5, 7: 1+2 = 3, 1*3+2 = 5, 1*3*5+2 = 17, 1*3*5*7+2 = 107 are primes. - Daniel Forgues, Dec 20 2012
MATHEMATICA
f[s_List] := Block[{k = 1, p = Times @@ s}, While[ MemberQ[s, k] || !PrimeQ[k*p + 2], k += 2]; Append[s, k]]; Nest[f, {1}, 62] (* Robert G. Wilson v, Dec 24 2012 *)
CROSSREFS
Cf. A083769.
Cf. A083566.
Sequence in context: A335132 A343727 A340559 * A084722 A083566 A109790
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 11 2002
EXTENSIONS
More terms from Sascha Kurz, Feb 01 2003
STATUS
approved