OFFSET
1,1
COMMENTS
Roughly analogous to A226116 (numbers n such that one of 2^n-1 or 2^n+1 is semiprime, but not both); but for one out of 3 in the set rather than 1 out of 2.
EXAMPLE
6 is in the sequence because 2^6 - 1 = 63 = 3^2 * 7 has three prime factors (with multiplicity), 2^6 + 1 = 65 = 5 * 13 is semiprime, and 2^6 + 3 = 67 is prime.
MATHEMATICA
smQ[n_]:=Count[2^n+{1, 3, -1}, _?(PrimeOmega[#]==2&)]==1; Select[Range[ 300], smQ] (* Harvey P. Dale, Jan 30 2014 *)
PROG
(PARI) issemi(n)=bigomega(n)==2
is(n)=my(N=2^n); if(issemi(N-1), !issemi(N+1)&&!issemi(N+3), issemi(N+1)+issemi(N+3)==1) \\ Charles R Greathouse IV, Jun 28 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Vos Post, Jun 27 2013
EXTENSIONS
a(7)-a(61) from Charles R Greathouse IV, Jun 28 2013
a(62)-a(78) from Charles R Greathouse IV, Jul 03 2013
STATUS
approved