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-6 of 6 results.

A011379 a(n) = n^2*(n+1).

Original entry on oeis.org

0, 2, 12, 36, 80, 150, 252, 392, 576, 810, 1100, 1452, 1872, 2366, 2940, 3600, 4352, 5202, 6156, 7220, 8400, 9702, 11132, 12696, 14400, 16250, 18252, 20412, 22736, 25230, 27900, 30752, 33792, 37026, 40460, 44100, 47952, 52022, 56316, 60840
Offset: 0

Views

Author

Glen Burch (gburch(AT)erols.com), Felice Russo

Keywords

Comments

(1) a(n) = sum of second string of n triangular numbers - sum of first n triangular numbers, or the 2n-th partial sum of triangular numbers (A000217) - the n-th partial sum of triangular numbers (A000217). The same for natural numbers gives squares. (2) a(n) = (n-th triangular number)*(the n-th even number) = n(n+1)/2 * (2n). - Amarnath Murthy, Nov 05 2002
Let M(n) be the n X n matrix m(i,j)=1/(i+j+x), let P(n,x) = (Product_{i=0..n-1} i!^2)/det(M(n)). Then P(n,x) is a polynomial with integer coefficients of degree n^2 and a(n) is the coefficient of x^(n^2-1). - Benoit Cloitre, Jan 15 2003
Y values of solutions of the equation: (X-Y)^3-X*Y=0. X values are a(n)=n*(n+1)^2 (see A045991) - Mohamed Bouhamida, May 09 2006
a(2d-1) is the number of self-avoiding walk of length 3 in the d-dimensional hypercubic lattice. - Michael Somos, Sep 06 2006
a(n) mod 10 is periodic 5: repeat [0, 2, 2, 6, 0]. - Mohamed Bouhamida, Sep 05 2009
This sequence is related to A005449 by a(n) = n*A005449(n)-sum(A005449(i), i=0..n-1), and this is the case d=3 in the identity n^2*(d*n+d-2)/2 - Sum_{k=0..n-1} k*(d*k+d-2)/2 = n*(n+d)*(2*d*n+d-3)/6. - Bruno Berselli, Nov 18 2010
Using (n, n+1) to generate a primitive Pythagorean triangle, the sides will be 2*n+1, 2*(n^2+n), and 2*n^2+2*n+1. Inscribing the largest rectangle with integral sides will have sides of length n and n^2+n. Side n is collinear to side 2*n+1 of the triangle and side n^2+n is collinear to side 2*(n^2+n) of the triangle. The areas of theses rectangles are a(n). - J. M. Bergot, Sep 22 2011
a(n+1) is the sum of n-th row of the triangle in A195437. - Reinhard Zumkeller, Nov 23 2011
Partial sums of A049450. - Omar E. Pol, Jan 12 2013
From Jon Perry, May 11 2013: (Start)
Define a 'stable brick triangle' as:
-----
| c |
---------
| a | | b |
----------
with a, b, c > 0 and c <= a + b. This can be visualized as two bricks with a third brick on top. The third brick can only be as strong as a+b, otherwise the wall collapses - for example, (1,2,4) is unstable.
a(n) gives the number of stable brick triangles that can be formed if the two supporting bricks are 1 <= a <= n and 1 <= b <= n: a(n) = Sum_{a=1..n} Sum_{b=1..n} Sum_c 1 = n^3 + n^2 as given in the Adamchuk formula.
So for i=j=n=2 we have 4:
1 2 3 4
2 2 2 2 2 2 2 2
For example, n=2 gives 2 from [a=1,b=1], 3 from both [a=1,b=2] and [a=2,b=1] and 4 from [a=2,b=2] so a(2) = 2 + 3 + 3 + 4 = 12. (End)
Define the infinite square array m(n,k) by m(n,k) = (n-k)^2 if n >= k >= 0 and by m(n,k) = (k+n)*(k-n) if 0 <= n <= k. This contains A120070 below the diagonal. Then a(n) = Sum_{k=0..n} m(n,k) + Sum_{r=0..n} m(r,n), the "hook sum" of the terms to the left of m(n,n) and above m(n,n) with irrelevant (vanishing) terms on the diagonal. - J. M. Bergot, Aug 16 2013
a(n) is the sum of all pairs with repetition drawn from the set of odd numbers 2*n-3. This is similar to A027480 but using the odd integers instead. Example using n=3 gives the odd numbers 1,3,5: 1+1, 1+3, 1+5, 3+3, 3+5,5+5 having a total of 36=a(3). - J. M. Bergot, Apr 05 2016
a(n) is the first Zagreb index of the complete graph K[n+1]. The first Zagreb index of a simple connected graph is the sum of the squared degrees of its vertices. Alternately, it is the sum of the degree sums d(i)+d(j) over all edges ij of the graph. - Emeric Deutsch, Nov 07 2016
a(n-2) is the maximum sigma irregularity over all trees with n vertices. The extremal graphs are stars. (The sigma irregularity of a graph is the sum of squares of the differences between the degrees over all edges of the graph.) - Allan Bickle, Jun 14 2023

