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

A230852
Smallest k<3*2^n such that 3*2^n+k is the smallest of four consecutive primes in arithmetic progression or 0 if no solution.
3
0, 0, 0, 0, 0, 59, 0, 0, 205, 229, 167, 353, 1595, 4459, 6407, 6215, 14995, 4559, 4697, 11399, 365, 10199, 19327, 39103, 3185, 13649, 15787, 2693, 21455, 24929, 32209, 30509, 13421, 5389, 36947, 12869, 27277, 38389, 973, 69199, 58835, 165629, 52597, 25463, 17923, 38629, 90263, 17153, 48143, 2171, 1255
OFFSET
1,6
COMMENTS
Conjecture: if n>8 there is always a solution.
LINKS
EXAMPLE
3*2^6+59=251, and 251, 257, 263, 269 are four consecutive primes in arithmetic progression 6 so a(6)=59.
3*2^9+205=1741, and 1741, 1747, 1753, 1759 are four consecutive primes in arithmetic progression 6 so a(9)=205.
PROG
(PARI) cpap4(p)=my(q=nextprime(p+1), g=q-p); nextprime(q+1)-q==g&&nextprime(p+2*g+1)==p+3*g
a(n)=forprime(p=3<<n, 6<<n, if(cpap4(p), return(p-3<<n))) \\ Charles R Greathouse IV, Oct 31 2013
CROSSREFS
Sequence in context: A201988 A116103 A116115 * A104380 A051321 A235774
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 31 2013
STATUS
approved

  NODES
orte 1
see 1
Story 1