OFFSET
1,2
COMMENTS
Alternatively, row lengths of A360179 read as an irregular triangle of rows whose terms strictly increase.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..47545
Michael De Vlieger, Scatterplot of a(n), n = 1..47545.
EXAMPLE
A360179 read as an irregular triangle of subsequences whose terms are nondecreasing.
n: row n of A360179 a(n)
----------------------------
1: 1; 1
2: 1, 2; 2
3: 2, 3; 2
4: 2, 4; 2
5: 3, 5; 2
6: 2, 4, 6; 3
7: 4, 6, 8; 3
8: 4, 7; 2
9: 2, 5, 7, 10; 4
10: 4, 7, 10, 12; 4
11: 6, 8, 12, 16; 4
12: 5, 9; 2
etc.
MATHEMATICA
nn = 960;
c[_] := False; m = h[_] := 0; f[n_] := DivisorSigma[0, n];
a[1] = j = u = w = 1;
{1}~Join~Rest@ Reap[Do[
If[c[j],
k = j + f[u]; h[j]++; h[u]--,
k = f[j]; c[j] = True; h[j]++; Sow[n - 1 - m]; Set[m, n - 1] ];
u = Min[u, j]; Set[{a[n], q[k], j}, {k, True, k}];
While[h[u] == 0, u++], {n, 2, nn}] ][[-1, -1]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael De Vlieger, Apr 10 2023
STATUS
approved