Examples

			a(3) = 3^2+3^3 = 36.
		

References

  • L. B. W. Jolley, "Summation of Series", Dover Publications, 1961, pp. 50, 64.

Crossrefs

Cf. A011379, A181617, A270205 (sigma irregularities of maximal k-degenerate graphs).

Programs

Formula

a(n) = 2*A002411(n).
a(n) = Sum_{j=1..n} (Sum_{i=1..n} (i+j)), row sums of A126890 skipping numbers in the first column. - Alexander Adamchuk, Oct 12 2004
Sum_{n>0} 1/a(n) = (Pi^2 - 6)/6 = 0.6449340... [Jolley eq 272] - Gary W. Adamson, Dec 22 2006
a(n) = 2*n*binomial(n+1,2) = 2*n*A000217(n). - Arkadiusz Wesolowski, Feb 10 2012
G.f.: 2*x*(1 + 2*x)/(1 - x)^4. - Arkadiusz Wesolowski, Feb 11 2012
a(n) = A000330(n) + A002412(n) = A000292(n) + A002413(n). - Omar E. Pol, Jan 11 2013
a(n) = A245334(n+1,2), n > 0. - Reinhard Zumkeller, Aug 31 2014
Sum_{n>=1} 1/a(n) = A013661-1. - R. J. Mathar, Oct 18 2019 [corrected by Jason Yuen, Aug 04 2024]
Sum_{n>=1} (-1)^(n+1)/a(n) = 1 + Pi^2/12 - 2*log(2). - Amiram Eldar, Jul 04 2020
E.g.f.: exp(x)*x*(2 + 4*x + x^2). - Stefano Spezia, May 20 2021
a(n) = n*A002378(n) = A000578(n) + A000290(n). - J.S. Seneschal, Jun 18 2024

A181617 Molecular topological indices of the complete graph K_n.

Original entry on oeis.org

0, 4, 24, 72, 160, 300, 504, 784, 1152, 1620, 2200, 2904, 3744, 4732, 5880, 7200, 8704, 10404, 12312, 14440, 16800, 19404, 22264, 25392, 28800, 32500, 36504, 40824, 45472, 50460, 55800, 61504, 67584, 74052, 80920, 88200, 95904, 104044, 112632, 121680, 131200
Offset: 1

Views

Author

Eric W. Weisstein, Jul 10 2011

Keywords

Comments

a(n) = the area of a trapezoid with vertices at (n-1,n), (n,n-1), ((n-1)^2,n^2), and (n^2,(n-1)^2). - J. M. Bergot, Mar 23 2014
For n > 3, also the detour index of the (n-1)-helm graph. - Eric W. Weisstein, Dec 16 2017
a(n-3) is the maximum sigma irregularity over all maximal 2-degenerate graphs with n vertices. The extremal graphs are 2-stars (K_2 joined to n-2 independent vertices). (The sigma irregularity of a graph is the sum of the squares of the differences between the degrees over all edges of the graph.) - Allan Bickle, Jun 14 2023

Crossrefs

Cf. A002411.
Cf. A011379, A181617, A270205 (sigma irregularities of maximal k-degenerate graphs).

Programs

  • Magma
    [2*n*(n-1)^2: n in [1..50]]; // Vincenzo Librandi, Mar 24 2014
  • Mathematica
    CoefficientList[Series[4 x (1 + 2 x)/(1 - x)^4, {x, 0, 50}], x] (* Vincenzo Librandi, Mar 24 2014 *)
    LinearRecurrence[{4, -6, 4, -1}, {0, 4, 24, 72}, 50] (* Harvey P. Dale, Jun 16 2016 *)
    Table[2 n (n - 1)^2, {n, 20}] (* Eric W. Weisstein, Dec 16 2017 *)
  • PARI
    a(n) = 2*n*(n-1)^2; \\ Joerg Arndt, Mar 24 2014
    

Formula

a(n) = 2*n*(n-1)^2.
a(n) = 4*A002411(n).
G.f.: 4*x^2*(1+2*x)/(1-x)^4. - Colin Barker, Nov 04 2012
From Amiram Eldar, Jan 22 2023: (Start)
Sum_{n>=2} 1/a(n) = Pi^2/12 - 1/2.
Sum_{n>=2} (-1)^n/a(n) = Pi^2/24 - log(2) + 1/2. (End)

Extensions

More terms from Joerg Arndt, Mar 24 2014

A118659 Minimum number of unit faces required to construct n unit cubes.

Original entry on oeis.org

6, 11, 16, 20, 25, 29, 33, 36, 41, 45, 49, 52, 57, 61, 65, 68, 72, 75, 80, 84, 88, 91, 95, 98, 102, 105, 108, 113, 117, 121, 124, 128, 131, 135, 138, 141, 146, 150, 154, 157, 161, 164, 168, 171, 174, 178, 181, 184, 189, 193, 197, 200, 204, 207, 211, 214, 217, 221, 224
Offset: 1

Views

Author

Ron R. King, May 18 2006

Keywords

