cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A294630 Partial sums of A294629.

Original entry on oeis.org

4, 20, 48, 104, 172, 292, 424, 616, 844, 1140, 1448, 1888, 2340, 2876, 3488, 4224, 4972, 5892, 6824, 7936, 9140, 10460, 11792, 13416, 15092, 16900, 18816, 20960, 23116, 25612, 28120, 30880, 33764, 36812, 39968, 43568, 47180, 50972, 54904, 59240, 63588, 68372, 73168, 78288, 83676, 89276, 94888, 101112
Offset: 1

Views

Author

Omar E. Pol, Nov 05 2017

Keywords

Comments

a(n) is also the volume of a stepped pyramid with n levels which is another version of the stepped pyramid described in A244050. Both pyramids have the same top view and the same front view, that is to say externally both pyramids are equal, but this pyramid with n levels contains a central chamber whose volume is 4*A072481(n). For more information about the central chamber see the diagrams in A294629.
a(n) is the number of unit cubes of the pyramid with n levels.

Examples

			Illustration of the top view of the pyramid with 16 levels and 4224 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.
		

Crossrefs

Programs

  • GAP
    List([1..50],n->Sum([1..n],m->Sum([1..m],k->8*(Sigma(k)-k+(1/2))))); # Muniru A Asiru, Mar 04 2018
    
  • Maple
    with(numtheory): seq(sum(sum(8*(sigma(j)-j+(1/2)),j=1..k),k=1..n),n=1..50); # Muniru A Asiru, Mar 04 2018
  • Mathematica
    f[n_] := 8 (DivisorSigma[1, n] - n) + 4; Accumulate@ Accumulate@ Array[f, 48] (* Robert G. Wilson v, Dec 12 2017 *)
  • Python
    from math import isqrt
    def A294630(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))<<2)-(n*(n+1)*((n<<1)+1)<<1))//3 # Chai Wah Wu, Nov 01 2023

Formula

a(n) = 4*A294017(n).
a(n) = A002492(n) - 8*A072481(n).
a(n) = A244050(n) - 4*A072481(n).

A294628 a(n) = 8*(sigma(n) - n + (1/2)).

Original entry on oeis.org

4, 12, 12, 28, 12, 52, 12, 60, 36, 68, 12, 132, 12, 84, 76, 124, 12, 172, 12, 180, 92, 116, 12, 292, 52, 132, 108, 228, 12, 340, 12, 252, 124, 164, 108, 444, 12, 180, 140, 404, 12, 436, 12, 324, 268, 212, 12, 612, 68, 348, 172, 372, 12, 532, 140, 516, 188, 260, 12, 868, 12, 276
Offset: 1

Views

Author

Omar E. Pol, Nov 05 2017

Keywords

Crossrefs

Programs

  • GAP
    List([1..10^5],n->8*(Sigma(n)-n+(1/2))); # Muniru A Asiru, Mar 04 2018
  • Maple
    with(numtheory): seq(sigma(8*n-1)/8, n=1..10^3); # Muniru A Asiru, Mar 04 2018
  • Mathematica
    a[n_] := 8 (DivisorSigma[1, n] - n) + 4; Array[a, 62] (* Robert G. Wilson v, Dec 12 2017 *)

Formula

a(n) = 4*A294015(n).
a(n) = 8*(A001065(n) + (1/2)).
a(n) = 8*(A000203(n) - n + (1/2)).
a(n) = A239050(n) - 4*A235796(n).
a(n) = A017113(n-1) - 8*A235796(n).
Showing 1-2 of 2 results.