A344713 a(n) is the number of iterations needed for n to reach 0 under the mapping x -> A055212(x).
1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 3, 1, 3, 2, 2, 2, 3, 1, 2, 2, 2, 1, 3, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 3, 1, 2, 2, 2, 2, 3, 1, 2, 2, 3, 1, 3, 1, 2, 2, 2, 2, 3, 1, 2, 2, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 2, 3, 1, 2, 2, 3, 1, 3, 1, 2, 3, 2, 1, 3, 1, 3
Offset: 1
Keywords
Examples
a(1) = 1, since 1 -> 0. a(p) = 1, since p -> 0 for any prime p. a(4) = 2, since 4 -> 1 -> 0. a(30) = 3, since 30 -> 4 -> 1 -> 0. a(1440) = 4, since 1440 -> 32 -> 4 -> 1 -> 0.
Programs
-
Mathematica
f[0] = 0; f[n_] := DivisorSigma[0, n] - PrimeNu[n] - 1; a[n_] := -2 + Length @ FixedPointList[f, n]; Array[a, 100] (* Amiram Eldar, Jun 03 2021 *)
Comments