OFFSET
1,2
COMMENTS
If n is odd the row n lists the divisors of n.
If n is a power of 2 then row n is 2*n - 1.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..13282 (rows 1..3000 of triangle, flattened).
EXAMPLE
Triangle begins:
1;
3;
1, 3;
7;
1, 5;
3, 9;
1, 7;
15;
1, 3, 9;
3, 15;
1, 11;
3, 25;
1, 13;
3, 21;
1, 3, 5, 15;
31;
...
For n = 30 the list of divisors of 30 is [1, 2, 3, 5, 6, 10, 15, 30]. There are four sublists of divisors whose first term is odd. They are [1, 2], [3], [5, 6, 10], [15, 30]. The sum of the divisors in the sublists are respectively [3, 3, 21, 45], the same as the 30th row of the triangle.
MATHEMATICA
A384223row[n_] := Map[Total, Split[Divisors[n], EvenQ[#2] &]];
Array[A384223row, 50] (* Paolo Xausa, Sep 05 2025 *)
PROG
(PARI) row(n) = {my(d = divisors(n), res = vector(#d / (valuation(n, 2)+1)), t = 1, s = 1); for(i = 2, #d, if(bitand(d[i], 1), res[t] = s; t++; s = d[i], s += d[i])); res[#res] = s; res} \\ David A. Corneth, Jun 08 2025
CROSSREFS
KEYWORD
nonn,tabf,easy
AUTHOR
Omar E. Pol, Jun 03 2025
STATUS
approved
