OFFSET
1,1
EXAMPLE
1*3*(1*3+1)-1=11, 11 and 13 twin primes
1*3*(1*3+3)-1=17, 17 and 19 twin primes so k(2)=1 as p(2)=3
MATHEMATICA
lnk[p_]:=Module[{k=1}, While[Total[Boole[PrimeQ[{k*p(k*p+1)-1, k*p(k*p+1)+1, k*p(k*p+3)-1, k*p(k*p+3)+1}]]]!=4, k++]; k]; Table[lnk[p], {p, Prime[ Range[ 50]]}] (* Harvey P. Dale, Jun 05 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Apr 28 2008
STATUS
approved