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

A126088
Least k such that k*(p(n+1)#-p(n)#)-1 and k*(p(n+1)#-p(n)#)+1 are twin primes.
1
1, 3, 1, 3, 2, 4, 13, 5, 9, 10, 6, 8, 61, 121, 3, 13, 17, 79, 45, 27, 120, 145, 113, 11, 41, 198, 102, 139, 202, 103, 23, 48, 177, 43, 486, 169, 501, 251, 106, 132, 40, 155, 1890, 116, 584, 107, 629, 241, 1331, 2078, 562, 57, 52, 71, 567, 73, 262, 332, 483, 419, 423
OFFSET
1,2
LINKS
EXAMPLE
3*(2*3*5-2*3)-1=71 3*(2*3*5-2*3)+1=73; 71 and 73 twin primes so k(2)=3
MATHEMATICA
ktp[n_]:=Module[{k=1}, While[!PrimeQ[k*n-1]||!PrimeQ[k*n+1], k++]; k]; With[ {prmrls=#[[2]]-#[[1]]&/@Partition[FoldList[Times, Prime[Range[ 70]]], 2, 1]}, ktp/@prmrls] (* Harvey P. Dale, Mar 31 2017 *)
CROSSREFS
Sequence in context: A279633 A126208 A287863 * A363833 A294248 A085671
KEYWORD
nonn
AUTHOR
Pierre CAMI, Mar 03 2007
STATUS
approved