|
|
A227019
|
|
Numbers n such that exactly one of {2^n-1, 2^n+1, 2^n+3} is semiprime.
|
|
0
|
|
|
3, 4, 6, 7, 8, 10, 12, 13, 14, 17, 19, 20, 24, 25, 26, 27, 28, 31, 35, 37, 39, 41, 42, 43, 45, 48, 49, 52, 54, 59, 62, 66, 67, 76, 79, 83, 87, 92, 97, 99, 100, 103, 104, 109, 114, 115, 127, 131, 132, 137, 139, 142, 148, 149, 151, 158, 162, 172, 189, 190, 191, 197, 207, 210, 220, 226, 227, 241, 255, 256, 269, 271, 281, 289, 291, 293, 294, 295
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
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.
|
|
LINKS
|
|
|
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
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|