OFFSET
1,1
COMMENTS
Special twin prime averages (A014574).
LINKS
Ray Chandler, Table of n, a(n) for n = 1..62 (terms < 10^1000, first 55 terms from Donovan Johnson)
FORMULA
EXAMPLE
a(14) = 243*4096 = 995328 and {995327, 995329} are twin primes.
MATHEMATICA
Select[#, Total@ Boole@ Map[PrimeQ, # + {-1, 1}] == 2 &] &@ Select[Range[10^7], PowerMod[6, #, #] == 0 &] (* Michael De Vlieger, Dec 31 2016 *)
seq[max_] := Select[Sort[Flatten[Table[2^i*3^j, {i, 1, Floor[Log2[max]]}, {j, 0, Floor[Log[3, max/2^i]]}]]], And @@ PrimeQ[# + {-1, 1}] &]; seq[2*10^15] (* Amiram Eldar, Aug 27 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard C. Schroeppel
EXTENSIONS
Offset corrected by Donovan Johnson, Dec 02 2011
Entry revised by N. J. A. Sloane, Jan 01 2017
STATUS
approved