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”).

A370575
Least increasing sequence of semiprimes with alternating parity such that a(n) - a(n-1) is a semiprime, with a(1) = 4.
1
4, 25, 34, 49, 58, 91, 106, 115, 166, 187, 202, 217, 226, 235, 274, 289, 298, 319, 334, 355, 394, 403, 454, 469, 478, 493, 502, 511, 526, 535, 586, 611, 626, 635, 674, 689, 698, 707, 746, 755, 794, 803, 818, 843, 878, 893, 914, 923, 958, 973, 982, 1003, 1018, 1027, 1042, 1057, 1082, 1115, 1154
OFFSET
1,1
LINKS
EXAMPLE
a(3) = 34 because 34 = 2 * 17 is the first even semiprime > a(2) = 25.
MAPLE
N:= 100: # for a(1) .. a(N)
V:= Vector(N): V[1]:= 4: x:= 4:
for i from 2 to N do
for y from x+1 by 2 do
if numtheory:-bigomega(y) = 2 and numtheory:-bigomega(y-x) = 2 then
x:= y; V[i]:= y; break
fi
od od:
convert(V, list);
MATHEMATICA
s={4}; Do[k = s[[-1]] + 1; While[{2, 2} != PrimeOmega[ {k, k - s[[-1]]}], k = k + 2]; AppendTo[s, k], {30}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Feb 22 2024
STATUS
approved