OFFSET
1,2
COMMENTS
a(n) is the total number of steps in all odd-indexed double-staircases of the diagram of A196020 with n levels (see the example).
a(n) is also the total number of steps in all odd-indexed double-staircases of the diagram described in A335616 with n levels that have at least one step in the bottom level of the diagram.
Sigma(n) <= a(n).
The graph of the sum-of-divisors function A000203 is intermediate between the graph of this sequence and the graph of A353154 (see link). - Omar E. Pol, May 13 2022
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
OEIS Plot 2, A353149 vs A000203
EXAMPLE
For n = 15 the 15th row of the triangle A196020 is [29, 13, 7, 0, 1]. The sum of the odd-indexed terms is 29 + 7 + 1 = 37, so a(15) = 37.
Illustration of a(15) = 37:
Level Diagram
. _
1 _|1|_
2 _|1 1|_
3 _|1 1|_
4 _|1 1|_
5 _|1 _ 1|_
6 _|1 |1| 1|_
7 _|1 | | 1|_
8 _|1 _| |_ 1|_
9 _|1 |1 1| 1|_
10 _|1 | | 1|_
11 _|1 _| |_ 1|_
12 _|1 |1 1| 1|_
13 _|1 | | 1|_
14 _|1 _| _ |_ 1|_
15 |1 |1 |1| 1| 1|
.
The diagram has 37 steps, so a(15) = 37.
PROG
(PARI) a(n) = { my(r = A196020row(n)); sum(i = 0, (#r-1)\2, r[2*i + 1]) }
A196020row(n) = { my(res, qc); qc = (sqrtint(8*n + 1) - 1)\2; res = vector(qc); for(i = 1, qc, cn = n - binomial(i + 1, 2); if(cn % i == 0, res[i] = 2*(cn/i) + 1 ) ); res } \\ David A. Corneth, Apr 28 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Apr 26 2022
STATUS
approved