OFFSET
1,1
COMMENTS
a(n) has a symmetric representation. Using two opposite quadrants, where in each quadrant there is the Dyck path related to partitions described in the n-th row of triangle A237593, a(n) is the total area (or the total number of cells) of the structure (see the example).
a(n) is also the total area of the horizontal faces in the stepped pyramid with n levels described in A245092 (that is the total area of the terraces plus the area of the base). - Omar E. Pol, Dec 15 2021
LINKS
FORMULA
EXAMPLE
Illustration of a(8) = 112 using a symmetric structure constructed with the Dyck path related to partitions described in the 8th row of triangle A237593.
_ _ _ _ _
| |
| |_
| |_ _
| |
| 56 |
| |
| |
_ _ _ _ _ _ _ _|_ _ _ _ _ _ _ _|
| |
| |
| |
| 56 |
|_ _ |
|_ |
| |
|_ _ _ _ _|
MATHEMATICA
Accumulate[2*DivisorSigma[1, Range[60]]] (* Harvey P. Dale, Sep 25 2021 *)
PROG
(Python)
from sympy import divisor_sigma
from itertools import accumulate
def f(_, n): return _ + 2*divisor_sigma(n, 1)
def aupton(terms): return list(accumulate(range(terms+1), f))[1:]
print(aupton(55)) # Michael S. Branicky, Dec 16 2021
(PARI) a(n) = 2*sum(k=1, n, sigma(k)); \\ Michel Marcus, Dec 20 2021
(Python)
from math import isqrt
def A327329(n): return -(s:=isqrt(n))**2*(s+1)+sum((q:=n//k)*((k<<1)+q+1) for k in range(1, s+1)) # Chai Wah Wu, Oct 22 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Sep 25 2019
STATUS
approved