OFFSET
1,2
COMMENTS
a(n) is the least number k such that A342866(k) = n.
All the terms above 3 are composite numbers.
FORMULA
a(2) = 2 since 2 is the least number k such that A342866(k) = 2.
MATHEMATICA
f[n_] := Length @ ContinuedFraction[EulerPhi[n]/n]; seq[max_] := Module[{s = Table[0, {max}], c = 0, n = 1, i}, While[c < max, i = f[n]; If[i <= max && s[[i]] == 0, c++; s[[i]] = n]; n++]; s]; seq[20]
PROG
(PARI) a(n) = my(k=1); while (#contfrac(eulerphi(k)/k) != n, k++); k; \\ Michel Marcus, Mar 30 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Mar 27 2021
STATUS
approved