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

A226525
Fortunate semiprimes: least m > 1 such that m + sp(n)# is semiprime, where sp# denotes the product of the semiprimes <= sp.
0
2, 2, 2, 5, 2, 3, 2, 7, 3, 19, 11, 3, 23, 5, 61, 29, 31, 3, 29, 31, 13, 19, 5, 7, 23, 47, 3, 53, 47, 19, 13, 7, 41, 53, 2, 43, 7, 103, 2, 61, 59, 71, 17, 59, 79, 43, 167, 71, 97, 7, 151, 37, 103, 83, 127, 103, 11, 53, 29, 7, 67, 83, 151, 107, 37
OFFSET
1,1
COMMENTS
This is the semiprime analogous to A005235.
Just like the Fortunate primes (A005235) we conjecture that all terms are prime!
If instead of semiprimorials (A112141), we use primorials the sequence would be {2, 3, 3, 3, 5, 1, 5, 1, 1, 3, 4, 4, 11, 1, 4, 7, 4, 1, 1, 23, 1, 29, 1, 9, 32, 1, 71, 31, 4, 32, 23, 5, 125, 1, 97, 1, 11, 7, 27, 1, 29, 61, 11}; not very interesting.
If instead of m > 1, we start with m > 0, we identify the semiprimorials +1 which are semiprimes by index: 2, 3, 8, 9, 15, 16, 19, 21, 23, 27, 29, ....
A112141(66) + 197 has been completed through the 2030 curve.
FORMULA
The difference between the n-th semiprimorial and the next semiprime greater than that semiprimorial plus 1.
EXAMPLE
a(3) = 3 since sp(3) = 4*6*9*10 = 2160 and the least number greater than the fourth semiprimorial which is the semiprime is 2165 = 5*433. Therefore the difference is a(3) which equals 3.
A112141(47) + a(47) = 24011725937636436154291480954413133199 * 68433092684820794078956407785220072996675433.
A112141(55) + a(55) = 795251036594717254131632161591406578993 * 650971642564884068706166933685477027845256102005635827825839.
A112141(63) + a(63) = 168586841653003537 * 40363128914158968243564625304355041082304983807201816858670871447070744 83558441664261096307889392423.
MATHEMATICA
NextSemiPrime[n_, k_: 1] := Block[{c = 0, sgn = Sign[k]}, sp = n + sgn; While[c < Abs[k], While[ PrimeOmega[sp] != 2, If[sgn < 0, sp--, sp++]]; If[sgn < 0, sp--, sp++]; c++]; sp + If[sgn < 0, 1, -1]]; f[n_] := Block[{k = 1, m = Times @@ NestList[ NextSemiPrime, 2^2, n-1]}, While[ PrimeOmega[m + k] != 2, k++]; k]; Do[ Print@ f[n], {n, 50}]
CROSSREFS
Cf. A005235.
Sequence in context: A350403 A113516 A376336 * A120642 A216624 A183413
KEYWORD
nonn,hard
STATUS
approved