OFFSET
1,2
COMMENTS
EXAMPLE
The first 12 terms of A348001(k) are 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2 and 4. The record values, 1, 2 and 4, are obtained at k = 1, 3 and 12. Therefore, this sequence begins with 1, 3, 12.
MATHEMATICA
f[p_, e_] := p^e - 1; uphi[1] = 1; uphi[n_] := Times @@ f @@@ FactorInteger[n]; s[n_] := Length @ Union[uphi /@ Select[Divisors[n], CoprimeQ[#, n/#] &]]; sm = 0; seq = {}; Do[s1 = s[n]; If[s1 > sm, sm = s1; AppendTo[seq, n]], {n, 1, 10^5}]; seq
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Sep 23 2021
STATUS
approved