OFFSET
1,6
COMMENTS
Conjecture: if n>8 there is always a solution.
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..110
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
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 31 2013
STATUS
approved