login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Least K such that J*p(n+1)#-K*p(n)#-1 and J*p(n+1)#-K*p(n)#+1 are twin primes for least J>0, K>0 and K<p(n+1), with p(n)=n-th prime and p(n)#=product of the first n primes = primorial(n).
1

%I #4 Mar 31 2012 13:22:05

%S 1,2,1,2,2,3,2,12,2,15,15,18,12,23,16,31,25,56,42,9,37,8,6,6,29,23,59,

%T 62,26,125,119,71,109,111,97,97,9,59,41,103,8,152,34,184,14,145,214,

%U 21,56,95,30,43,87,216,194,148,111,19,245,279,123,103,26,31,70,126,8,103

%N Least K such that J*p(n+1)#-K*p(n)#-1 and J*p(n+1)#-K*p(n)#+1 are twin primes for least J>0, K>0 and K<p(n+1), with p(n)=n-th prime and p(n)#=product of the first n primes = primorial(n).

%C Least J values are given in A129192

%e 2*3*5-2*3-1=23 prime but 2*3*5-2*3+1=25 composite

%e 2*3*5-2*2*3-1=17 prime twin of 2*3*5-2*2*3+1=19 so K(2)=2 and J(2)=1

%Y Cf. A129192.

%K nonn

%O 1,2

%A _Pierre CAMI_, Apr 02 2007