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.
LINKS
Dario Alejandro Alpern, Factorization using the Elliptic Curve Method
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
KEYWORD
nonn,hard
AUTHOR
STATUS
approved