OFFSET
1,2
COMMENTS
Indices k such that A001783(k) is larger than all preceding terms of that sequence. The corresponding values A001783(k) are given in A193338.
It appears that, except for 1, 2, 4, and 9, this is all and only the primes. (It certainly includes all odd primes.) - Franklin T. Adams-Watters, Aug 11 2011
It appears that this is the sequence of indices of records in A206369. - Michel Marcus, Nov 04 2017
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
MATHEMATICA
Block[{s = Table[Times @@ Select[Range@ n, CoprimeQ[n, #] &], {n, 250}], t}, t = Union@ FoldList[Max, s]; Map[FirstPosition[s, #][[1]] &, t]] (* or *)
Union[Prime@ Range[2, 53], Range[3]^2] (* Michael De Vlieger, Nov 04 2017 *)
PROG
(PARI) m=0; for(n=1, 599, m+0<(m=max(m, A001783(n))) & print1(n", "))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jul 23 2011
STATUS
approved