OFFSET
1,1
EXAMPLE
a(6) = 31, because the first product of consecutive composites with 6 primes in its squarefree kernel is P = 32*33*34*35*36 with rad(P) = 2*3*5*7*11*17 = 39270, whereas the interval starting after A354217(6) = 23 leads only to 5 distinct factors, i.e., rad(24*25*26*27*28) = 2*3*5*7*13, not sufficient to beat the record set by the composites after a(5) = A354217(5) = 19 with rad(20*21*22) = 2*3*5*7*11.
MATHEMATICA
s = Array[PrimeNu[Times @@ FactorInteger[Times @@ Range[#1 + 1, #2 - 1]][[All, 1]] & @@ Map[Prime, # + {0, 1}]] &, 10^4]; Prime@ Map[FirstPosition[s, #][[1]] &, Union@ FoldList[Max, s]]] (* Michael De Vlieger, May 20 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, May 20 2022
STATUS
approved