OFFSET
1,1
COMMENTS
Then n - 1 and n + 1 are almost always a pair of twin primes, and the set of these should be an infinite subset of all twin primes.
If n - 1 and n + 1 are simultaneously composite, this occurs very rarely.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..100
MATHEMATICA
Select[6*Range[600], IntegerQ[(4^#-5*2^#-4*4^(#^2-2#)+8*2^(#^2-2#))/(4*(#^3-#))]&] (* Harvey P. Dale, Dec 31 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Reikku Kulon, Jul 15 2009
STATUS
approved