login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A127018
Least s with s, t both semiprime and s+2n = t.
2
4, 6, 4, 6, 4, 9, 21, 6, 4, 6, 4, 9, 9, 6, 4, 6, 4, 10, 39, 6, 4, 14, 9, 9, 15, 6, 4, 6, 4, 9, 15, 10, 21, 6, 4, 10, 21, 6, 4, 6, 4, 9, 9, 6, 4, 14, 21, 10, 21, 6, 4, 14, 9, 10, 9, 6, 4, 6, 4, 9, 21, 9, 15, 6, 4, 9, 9, 6, 4, 6, 4, 14, 9, 10, 9, 6, 4, 10, 25, 6, 4, 14, 21, 9, 15, 6, 4, 9, 9, 14, 21, 10
OFFSET
1,1
MATHEMATICA
sp=Select[Range[1000], PrimeOmega[#]==2&]; seq={}; Do[s=0; Until[PrimeOmega[sp[[s]]+2n]==2, s++]; AppendTo[seq, sp[[s]]], {n, 92}]; seq (* James C. McMahon, Dec 30 2024 *)
PROG
(PARI) a(n) = for (k=1, oo, if ((bigomega(k)==2) && bigomega(2*n+k)==2, return(k))); \\ Michel Marcus, Dec 30 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jan 02 2007
STATUS
approved