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

A097439
Least k such that k*prime(n)#/3 - 3 and k*prime(n)#/3 + 3 are consecutive primes, where prime(n)# is the n-th primorial.
4
39, 13, 5, 8, 7, 23, 8, 2, 35, 41, 4, 56, 37, 37, 89, 70, 443, 109, 79, 149, 116, 224, 10, 167, 31, 32, 250, 335, 383, 121, 61, 134, 41, 224, 545, 1229, 29, 253, 127, 47, 79, 32, 991, 466, 31, 1124, 634, 374, 1358, 730, 587, 119, 1375, 1303, 1102, 119, 647, 650, 265
OFFSET
1,1
EXAMPLE
39*2/3 = 26, 23 and 29 are consecutive primes so a(1) = 39.
13*2*3/3 = 26 so a(2) = 13.
MATHEMATICA
a[n_] := Module[{k = 1, p = Product[Prime[i], {i, 1, n}]}, While[!(PrimeQ[k*p/3-3] && NextPrime[k*p/3-3] == k*p/3+3), k++]; k]; Array[a, 60] (* Amiram Eldar, Jul 17 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 22 2004
EXTENSIONS
Data corrected by Amiram Eldar, Jul 17 2021
STATUS
approved