OFFSET
0,2
COMMENTS
Least number k such that A333262(k) = n.
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..55
FORMULA
a(5) = 7 since 7 is the least number that reaches 1 after 5 iterations of A071324: 7 -> 6 -> 4 -> 3 -> 2 -> 1.
MATHEMATICA
s[n_] := Plus @@ (-(d = Divisors[n])*(-1)^(Range[Length[d], 1, -1])); numiter[n_] := Length @ FixedPointList[s, n] - 2; n = 0; seq={}; Do[If[numiter[k] == n, AppendTo[seq, k]; n++], {k, 1, 1000}]; seq
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Mar 13 2020
STATUS
approved