OFFSET
1,2
COMMENTS
The corresponding record values are 1, 2, 3, 12, 20, 45, 360, 504, 1400, 4725, 7425, 75600, 118800, 232848, 275184, 1078000, 5457375, 6449625, 174636000, 206388000, 269892000, 509652000, ...
Are all the terms squarefree (A005117)? If yes, then the calculation of terms of this sequence can be significantly sped up.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..51
EXAMPLE
The first 15 terms of A353693 are 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2 and 3. The record values, 1, 2 and 3, occur at 1, 6 and 15, the first 3 terms of this sequence.
MATHEMATICA
f[n_] := Module[{k = 1}, While[! UnsameQ @@ FactorInteger[k*n][[;; , 2]], k++]; k]; fm = 0; s = {}; Do[f1 = f[n]; If[f1 > fm, fm = f1; AppendTo[s, n]], {n, 1, 10^4}]; s
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, May 04 2022
EXTENSIONS
a(27)-a(38) from Chai Wah Wu, May 07 2022
STATUS
approved