OFFSET
1,2
EXAMPLE
The beginning of the irregular triangle showing 3 terminal cycles ( 1 ), ( 6 ) and ( 30 42 54 ):
1
2 1
3 1
4 1
5 1
6
7 1
...
14 10 8 1
...
30 42 54
31 1
...
Row 1230 contains a non-monotone iteration that ends in the 5-cycle starting at A097035(3):
1230, 1794, 2238, 2250, 1530, 1710, {1890, 2142, 2178, 1482, 1878 }.
MATHEMATICA
a063919[1] = 1; (* function a[] in A063919 by Jean-François Alcover *)
a063919[n_] := Total[Select[Divisors[n], GCD[#, n/#] == 1 &]] - n /; n > 1
iter[k_] := Most[NestWhileList[a063919, k, UnsameQ, All]]
a369895[n_] := Map[iter, Range[n]]
a369895[30] (* irregular triangle *)
Flatten[a369895[30]] (* sequence data *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Hartmut F. W. Hoft, Feb 04 2024
STATUS
approved