OFFSET
1,1
COMMENTS
Primes of the form 16*p + 1 == {1, 7, 13, 19, 25, 31, 37, 43, 49, 55, 61, 67, 73, 79, 85, 91} (mod 96).
With rare exceptions, a(3n-1)=0. a(2)=13, a(5)=31 and a(35)=211, all of which are of the form 6n+1. This is true for those 6317 n's which have a solutions less than 10^6. I have no proof! - Robert G. Wilson v
EXAMPLE
a(5) = 31 as (2*5)*31 + 1= 311 as well as (31-1)/10 = 3 are primes.
MATHEMATICA
f[n_] := Block[{k = 1}, While[k < 10^12 && ( !PrimeQ[k] || !PrimeQ[2*n*k + 1] || !PrimeQ[(k - 1)/(2n)] ), k += 2n]; If[k >= 10^12, 0, k]]; Table[ f[n], {n, 1, 61}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 16 2003
EXTENSIONS
Corrected by Labos Elemer, Jul 17 2003
Edited and extended by Robert G. Wilson v, Jul 18 2003
STATUS
approved