OFFSET
1,2
MATHEMATICA
s = Table[Count[Range[k], _?(Nor[CoprimeQ[#, k], GCD[k^2 - 1, #] > 1, Divisible[k, Times @@ FactorInteger[#][[All, 1]]]] &)], {k, 1000}]; Map[FirstPosition[s, #][[1]] &, Union@ FoldList[Max, s]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Jun 13 2023
STATUS
approved