OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..112
EXAMPLE
392 = 7^2*2^3; 391 = 17*23 and 393 = 3*131 are semiprimes, hence 392 is in the sequence.
14792 = 2^3*43^2 is in the sequence because 14791=7*2113 and 14793=3*4931 are semiprimes.
MATHEMATICA
f2[n_]:=Last/@FactorInteger[n]=={2, 3}||Last/@FactorInteger[n]=={3, 2}; f1[n_]:=Plus@@Last/@FactorInteger[n]==2; lst={}; Do[If[f2[n], If[f1[n-1]&&f1[n+1], AppendTo[lst, n]]], {n, 10!}]; lst
With[{prs=Prime[Range[300]]}, Union[Select[Times@@@Tuples[{prs^2, prs^3}], PrimeOmega[#-1] == PrimeOmega[#+1]==2&]]] (* Harvey P. Dale, Aug 13 2013 *)
PROG
(PARI) {m=17000000; v=[]; forprime(j=2, sqrtint(m\8), a=j^2; g=sqrtn(m\a, 3); forprime(k=2, g, n=a*k^3; if(n<m, if(bigomega(n-1)==2&&bigomega(n+1)==2, v=concat(v, n))))); Vec(listsort(List(v), 1))} \\ Klaus Brockhaus, Oct 29 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 26 2009
EXTENSIONS
Edited by Klaus Brockhaus and R. J. Mathar, Oct 28 2009
STATUS
approved