OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
EXAMPLE
n = 866: list = {866, 436, 114, 126, 114} ending in 2-cycle of [114, 126].
MATHEMATICA
s[n_] := If[n > 1, Times @@ (1 + Power @@@ FactorInteger[n]) - n, 0]; useq[n_] := Most[NestWhileList[s, n, UnsameQ, All]]; amiQ[k_] := Module[{s1 = s[k]}, s1 != k && s[s1] == k]; aQ[n_] := amiQ[Last[useq[n]]]; Select[Range[5000], aQ] (* Amiram Eldar, Apr 06 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Aug 30 2004
STATUS
approved