A095956 a(n) is the smallest initial value if function f(x)=phi(sigma(x)) is iterated and the iteration ends in a cycle of length n.
1, 4, 16, 324
Offset: 1
Examples
a(4) = 324. 324 -> 660 -> 576 -> 1512 -> 1280 -> 864 -> 576 (cycle length = 4). - _Donovan Johnson_, Dec 06 2013
Crossrefs
Programs
-
Mathematica
g[n_] := EulerPhi[ DivisorSigma[1, n]]; f[n_] := f[n] = Block[{lst = NestWhileList[g, n, UnsameQ, All ]}, -Subtract @@ Flatten[ Position[lst, lst[[ -1]]]]]; t = Table[0, {50}]; Do[ d = f[n]; If[d < 51 && t[[d]] == 0, t[[d]] = n], {n, 1, 10^6}]; t (* Robert G. Wilson v, Jul 14 2004 *)
Comments