A328366 a(n) is the surface area of the stepped pyramid with n levels described in A245092.
6, 20, 40, 70, 102, 150, 194, 256, 318, 394, 462, 566, 646, 750, 858, 984, 1088, 1238, 1354, 1518, 1666, 1826, 1966, 2182, 2344, 2532, 2720, 2944, 3120, 3384, 3572, 3826, 4054, 4298, 4534, 4860, 5084, 5356, 5624, 5964, 6212, 6572, 6832, 7176, 7512, 7840, 8124, 8564, 8874, 9260, 9608, 10012
Offset: 1
Keywords
Examples
For n = 1 the first level of the stepped pyramid is a cube, so a(1) = 6.
Crossrefs
Programs
-
Mathematica
s=0;Do[s=s+4*DivisorSigma[1,n];t=2n(n+1);Print[(s/2)+t],{n,1,8000}] (* Metin Sariyar, Nov 20 2019 *)
-
Python
from math import isqrt def A328366(n): return (n*(n+1)<<1)-(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