login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A097037
Initial values for iteration of A063919(x) function such that iteration ends in a 2-cycle, i.e., "attracted" by unitary amicable numbers, A063991.
15
102, 114, 126, 388, 436, 484, 812, 866, 1020, 1036, 1040, 1116, 1140, 1196, 1260, 1380, 1500, 1524, 1532, 1552, 1618, 1644, 1716, 1724, 1726, 1744, 1916, 2020, 2066, 2068, 2324, 2368, 2386, 2486, 2592, 2684, 2880, 2924, 3032, 3098, 3120, 3124, 3136
OFFSET
1,1
LINKS
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 *)
KEYWORD
nonn
AUTHOR
Labos Elemer, Aug 30 2004
STATUS
approved