OFFSET
1,1
COMMENTS
Conjecture: this is a permutation of A001358.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 25 because 25 = 5^2 is a semiprime, |a(2) - 25| = 15 = 3 * 5 and a(2) + 25 = 35 = 5 * 7 are semiprimes, and 25 is the first semiprime not already in the sequence for which this works.
MAPLE
R:= 4: a:= 4: S:= select(t -> numtheory:-bigomega(t)=2, [$6..1000]): found:= true:
for n from 2 to 100 while found do
found:= false;
for j from 1 to nops(S) do
b:=S[j];
if numtheory:-bigomega(abs(b-a)) = 2 and numtheory:-bigomega(a+b) = 2 then
R:= R, b; a:= b; found:= true; S:= subsop(j=NULL, S);
break
fi
od od:
R;
MATHEMATICA
s={m=4}; Do[n=6; While[MemberQ[s, n]|| {2, 2, 2} != PrimeOmega[{n, n-m, n+m}], n++];
AppendTo[s, m=n], {50}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Sep 20 2023
STATUS
approved