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

A175587
a(1) = 4; a(n) = smallest semiprime such that a(n) - a(n-1) is prime.
3
4, 6, 9, 14, 21, 26, 33, 35, 38, 49, 51, 58, 65, 82, 85, 87, 94, 111, 118, 121, 123, 134, 141, 143, 145, 158, 161, 166, 169, 206, 209, 214, 217, 219, 221, 226, 237, 254, 259, 262, 265, 267, 274, 287, 289, 291, 298, 301, 303, 305, 334, 339, 341, 346, 365, 382
OFFSET
1,1
COMMENTS
First differences: 2, 3, 5, 7, 5, 7, 2, 3, 11, 2, 7, 7, 17, 3, 2, 7, 17, 7, 3, 2, 11, 7, 2, 2, 13, 3, 5, 3, 37, 3, 5, 3, 2, 2, 5, 11, 17, 5, 3, 3, 2, 7, 13, 2, 2, 7, 3, 2, 2 (all primes).
MATHEMATICA
NestList[(p = 2; While[2 != PrimeOmega[q = # + p], p = NextPrime[p]]; q) &, 4, 50]
PROG
(PARI) nxt(n)=forprime(p=2, , if(bigomega(n+p)==2, return(n+p))) \\ Charles R Greathouse IV, Jan 25 2017
CROSSREFS
Cf. A001358 (semiprimes).
Sequence in context: A241013 A330071 A057988 * A339114 A175709 A073679
KEYWORD
nonn
AUTHOR
Zak Seidov, Jul 17 2010
STATUS
approved