Examples

			a(2)=11 because 6 unit faces are required to construct each cube but 1 face is shared. I.e., a(2)=6+5=11.
		

Crossrefs

Formula

a(n^3) = 3*(n^2)*(n+1) = A270205(n+1). - Mohammed Yaseen, Aug 22 2021

Extensions

Missing term a(56)=214 inserted by Mohammed Yaseen, Aug 22 2021

A271652 Number of n X n number squares where all (n-1)^2 2 X 2 subset diagonals have the same sum though those sums may differ.

Original entry on oeis.org

1, 9, 432, 3600, 907200
Offset: 1

Views

Author

Craig Knecht, Apr 11 2016

Keywords

Comments

A number square contains all numbers from 1 to n^2 without duplicates.
The 2 X 2 subset diagonal sums in these squares are equal, though those sums may differ.
When the single unit 2 X 2 subset is required to have diagonals with equal sums every rectangle within the generated square will have diagonals with equal sums.
Reversible squares are a previously defined entity. They require all symmetrically opposite pairs in each row and column to have the same sum in addition to the diagonal constraints noted above.
It is an embarrassment that no one has enumerated the order 6 magic squares. Richard C. Schroeppel provided the exact count for the order 5 magic squares in 1973 - now more than 40 years ago.

Examples

			3 X 3 square where all four 2 X 2 subset diagonals have the same sum, though those sums may differ:
1 3 2    (1 + 9 = 7 + 3)  (3 + 8 = 9 + 2)
7 9 8    (7 + 6 = 4 + 9)  (9 + 5 = 6 + 8)
4 6 5
		

Crossrefs

Cf. A270205 (reversible cube).

A363706 a(n) is the sigma irregularity of the n-th power of a path graph of length at least 3*n.

Original entry on oeis.org

2, 14, 52, 140, 310, 602, 1064, 1752, 2730, 4070, 5852, 8164, 11102, 14770, 19280, 24752, 31314, 39102, 48260, 58940, 71302, 85514, 101752, 120200, 141050, 164502, 190764, 220052, 252590, 288610, 328352, 372064, 420002, 472430, 529620, 591852, 659414, 732602, 811720, 897080, 989002
Offset: 1

Views

Author

Allan Bickle, Jun 16 2023

Keywords

Comments

The sigma irregularity of a graph is the sum of the squares of the differences between the degrees over all edges of the graph.

Examples

			A path of length at least 3 has two edges between vertices with degrees 1 and 2. Thus a(1) = 2.
		

Crossrefs

Cf. A006325.
Cf. A011379, A181617, A270205 (sigma irregularities of maximal k-degenerate graphs).

Programs

  • Mathematica
    Table[(n^4 + 2*n^3 + 2*n^2 + n)/3, {n, 1, 40}] (* Amiram Eldar, Jul 28 2023 *)

Formula

a(n) = (n^4 + 2*n^3 + 2*n^2 + n)/3.
a(n) = 2*A006325(n+1).
G.f.: 2*x*(1 + x)^2/(1 - x)^5. - Stefano Spezia, Jul 28 2023

A387286 Number of 2 X 2 square tiles in a discrete 4-dimensional hypercube of side length n.

Original entry on oeis.org

0, 16, 132, 504, 1360, 3000, 5796, 10192, 16704, 25920, 38500, 55176, 76752, 104104, 138180, 180000, 230656, 291312, 363204, 447640, 546000, 659736, 790372, 939504, 1108800, 1300000, 1514916, 1755432, 2023504, 2321160, 2650500, 3013696, 3412992, 3850704, 4329220, 4851000, 5418576, 6034552, 6701604, 7422480
Offset: 1

Views

Author

Salvatore Ferraro, Aug 25 2025

Keywords

Comments

This generalizes the 2D case, where an n X n grid has (n-1)^2 tiles, and the 3D case, where an n X n X n cube has 3n^3 - 6n^2 + 3n tiles.
In 4D, the hypercube is interpreted inductively as n 3D cubes arranged in a row along the fourth axis ("moving-cube" model).
Equivalently, this sequence counts the 2X2 tiles in the 3D projection ("shadow") of the 4D hypercube.

Examples

			a(2) = 16, a(3) = 132, a(4) = 504
		

Crossrefs

Cf. A000290 (squares, 2D case), A270205 (3D case).

Programs

  • Maple
    a := n -> (n-1)^2*(3*n^2 + 2*n):
    seq(a(n), n=1..40);
  • Mathematica
    a[n_] := (n - 1)^2*(3 n^2 + 2 n); Table[a[n], {n, 1, 40}]
  • Python
    def a(n):
        return (n - 1)**2 * (3*n**2 + 2*n)
    print([a(n) for n in range(1, 41)])

Formula

a(n) = (n - 1)^2 * (3*n^2 + 2*n) = 3*n^4 - 4*n^3 - n^2 + 2*n.
G.f.: 4*x^3*(4 + 13*x + x^2)/(1 - x)^5. - Stefano Spezia, Aug 25 2025
Showing 1-6 of 6 results.