A244050 Partial sums of A243980.
4, 20, 52, 112, 196, 328, 492, 716, 992, 1340, 1736, 2244, 2808, 3468, 4224, 5104, 6056, 7164, 8352, 9708, 11192, 12820, 14544, 16508, 18596, 20852, 23268, 25908, 28668, 31716, 34892, 38320, 41940, 45776, 49804, 54196, 58740, 63524, 68532, 73900
Offset: 1
Keywords
Examples
From _Omar E. Pol_, Aug 29 2015: (Start) Illustration of the top view of the stepped pyramid with 16 levels. The pyramid is formed of 5104 unit cubes: . _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ . | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | . | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| | . _ _| | _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |_ _ . _| _ _| |_ _ _ _ _ _ _ _ _ _ _ _ _ _| |_ _ |_ . _| _| _| | _ _ _ _ _ _ _ _ _ _ _ _ | |_ |_ |_ . | _| |_ _| |_ _ _ _ _ _ _ _ _ _ _ _| |_ _| |_ | . _ _ _| | _ _| | _ _ _ _ _ _ _ _ _ _ | |_ _ | |_ _ _ . | _ _ _|_| | _| |_ _ _ _ _ _ _ _ _ _| |_ | |_|_ _ _ | . | | | _ _ _| _|_ _| _ _ _ _ _ _ _ _ |_ _|_ |_ _ _ | | | . | | | | | _ _ _| | _| |_ _ _ _ _ _ _ _| |_ | |_ _ _ | | | | | . | | | | | | | _ _|_| _| _ _ _ _ _ _ |_ |_|_ _ | | | | | | | . | | | | | | | | | _ _| |_ _ _ _ _ _| |_ _ | | | | | | | | | . | | | | | | | | | | | _ _| _ _ _ _ |_ _ | | | | | | | | | | | . | | | | | | | | | | | | | _|_ _ _ _|_ | | | | | | | | | | | | | . | | | | | | | | | | | | | | | _ _ | | | | | | | | | | | | | | | . | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . | | | | | | | | | | | | | | | |_ _| | | | | | | | | | | | | | | | . | | | | | | | | | | | | | |_|_ _ _ _|_| | | | | | | | | | | | | | . | | | | | | | | | | | |_|_ |_ _ _ _| _|_| | | | | | | | | | | | . | | | | | | | | | |_|_ |_ _ _ _ _ _| _|_| | | | | | | | | | . | | | | | | | |_|_ _ |_ |_ _ _ _ _ _| _| _ _|_| | | | | | | | . | | | | | |_|_ _ | |_ |_ _ _ _ _ _ _ _| _| | _ _|_| | | | | | . | | | |_|_ _ |_|_ _| |_ _ _ _ _ _ _ _| |_ _|_| _ _|_| | | | . | |_|_ _ _ | |_ |_ _ _ _ _ _ _ _ _ _| _| | _ _ _|_| | . |_ _ _ | |_|_ | |_ _ _ _ _ _ _ _ _ _| | _|_| | _ _ _| . | |_ |_ _ |_ _ _ _ _ _ _ _ _ _ _ _| _ _| _| | . |_ |_ |_ | |_ _ _ _ _ _ _ _ _ _ _ _| | _| _| _| . |_ |_ _| |_ _ _ _ _ _ _ _ _ _ _ _ _ _| |_ _| _| . |_ _ | |_ _ _ _ _ _ _ _ _ _ _ _ _ _| | _ _| . | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| | . | |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| | . |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _| . Note that the above diagram contains a hidden pattern, simpler, which emerges from the front view of every corner of the stepped pyramid. For more information about the hidden pattern see A237593 and A245092. (End)
Links
- Robert G. Wilson v, Table of n, a(n) for n = 1..10000 (first 7342 terms from Robert Price)
- Omar E. Pol, Illustration of a(11) = 1736, Perspective view of the stepped pyramid with 11 levels which contains 1736 unit cubes.
Crossrefs
Programs
-
Magma
[4*(&+[(n-k+1)*DivisorSigma(1,k): k in [1..n]]): n in [1..40]]; // G. C. Greubel, Apr 07 2019
-
Mathematica
a[n_] := 4 Sum[(n - k + 1) DivisorSigma[1, k], {k, n}]; Array[a, 40] (* Robert G. Wilson v, Aug 06 2018 *) Nest[Accumulate,4*DivisorSigma[1,Range[50]],2] (* Harvey P. Dale, Sep 07 2022 *)
-
PARI
a(n) = 4*sum(k=1, n, sigma(k)*(n-k+1)); \\ Michel Marcus, Aug 07 2018
-
Python
from math import isqrt def A244050(n): return (((s:=isqrt(n))**2*(s+1)*((s+1)*((s<<1)+1)-6*(n+1))>>1) + sum((q:=n//k)*(-k*(q+1)*(3*k+(q<<1)+1)+3*(n+1)*((k<<1)+q+1)) for k in range(1,s+1))<<1)//3 # Chai Wah Wu, Oct 22 2023
-
Sage
[4*sum(sigma(k)*(n-k+1) for k in (1..n)) for n in (1..40)] # G. C. Greubel, Apr 07 2019
Formula
a(n) = 4*A175254(n).
Comments