OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
For the first five positive integers every symmetric representation of sigma() with subparts has only one layer of width 1, so a(5) = 1 + 1 + 1 + 1 + 1 = 5.
For n = 6 the symmetric representation of sigma(6) with subparts has two layers of width 1 as shown below:
_ _ _ _
|_ _ _ |_
| |_|_
|_ _ |
| |
| |
|_|
So a(6) = 5 + 2 = 7.
MATHEMATICA
Accumulate@ Map[Max@ Accumulate[#] &, Table[If[OddQ[k], Boole@ Divisible[n, k], -Boole@ Divisible[n - k/2, k]], {n, 68}, {k, Floor[(Sqrt[8 n + 1] - 1)/2]}]] (* Michael De Vlieger, Oct 27 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Sep 05 2021
STATUS
approved