login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A347528
Total number of layers of width 1 of all symmetric representations of sigma() with subparts of all positive integers <= n.
1
1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 14, 15, 16, 18, 19, 20, 22, 23, 25, 26, 27, 28, 30, 31, 32, 33, 35, 36, 38, 39, 40, 41, 42, 44, 46, 47, 48, 49, 51, 52, 54, 55, 56, 58, 59, 60, 62, 63, 64, 65, 66, 67, 69, 70, 72, 73, 74, 75, 78, 79, 80, 82, 83, 84, 86, 87, 88
OFFSET
1,2
LINKS
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 *)
KEYWORD
nonn
AUTHOR
Omar E. Pol, Sep 05 2021
STATUS
approved