OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..8238
Michael De Vlieger, Labeled scatterplot of m = A360179(n) for n = 1..512. Records, terms of this sequence, appear in red, local minima in blue, terms following novel m in gold and by extant m in green. The cyan line indicates the smallest number u not in a(1..n) and is not a feature of the sequence itself. The magenta line indicates the "prevailing low" L(n) and is not a feature of the sequence itself.
MATHEMATICA
nn = 10^4; c[_] := False; h[_] := 0; f[n_] := DivisorSigma[0, n];
a[1] = j = u = 1; r = 0;
Reap[Do[
If[c[j],
k = j + f[u]; h[j]++; h[u]--,
k = f[j]; c[j] = True; h[j]++ ];
u = Min[u, j]; Set[{a[n], j}, {k, k}]; While[h[u] == 0, u++];
If[k > r, r = k; Sow[r]], {n, 2, nn}] ][[-1, -1]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Apr 09 2023
STATUS
approved